BY: pcummins DATE: 2006-Mar-17 20:16 SUBJECT: RE: eth0 configuration file & detailsIt's in:
/etc/resolv.conf
Sample:
search localdomain
nameserver 192.168.0.1
/etc/sysconfig/network
Sample:
NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=playstation2
GATEWAY=192.168.0.1
/etc/sysconfig/network-scripts/ifcfg-eth0
Sample:
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
Those 3 files are all that is needed to configure it for say, a local router gateway to the Internet on a private subnet. You can command-line it with ifconfig, however it's not trivial, it's a lot easier to edit the three files and restart. |