Package: ifupdown
Version: 0.6.8

With the following configuration in /etc/network/interfaces:

===========================================================================
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
#iface eth0 inet dhcp
iface eth0 inet static
        address 139.137.100.23
        netmask 255.255.255.0
        gateway 139.137.100.100
        media 100baseTx-FD
        # up mii-tool -F 100baseTx-FD eth0
===========================================================================

The "gateway" line was not respected; the machine booted without a default
gateway at all.  The routing table looked like:

Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
139.137.100.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0

Also, the "media 100baseTx-FD" line did not actually set the interface's
media type to full duplex.  It failed to do what it was supposed to do,
as well as causing another line (above it!) to fail.

The "up mii-tool -F 100baseTx-FD eth0" line also did not work as expected
(which is why it was commented out).  The interface still came up with
the wrong duplex.

The only working solution I've found so far is:

===========================================================================
iface eth0 inet static
        address 139.137.100.23
        netmask 255.255.255.0
        gateway 139.137.100.100
        up sleep 3; mii-tool -F 100baseTx-FD eth0
===========================================================================

I'm not using any other manual configuration of anything; nothing in any
"modules" or "modules.conf" files, etc.  Just plain old etch default
autodetecting mechanisms, whatever they may be.


Interface details:
  img2:~# dmesg | grep eth0
  eth0: Tigon3 [partno(N/A) rev 4201 PHY(5750)] (PCI Express) 10/100/1000BaseT 
Ethernet 00:1b:78:39:80:33
  eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] Split[0] WireSpeed[1] 
TSOcap[1] 
  eth0: dma_rwctrl[76180000] dma_mask[64-bit]
  tg3: eth0: Link is up at 100 Mbps, half duplex.
  tg3: eth0: Flow control is off for TX and off for RX.
  eth0: no IPv6 routers present

  img2:~# dmesg | grep tg
  tg3.c:v3.65 (August 07, 2006)
  tg3: eth0: Link is up at 100 Mbps, half duplex.
  tg3: eth0: Flow control is off for TX and off for RX.


General information:
  New etch installation
  Linux img2 2.6.18-5-686 #1 SMP Sun Aug 12 21:57:02 UTC 2007 i686 GNU/Linux
  ii  libc6          2.3.6.ds1-13etch2 GNU C Library: Shared libraries


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

Reply via email to