Bug#224645: netcfg wishlists, udhcpc|pump, intend /etc/network/interfaces
Am Sam, den 20.12.2003 schrieb Martin Michlmayr um 18:45:
> This PC had two Ethernet devices, and one was connected to another machine
> running a DHCP server. netcfg showed:
> eth0: Ethernet or Fast Ethernet
> eth1: Ethernet or Fast Ethernet
> I selected eth1, but got an error. Unfortunately, it did not tell me at
> all what was wrong! After a bit I found out that it called /sbin/pump
> which failed with "error while loading shared libraries: libpopt.so.9:
> cannot open shared object file: No such file or directory". I see pump is
> being removed (#221227). I guess in netcfg-common.c, udhcpc should also be
> preferred to pump, i.e. those lines swaped:
> else if (stat("/sbin/pump", &stat_buf) == 0)
> dhcp_client = PUMP;
> and:
> else if (stat("/sbin/udhcpc", &stat_buf) == 0)
> dhcp_client = UDHCPC;
> Still, netcfg should show why the DHCP client failed. Also, since pump is
> broken, it should definitely not be installed for beta2!
IIRC we agreed to standardize on one DHCP client and joeyh changed all
pkg-lists to include dhclient-udeb. I don't know why you had pump on
your image.
>
> Also, the "eth1: Ethernet or Fast Ethernet" menu is nice, but damn if I
> know what eth0 and eth1 are... it would be cool to show the name of the
> device, perhaps that shown by lspci:
> eth0: VIA Technologies, Inc. VT6102
> eth1: 3Com Corporation 3c905 100BaseTX
Indeed that would be nice, but I don't know a way to map the pci ids
returned by lspci to the network device names. As your example below
shows, this is probably not trivial...
>
> Since DHCP didn't work in the beginning (I later simply removed /sbin/pump
> so it would use /sbin/udhcpc instead), I configured a static address. I
> put in my info and was asked "Is this information correct?". I said "no",
> and did the whole thing again. It rememberd the IP address I typed in
> before, but it reset my gateway from 10.0.0.140 to 10.0.0.1.
>
> Also, a /etc/network/interfaces entry is generated which looks like this:
>
> iface eth1 inet static
> address ...
> netmask ...
>
> Please format/intend this more nicely:
>
> iface eth1 inet static
> address ...
> netmask ...
Looking at the current source there should be a tab for indentation:
fprintf(fp, "auto %s\n", interface);
fprintf(fp, "iface %s inet static\n", interface);
fprintf(fp, "\taddress %s\n", num2dot(ipaddress));
fprintf(fp, "\tnetmask %s\n", num2dot(netmask));
fprintf(fp, "\tnetwork %s\n", num2dot(network));
fprintf(fp, "\tbroadcast %s\n", num2dot(broadcast));
>
> After boot, eth0 and eth1 suddenly changed! I told debian-installer to use
> eth1 (the 3Com) for DHCP, but after reboot the 3Com was suddenly eth0!
Do you have any clue why this happened? This sounds like nasty problem
with module loading order...
Did your installed system use the same kernel version as the installer?
Gaudenz
Reply to: