|
From: roy b. <roy...@ya...> - 2007-07-17 23:19:18
|
Hi again,
Many thanks for the help so far.
The patch file asm_types.h.patch allowed me to
compile quagga. :-)
The patch file for mount_cdrom works great! :-)
You are right to say network is working. my problem is
is that there are two copies of ifconfig.
The first one found of the path is built from
inetutils and this produces output like this:
root@Devil:~ # ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436
txqueuelen:0
This will NOT configure my network card and as it is
the fisr copy found on the path the network script
uses it.
The second ifconfig is in the sbin directory and is
compiled fron net-tools, this produces output like:
root@Devil:~ # /sbin/ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0
frame:0
TX packets:8 errors:0 dropped:0 overruns:0
carrier:0
collisions:0 txqueuelen:0
RX bytes:688 (688.0 b) TX bytes:688 (688.0
b)
This works (and give statistics, nice).
I can now configure my network card with:
ifconfig eth0 192.168.2.1 netmask 255.255.255.0
and the routing tables looks like this:
root@Devil:~ # ip r l
192.168.2.0/24 dev eth0 proto kernel scope link src
192.168.2.1
The 8139too module is autoloaded during the boot
process.
The setup tool adds a trailing dot (.) on the module
name in the config file.
root@Devil:~ # cat /etc/sysconfig/nic/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
MODULE="8139too."
DHCP=no
IP="192.168.2.1"
NETMASK="255.255.255.0"
BROADCAST="192.168.2.255"
This is not critical as the module is already loaded
(discovered at boot), so "/etc/init.d/network restart"
will get the card up and working.
Two suggestions for fixing the two copies of ifconfig:
1) edit /etc/init.d/network and change all instances
of ifconfig to /sbin/ifconfig
2) patch /build/scripts/inetutils to disable compiling
ifconfig with "--disable-ifconfig"
Both work, I prefer the second option attached is the
patch I used.
There are other duplicate files:
groups, hostname and mktmp can be found in both /bin
and /usr/bin both sets work but are different
binaries.
ntlm_auth can be found in both /usr/bin and /usr/sbin,
again both execute but are different binaries.
rpc.rquoted can be found in /sbin and /usr/bin, both
execute and are different binaries.
My consern is that like my issue with picking up a
ifconfig that did not work for me, the same could be
said of these files. The PATH is
/bin:/usr/bin:/sbin:/usr/sbin.
Also every time I restart networking I get :
/etc/wlan/shared: line 77: :[ too many arguments.
any ideas?
Thanks again,
Roy.
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ |