Wednesday, July 1, 2009

redhat static ip nic config configuration example

[root@abcd conf]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
# hostname set in /etc/sysconfig/network and in /etc/hosts
DEVICE=eth0
#BOOTPROTO=dhcp
HWADDR=00:0C:29:24:B7:B2
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.1.234
BROADCAST=192.168.1.255
NETMASK=255.255.255.0
TYPE=Ethernet
GATEWAY=192.168.1.1

No comments: