Thursday, November 29, 2012

[Centos Linux] Configure Network interface : eth0/1

1. to bring a network card up :: 
shell> /sbin/ifconfig eth0 up

2. configure the network card from the following location::::

shell> /etc/sysconfig/network-scripts/ifcfg-<interface-name>

IPADDR=10.10.29.66
NETMASK=255.255.255.192
ONBOOT=yes

3. configure network file

shell> vi /etc/sysconfig/network
NETWORKING=yes
GATEWAY=10.10.29.65

4. Afterward, you may restart the network by execute the following command

shell>/sbin/service network restart

No comments:

Post a Comment