Package: dhcp-client
Version: 2.0pl5-19.1

Ethernet controller: Broadcom Corporation BCM4401 100Base-T (rev 01)
driver: b44
version: 0.95

Debian version: Testing
Kernel Version: 2.6.11-rc5

My interface has to be set 10BaseT Half Duplex to establish link
properly and so to get network parameters from the DHCP server. The
problem is that the /etc/dhclient-script do a "ifconfig down" to
delete all relevant routes and flushes the arp cache. By doing so it
resets the NIC media type setting to default (100BaseTx-FD), sooner
set to 10BaseT-HD with a pre-up directive in /etc/network/interfaces.
This prevents any DHCP transaction and network to be properly
configured.


Not as a solution but for explanation putting "mii-tool -A 10BaseT-HD
eth0" at line 119 solved my problem at boot time.

Here are lines of PREINIT bloc with this line added:

if [ x$reason = xPREINIT ]; then
  if [ x$alias_ip_address != x ]; then
    # Bring down alias interface. Its routes will disappear too.
    ifconfig $interface:0- inet 0
  fi
  if [ $relmajor -lt 2 ] || ( [ $relmajor -eq 2 ] && [ $relminor -eq 0 ] )
   then
    ifconfig $interface inet 0.0.0.0 netmask 0.0.0.0 \
                broadcast 255.255.255.255 up
    # Add route to make broad
cast work. Do not omit netmask.
    route add default dev $interface netmask 0.0.0.0
  else
    ifconfig $interface up
  fi

  # We need to give the kernel some time to get the interface up.
  sleep 1
  
 # This line is quite ugly and not generic at all
  mii-tool -A 10BaseT-HD eth0

  exit_with_hooks 0
fi

Best Regards

Yann


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to