Internet on LiveCD
beesnees at grm.net
Sat Jul 21 04:53:23 PDT 2007
Alexander E. Patrakov wrote:
> Dan McGhee wrote:
>> 3: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
>> link/ether 00:0e:a6:1b:82:ef brd ff:ff:ff:ff:ff:ff
>> inet 18.104.22.168 peer 22.214.171.124/32 brd 126.96.36.199 scope
>> global eth0
>> ip route list
>> 188.8.131.52 dev eth0 proto kernel scope link src 184.108.40.206
>> default via 220.127.116.11 dev eth0
>> Just for comparison, I ran the same commands on LiveCD. 'ip route list'
>> returned nothing.
> You forgot to set the gateway, and have a probably incorrect setting of
> PREFIX. The need for PEER is very uncommon. Try this:
> # /etc/sysconfig/network-devices/ifconfig.eth0/ipv4
> PREFIX=24 # see below
> I assume that you have the netmask 255.255.255.0. If not, you need a
> different prefix:
> 255.255.255.0 => 24
> 255.255.255.128 => 25
> 255.255.255.192 => 26
> 255.255.255.224 => 27
> # /etc/resolv.conf
> nameserver 18.104.22.168
> nameserver 22.214.171.124
I think I may have solved this. But I did nothing intentional to do it.
As you suggested, I made my files look like the above. After I booted
the LiveCd I ran the following:
# rm /etc/sysconfig/network-devices/ifconfig.eth[0,1}
# rm /etc/udev/rules.d/76-network-rules
# cp (path to $BLFSHOME/ifconfig.eth0
# cp (path to $BLFSHOME/resolv.conf /etc
# /etc/rc.d/init.d/network restart
and everything worked fine! But I thought I had done this before. Maybe
I hadn't, but I noticed from 'dmesg' that 'skge' was being loaded for
eth0, ethernet card, and 'forcedeth' for eth1. My intention had been on
this last try to use eth1 instead of eth0 for my internet connect.
However, when the LiveCd booted this time it bound forcedeth to eth0.
Don't know why. At least my thought processes were correct. I couldn't
use the internet on LiveCD because I was setting up the wrong device.
In all of this I learned that I have forgotten when and where the
modules are assigned to devices. Is that in udev now? What I want to do
is make sure, when I remaster the LiveCD that I get the network
Alexander, thank you for your help.
More information about the livecd