Thursday, June 17, 2010

Chapter 7.13 Network Script

I do not know if any of this is right, but this is what I entered. Specifically, I do NOT want it to be turned on at boot, because it might be wrong.

root:/etc/sysconfig/network-devices# cat > ifconfig.eth0/ipv4 << "EOF"
> ONBOOT=no
> SERVICE=ipv4-static
> IP=192.168.1.1
> GATEWAY=192.168.1.2
> PREFIX=24
> BROADCAST=192.168.1.255
> EOF



root:/etc/sysconfig/network-devices# cat > /etc/resolv.conf << "EOF"
> # Begin /etc/resolv.conf
> nameserver 10.0.0.138
> # End /etc/resolv.conf
> EOF

No comments:

Post a Comment