Network configuration
Sunday, 6. August 2006, 04:18:02
Red Hat Distro ( fedora, centos )
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 BOOTPROTO=static #dhcp ONBOOT=yes TYPE=Ethernet NETMASK=255.255.255.0 IPADDR=192.168.1.2 GATEWAY=192.168.1.1
Debian Distro ( Ubuntu, etc )
/etc/network/interface
iface eth0 inet static # dhcp address 192.168.1.2 netmask 255.255.255.0 gateway 192.168.1.1 dns-search somedomain.org dns-nameservers 195.238.2.21 195.238.2.22
FreeBSD
/etc/rc.conf
# the interface name is variable, assume the interface name is lnc0 ifconfig_lnc0="inet 192.168.1.2 netmask 255.255.255.0" defaultrouter="192.168.1.1"
If you specified DCHP, IP address and netmask can be ignore
Edit /etc/resolv.conf as well to put the DNS if static IP is specified
nameserver 202.188.1.5
Again, network script can be more complex, but with these settings it is enough to access internet.















