omfg! (eth0 becomes eth1, eth1 become eth2 and eth2 becomes eth0!!?!)

Brad Cox brad at linuxbofh.com
Mon Nov 5 10:22:18 PST 2001


On Mon, Nov 05, 2001 at 12:28:06AM -0800, Jake wrote:
> I passed my kernel ONE command that could have done anything (but
> not this kind of thing):
> /sbin/iptables -A INPUT -p tcp --syn -j DROP
> 
> I just wanted to have it drop all connections while it was up, then
> I rebooted to flush the rule ( i know it can do it otherways but I
> dont know how off the top of my head.)

/sbin/iptables -D INPUT -p tcp --syn -j DROP

I believe this will work for all rules that can be given with
iptables.

> I have no idea what the hell happened. This is insanity!

Did you add hardware at some point?

> I couldnt find any place on the entire system to reconfigure the eth
> cards other than /etc/modules.conf
> It had these lines inside it:
> 
> alias parport_lowlevel parport_pc
> alias eth1 tulip
> alias eth2 eepro100
> alias scsi_hostadapter aic7xxx
> alias eth0 tulip
> alias usb-controller usb-usci

The order in which the modules are loaded into the kernel determines
which number each ethernet card gets.  While the system is up, you can
see this by using rmmod and modprobe with the module name as an
option (eg, rmmod tulip).  When a card is added or removed, it will
sometimes change the number of the remaining cards.  It should never
change otherwise.

> Is there any other  place that has configuration files for setting
> up the alias of eth0 => hardware?

On RH, /etc/sysconfig/network/ifcfg-eth*.  On Debian
/etc/network/interfaces.  At the back of the computer will work for
all (ie, shuffle the cables).

-- 
Brad Cox		brad at linuxbofh.com
Key fingerprint = E741 589E 4A43 DA89 C5AA  B9A3 7E44 18BB C16B F62D
"Whip me.  Beat me.  Make me maintain AIX."
(By Stephan Zielinski)



More information about the talk mailing list