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

network partially configured by modprobe



Hello,

I run Linux with a 2.6.13 kernel without udev but with hotplug
(with almost evething compiled as modules). I have noticed that
just modprobing e100 (the module corresponding to my network card)
partially configure the network. To understand what happens I proceed
the following exporiment:

Booting with init=/bin/bash parameter (to be sure that no script
whatsoever is executed)

mount -o remount rw /
mount /proc
modprobe e100

then I see with ifconfig that my internet address has been already
assigned to eth0 and moreover route -n give something like

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
164.15.131.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         164.15.131.254  0.0.0.0         UG    1      0        0 eth0

Anyone has an explanation of this? I thought that the nework had to be configured
by scripts? I am completely puzzled because apparently the kernel known by itself
some configuration files. I do not really understand how a network is configured with
Linux.

The main reason I came to this problem is that I have written a script that change some configuration files according to a profile=... given on the kernel command line. That let
me use my laptop on different nework without having to change the configuration files each
time.

Olive




Reply to: