Re: route command baffles me.



Unruh <unruh-spam@xxxxxxxxxxxxxx> writes:

gl@xxxxxxxxxxxxxxxxxxxxxxxx (Jay G. Scott) writes:

In article <56qnkqF2aem2dU1@xxxxxxxxxxxxxxxxxx>,
patrick <ptri.c.k@xxxxxxxxxxxxxx> wrote:
In news:eu9592$7e6$1@xxxxxxxxxxxxxxxxxxxx,
Jay G. Scott <gl@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:

is there something equivalent to solaris' unplumb, so that
i can tell eth1 to drop dead? ie, w/o a reboot?

# /sbin/ifconfig eth1 down

when you do ifconfig -a under with eth1 down, it still shows
eth1. i want ifconfig -a to not show anything about eth1
at all. i've done down, and down doesn't do that.
if you unplumb on solaris, ifconfig -a won't mention it
at all.


i assume if i rename the ifup (or whatever it is) script
and reboot it'll go away.

Gee, what's the opposite of up?

down.

Excellent. And what might then be the command corresponding to ifup eth1?

Note that under Linux, the system tries to assign eth when the device
driver is loaded. So the best idea for you would be to also remove the
device driver
eg
modprobe -r eth1

But you don't want to remove this module if it is the same one that
serves eth0.

Depending on what module that is, there may be arguments that can be
passed to the module to override the automatic probing of the hardware
done at boot time. So at boot time, you could have the driver
recognize only one interface.

Scott
--
Scott Hemphill hemphill@xxxxxxxxxxxxxxxxxx
"This isn't flying. This is falling, with style." -- Buzz Lightyear
.



Relevant Pages

  • Difficult networking problem
    ... mbit ethernet nics (eth0 and eth1). ... I can ping each interface but only one ... ifconfig eth0 down && ifconfig eth1 up ...
    (comp.os.linux.setup)
  • Re: How to get my wireless adapter work?
    ... When I use ifconfig, the wireless adapter is not list unless I run: ... connection, but not DHCP requirement. ... When I use dhclient to get an IP address for my eth1, ... configuration for eth1 not found. ...
    (comp.os.linux.networking)
  • Re: LAN configuration - Debian Sarge
    ... My nic is the one identified as eth1 in ifconfig -a. ... I tried ifconfig eth1 inet 192.168.0.11/99 with success of a sort. ... route 192.168.0.0 (RWMHOMENET) appears in the routing table. ... localhost ...
    (comp.os.linux.networking)
  • Re: route command baffles me.
    ... when you do ifconfig -a under with eth1 down, ... something "the solaris way" when this ain't solaris. ... be quicker to recognize that eth0 was set up as i wanted. ...
    (comp.os.linux.networking)
  • Re: route command baffles me.
    ... when you do ifconfig -a under with eth1 down, ... show up as an unconfigured interface if that's what it is? ... something "the solaris way" when this ain't solaris. ...
    (comp.os.linux.networking)