Re: route command baffles me.



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

Better would be "/sbin/ifdown eth1". It is a script that does
additional cleanup in certain configurations.

Network configuration is different under different distributions of
Linux. Which one do you have?

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.

[snip]

The man page under my version of Linux (Fedora Core 6) says that
ifconfig -a shows all interfaces. Why do you care? If it's down,
it's down. It's not in the routing tables, and it doesn't affect you.
Use ifconfig without the -a to show all the active interfaces. If
your eth0 and eth1 used different drivers, it *might* be possible to
use rmmod to remove the kernel module supporting one of the
devices--no guarantees. I've never heard of unrecognizing an ethernet
interface after booting. Maybe there's a way to do it, but it might
depend on exactly which driver you're using. So what is the content
of your "/etc/mod*.conf"? (It's usually named either
"/etc/modules.conf" of "/etc/modprobe.conf".)

You might be able to force eth1 not to be recognized at boot time by
putting the line "alias eth1 off" in your "/etc/mod*.conf". I
wouldn't count on it, since this is a command to the kernel to not
load a driver. If eth0 uses the same driver, I would expect the
driver to find both interfaces.

While you can certainly use command line tools to configure your VLAN
(and I would do it that way myself, the first time) you will probably
want to use the existing networking scripts for doing so. In my
distribution (FC6) they can be found in
"/etc/sysconfig/network-scripts". You can read the scripts to find
out what they do, grep them for "VLAN" or "vconfig" to find out how
they are used and configuration files they look at. There are also
GUI configuration tools to setup the network. I tend to use them only
at initial installation, and then tweak things by hand if necessary.
FC6 has "system-config-network".

I don't use VLANs under Linux, so I might not be able to help you
there. I do know something about routing.

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



Relevant Pages

  • Re: [patch 1/2] uml: enable drivers (input, fb, vt)
    ... # Loadable module support ... # Generic Driver Options ... # DCCP Configuration ... # UML Network Devices ...
    (Linux-Kernel)
  • Re: wireless configuration problem
    ... If I configure the pcmcia card via yast, ... but it never comes up on wireless network. ... ifconfig eth1 192.168.1.3 up ... > problem is with my linux configuration somewhere. ...
    (alt.os.linux.suse)
  • Re: [SLE] Unable to connect to Wireless Network
    ... WiFi on linux appears to be less mature than on ... then the network doesnot accept linux systems. ... If the driver works, it is an issue with either your ... that I need to tell him or anything that I should check in the configuration ...
    (SuSE)
  • 8.2 network configuration wont save
    ... I have a problem with my network configuration using SuSE 8.2. ... detected and configured as eth0 and eth1. ...
    (alt.os.linux.suse)
  • Re: [SLE] HowTo connect dhcpd and dhcp-client
    ... > local network now. ... > to works fine with this configuration. ... Protect from internal network is ... To keep things simple, and consistent with eth1, perhaps this is better: ...
    (SuSE)