[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensolaris-laptop-discuss
Subject:    [laptop-discuss] dhcp and static ip conflicts.
From:       tim stockford <tim_stockford () hotmail ! com>
Date:       2008-10-25 16:29:35
Message-ID: 17038383.8751224977405427.JavaMail.Twebapp () sf-app1
[Download RAW message or body]

Hi, not sure if this is the right place to post but here goes...

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) I can 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, 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

5) After a lot of messing around. I tried creating a hostname.rum0 file aswell (as \
there had not previously been one). As you see, rum0 is now assigned dhcp status and \
is the primary interface as reported by netstat. I forgot to included the netstat \
output and I really cannot be bothered to create this problem again to add it - if it \
helps someone diagnose this fault then I'll be happy to do it. But trust me, rum0 is \
the primary dhcp interface in the below output and elxl0 is not configered to use \
dhcp. Still no assigned IP from my router though.

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 ff000000 broadcast 192.255.255.255
    ether 0:6:5b:25:77:e
rum0: flags=201004803<UP,BROADCAST,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 3
    inet 0.0.0.0 netmask ff000000
    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:/# 


I am stuck, all I want to do is assign a static IP address to elxl0 that persists \
accross reboots. 

I was thinking of reloading the rum driver just incase it's screwed, but it all works \
when I remove the hostname.elxl0 entry????

Thanks in advance.
--
This message posted from opensolaris.org
_______________________________________________
laptop-discuss mailing list
laptop-discuss@opensolaris.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic