[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: disabling ethernet loopback device completely



Bob, here's the output of ifconfig and netstat:
-------------------------

eth0      Link encap:Ethernet  HWaddr
00:0C:F1:84:BF:60  
          inet addr:192.42.172.158 
Bcast:192.42.172.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          RX packets:9492564 errors:0 dropped:0
overruns:0 frame:0
          TX packets:13046 errors:0 dropped:0
overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:2690837630 (2.5 GiB)  TX
bytes:4435753 (4.2 MiB)
          Base address:0xac00 Memory:ff5e0000-ff600000


eth1      Link encap:Ethernet  HWaddr
00:04:23:A6:7E:B6  
          inet addr:192.168.100.254 
Bcast:192.168.100.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:98 errors:0 dropped:0 overruns:0
frame:0
          TX packets:101 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:28330 (27.6 KiB)  TX bytes:6464
(6.3 KiB)
          Base address:0xb800 Memory:ff8c0000-ff8e0000


eth2      Link encap:Ethernet  HWaddr
00:04:23:A6:7E:B7  
          inet addr:20.1.1.1  Bcast:20.255.255.255 
Mask:255.0.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:39 errors:0 dropped:0 overruns:0
frame:0
          TX packets:0 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:11272 (11.0 KiB)  TX bytes:0 (0.0
b)
          Base address:0xbc00 Memory:ff8e0000-ff900000


lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:26202 errors:0 dropped:0
overruns:0 frame:0
          TX packets:26202 errors:0 dropped:0
overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:18830048 (17.9 MiB)  TX
bytes:18830048 (17.9 MiB)
------------------

Kernel IP routing table
Destination     Gateway         Genmask         Flags 
 MSS Window  irtt Iface
192.168.100.0   0.0.0.0         255.255.255.0   U     
   0 0          0 eth1
192.42.172.0    0.0.0.0         255.255.255.0   U     
   0 0          0 eth0
20.0.0.0        0.0.0.0         255.0.0.0       U     
   0 0          0 eth2
0.0.0.0         192.42.172.200  0.0.0.0         UG    
   0 0          0 eth0
---------------

Robert, let me try and explain the real reason I'm
trying to do this.

We're shipping computer system with debian
pre-installed on it. We always want 'eth0' to be the
motherboard's NIC. And "eth1" and "eth2" to on be the
Dual NIC pci card. Well, this isn't always the case,
as you may or may not know, because which alias gets
assigned to which MAC addr depends on how the kernel
modules come up. (This the same problem where people
complain that eth0/1 got swapped when they upgraded to
kernel 2.6.x). So the "nameif" and "ifrename"
utilities come into play to solve my problem. 

Now, I want to generate the /etc/mactab via a
calibration procedure using a physical RJ45 loopback
plug. And hence I'm writing a little test script that
will not only end up testing my ethernet ports, but
also produce the alias->mac mapping for me.

Hope this makes sense.

--- Bob Alexander <bob@ngi.it> wrote:

> salman h wrote:
> >  Hi,
> > 
> >  I want to disable the loopback interface "lo" on
> my
> > machine completely so that when I try to send data
> > packets to the IP address that is configured for
> > "eth0" on my local machine, the packets are
> actually
> > put on the physical network.
> > 
> 
> Sorry for the confusion.
> 
> Please post output of:
> 
> ifconfig
> netstat -nr
> 
> HTH,
> Bob	
> 
> 
> -- 
> To UNSUBSCRIBE, email to
> debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 



Reply to: