SUMMARY: ifconfig not holding after reboot

From: Ian Zapczynski <ianz_at_quarterleaf.com>
Date: Wed Feb 05 2003 - 15:27:38 EST
Thanks to all who offered assistance.  Darren Dunham pointed me to my 
problem which prevented my virtual interfaces from coming up properly:

Not that I don't believe you, but could I see the output for 

wc -l /etc/hostname.*

If they don't all say '1', then that's your problem.


Indeed, when I had edited the /etc/hostname.eri* files, I inadvertantly 
added a second blank line.  Once I removed the blank line, I rebooted 
and my interfaces are now properly automatically configured.

Most others suggested I be sure I didn't muck up my /etc/hosts or 
/etc/hostname* files as specified below by Allan West:

We use many virtual interfaces on our machines, and make a file for each 
one named:
	/etc/hostname.INTERFACE
eg.
	/etc/hostname.hme0
	/etc/hostname.eri0
	/etc/hostname.eri0:1

Each file has the hostname for the interface, eg.
	machine1.domain.org
	machine2.domain.org
	web.domain.org

and those names match entries in /etc/inet/hosts to get their IP address. 
Do you have each hostname in the /etc/inet/hosts file for lookup?


-----  ORIGINAL POST FOLLOWS  ------

Ian Zapczynski wrote:

> Hello All,
>
> I'm using IP aliasing and am obviously missing something simple.  I'm 
> working on setting my Netra which runs Solaris 8 Generic_108528-13 
> sun4u sparc SUNW,UltraAX-i2 to configure all interfaces on reboot.  
> But after a reboot, here is what I get:
>
> # ifconfig -a
> lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
>        inet 127.0.0.1 netmask ff000000
> eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
>        inet 10.1.1.29 netmask ffffff00 broadcast 10.1.1.255
>        ether 0:3:ba:10:46:43
> eri0:1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
>        inet 10.1.1.39 netmask ff000000 broadcast 10.255.255.255
> eri0:2: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
>        inet 10.1.1.49 netmask ff000000 broadcast 10.255.255.255
>
> Note that eri0 is configured with the correct netmask and broadcast 
> and is brought up.  The remaining interfaces are not.
>
> In /etc/netmasks, I have:
>
> 10.1.1.0 255.255.255.0
>
> and I have an /etc/hostname.er0:* file for each interface which 
> contains only a hostname for each.
>
> What am I missing please?   I found another message in the archives on 
> this subject, but was unable to find my problem from the post.  
> Perhaps I have just had too much time away from Sun while my company 
> has been pushing Linux.  ;-)  I know I *could* make an rc script do 
> the ifconfig command, but that is ugly IMO.  I'm hoping to understand 
> where I've gone wrong in my configuration and why /etc/init.d/network 
> isn't bringing up my other interfaces as I'd expect.
>
> All help is appreciated.
>
> -Ian
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Feb 5 15:31:28 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:02 EST