The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to configure DHCP to Static IP lee30320 IP Networking 5 01-27-2009 03:56 AM
How do we fix the library conflicts? Hangman2 AIX 1 06-26-2008 05:43 PM
Software Dependencies Conflicts RobSand SUN Solaris 2 11-09-2007 05:45 PM
HP-UX 10.xx Changing from static IP to DHCP Steelysteel HP-UX 1 08-27-2007 05:55 PM
Memory conflicts ghoti UNIX for Advanced & Expert Users 1 12-05-2001 12:44 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-27-2008
ts97783 ts97783 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 2
dhcp and static ip conflicts.

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)


Code:
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;


Code:
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.


Code:
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.


Code:
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

Last edited by ts97783; 10-27-2008 at 06:20 PM..
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0