Internet on LiveCD

Alexander E. Patrakov patrakov at ums.usu.ru
Sun Jul 15 20:15:47 PDT 2007


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

-- 
Alexander E. Patrakov



More information about the livecd mailing list