Internet on LiveCD

Dan McGhee 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 216.139.123.222 peer 216.139.123.254/32 brd 216.139.123.255 scope 
>> global eth0
>>     
>
>   
>> ip route list
>> 216.139.123.254 dev eth0 proto kernel scope link src 216.139.123.222
>> default via 216.139.123.254 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
> ONBOOT=yes
> SERVICE=ipv4-static
> IP=216.139.123.222
> GATEWAY=216.139.123.254
> 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 216.139.111.53
> nameserver 216.139.111.54
>
>   
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 
/etc/sysconfig/network-devices/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 
assignments right.

Alexander, thank you for your help.

Dan



More information about the livecd mailing list