I have a USB Wireless Adapter using the rum0 driver. All I want to do is set a perminent static IP for the onboard wired interface elxl0. I can plumb the wired interface up fine on the fly, but when I try to save the static IP over a reboot, I lose the IP address assigned to rum0 from my wireless router. See below;
1)This ouput is before I set the static IP on elxl0. At this point I have an assigned IP from my Wireless router and can connect to the internet using rum0 (my USB adapter)
ts97783@GX150:~$ more /etc/release
OpenSolaris 2008.05 snv_86_rc3 X86
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 26 April 2008
ts97783@GX150:~$ ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
elxl0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 2
inet 0.0.0.0 netmask ff000000
rum0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 3
inet 192.168.0.3 netmask ffffff00 broadcast 192.168.0.255
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
2) Next I manually plumb elxl0 with a static IP and ping the host connected to the interface - I do get "invalid argument" but the IP is still accepted. At this point I can STILL connect to the internet using rum0;
ts97783@GX150:~# ifconfig elxl0 inet 192.168.1.1 netmask 255.255.255.0 broadcast 127.0.0.255
ifconfig: SIOCSLIFBRDADDR: elxl0: Invalid argument
ts97783@GX150:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
elxl0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2
inet 192.168.1.1 netmask ffffff00 broadcast 192.168.1.255
ether 0:6:5b:25:77:e
rum0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 3
inet 192.168.0.3 netmask ffffff00 broadcast 192.168.0.255
ether 0:1e:8c:99:aa:3f
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
ts97783@GX150:~# ping 192.168.1.2
192.168.1.2 is alive
3) Now I attempt to save my static IP on elxl0 accross reboots, I am creating a hostname.elxl0 in /etc and rebooting.
ts97783@GX150:/# cd /etc
ts97783@GX150:/etc# echo 192.168.1.1 > hostname.elxl0
ts97783@GX150:/etc# more hostname.elxl0
192.168.1.1
ts97783@GX150:/etc# init 6
4) After the reboot, the static IP is remembered but I lose the IP from my router assigned to rum0. No more web browsing for me.
ts97783@GX150:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
elxl0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 2
inet 192.168.1.1 netmask ffffff00 broadcast 192.168.1.255
ether 0:6:5b:25:77:e
rum0: flags=201000802<BROADCAST,MULTICAST,IPv4,CoS> mtu 1500 index 3
inet 0.0.0.0 netmask 0
ether 0:1e:8c:99:aa:3f
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
This problem is causing me sleepless nights.
As soon as I delete the hostname.elxl0 file from etc and reboot. I am given an IP from my router and am back on the internet again using rum0
Can anyone explain this???
Thanks