First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 130670
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Roy Marples (RETIRED) <uberlord@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jack Byer <wts42@yahoo.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 130670 depends on: 137689 Show dependency tree
Show dependency graph
Bug 130670 blocks: 143820
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-04-20 16:03 0000
After upgrading baselayout (1.12.0_pre17-r3) and udev (090), the network
scripts no longer work correctly.

My computer has three onboard ethernet ports. I use eth0 for the connection to
the LAN and eth2 for the cable modem. eth0 has a static configuration and eth2
uses dhcp.

The problem occurs when bringing up net.eth2. The dhcp-client program tries to
setup _all_ interfaces, not just eth2. This destroys the configuration on eth0. 

If I bring up eth2 first then eth0, both interfaces work but I lose the
resolv.conf from dhcp.

Apr 20 17:51:39 [kernel] e100: eth2: e100_watchdog: link up, 10Mbps,
half-duplex
Apr 20 17:51:45 [dhclient] DHCPDISCOVER on eth1 to 255.255.255.255 port 67
interval 5
Apr 20 17:51:45 [dhclient] DHCPREQUEST on eth2 to 255.255.255.255 port 67
Apr 20 17:51:45 [dhclient] DHCPREQUEST on eth0 to 255.255.255.255 port 67
Apr 20 17:51:46 [dhclient] DHCPACK from 10.178.112.1
Apr 20 17:51:46 [dhclient] bound to 67.187.84.119 -- renewal in 120069 seconds.
Apr 20 17:51:50 [dhclient] DHCPDISCOVER on eth1 to 255.255.255.255 port 67
interval 6
Apr 20 17:51:54 [dhclient] DHCPREQUEST on eth0 to 255.255.255.255 port 67
Apr 20 17:51:56 [dhclient] DHCPDISCOVER on eth1 to 255.255.255.255 port 67
interval 14
Apr 20 17:52:10 [dhclient] DHCPDISCOVER on eth0 to 255.255.255.255 port 67
interval 5
Apr 20 17:52:10 [dhclient] DHCPDISCOVER on eth1 to 255.255.255.255 port 67
interval 8
Apr 20 17:52:15 [dhclient] DHCPDISCOVER on eth0 to 255.255.255.255 port 67
interval 12
Apr 20 17:52:18 [dhclient] DHCPDISCOVER on eth1 to 255.255.255.255 port 67
interval 14
Apr 20 17:52:27 [dhclient] DHCPDISCOVER on eth0 to 255.255.255.255 port 67
interval 20
Apr 20 17:52:31 [dhclient] DHCPDISCOVER on eth1 to 255.255.255.255 port 67
interval 14
Apr 20 17:52:46 [dhclient] No DHCPOFFERS received.

------- Comment #1 From SpanKY 2006-04-20 16:22:28 0000 -------
post your /etc/conf.d/net file

also, are you using hot or cold plugging ?

------- Comment #2 From Greg Kroah-Hartman 2006-04-20 16:33:32 0000 -------
Why would udev matter in this?

If you go back to 089 version of udev, does this get fixed?

------- Comment #3 From Jack Byer 2006-04-20 16:49:37 0000 -------
(In reply to comment #2)
> Why would udev matter in this?
> 
> If you go back to 089 version of udev, does this get fixed?
> 

I only mentioned this because it changed at the same time. Also this is the
first time I've used the new scripts that use udev for coldplug. udev was
trying to bring up net.eth1 when the system booted, but I figured out how to
fix that.

my /etc/conf.d/net:

config_eth0=( "192.168.1.4 netmask 255.255.255.0 broadcast 192.168.1.255" )
config_eth2=( "dhcp" )

------- Comment #4 From Jack Byer 2006-04-20 17:06:21 0000 -------
(In reply to comment #1)
> post your /etc/conf.d/net file
> 
> also, are you using hot or cold plugging ?
> 

Neither for the ethernet devices. I changed /etc/conf.d/rc to not allow
coldplugging of net.*

------- Comment #5 From Roy Marples (RETIRED) 2006-04-21 00:29:13 0000 -------
What version of dhcp have you got installed?

------- Comment #6 From Jack Byer 2006-04-21 17:01:54 0000 -------
(In reply to comment #5)
> What version of dhcp have you got installed?
> 

3.0.3-r4

------- Comment #7 From Roy Marples (RETIRED) 2006-04-21 17:05:52 0000 -------
Try 3.0.3-r7

------- Comment #8 From Jack Byer 2006-04-21 17:25:47 0000 -------
(In reply to comment #7)
> Try 3.0.3-r7
> 

This corrects the problem.

------- Comment #9 From Petr Svoboda 2006-08-13 13:29:29 0000 -------
I'm having similar problem. I have 2 interfaces: eth_wan0 configured using
ISP's dhcp and eth_lan0 with static IP. I'm running local dhcpd for subnet on
eth_lan0 too. When net.eth_wan0 is started, dhclient is run and it reconfigures
eth_lan0 using local dhcpd server provided IP. I got this problem after
upgrading baselayout from 1.11.15 to 1.12.4-r2. I have installed dhcp-3.0.3-r9.

Appending "${iface}" to dhclient commandline in /lib/rcscripts/net/dhclient.sh
on line 109 fixed the problem. But it's probably only hack, not a bugfix.

------- Comment #10 From Roy Marples (RETIRED) 2006-08-13 14:04:26 0000 -------
(In reply to comment #9)
> Appending "${iface}" to dhclient commandline in /lib/rcscripts/net/dhclient.sh
> on line 109 fixed the problem. But it's probably only hack, not a bugfix.

No, that's the correct fix. I cannot believe that no-one has spotted that!
Including me!

Will be in the next baselayout release.

------- Comment #11 From Roy Marples (RETIRED) 2006-08-13 16:16:31 0000 -------
(In reply to comment #10)
> Will be in the next baselayout release.

Fixed in baselayout-1.12.4-r3

------- Comment #12 From Roy Marples (RETIRED) 2006-08-13 23:51:44 0000 -------
Fixored

First Last Prev Next    No search results available      Search page      Enter new bug