SUMMARY: ifconfig not holding after reboot

From: Ian Zapczynski <>
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:

Each file has the hostname for the interface, eg.

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?


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 netmask ff000000
> eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
>        inet netmask ffffff00 broadcast
>        ether 0:3:ba:10:46:43
> eri0:1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
>        inet netmask ff000000 broadcast
> eri0:2: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
>        inet netmask ff000000 broadcast
> 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:
> 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
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