Configuring Network for a Linux System Edit configuration files stored in /etc/sysconfig/network-scripts/ You can configure network card by editing text files stored in / etc/sysconfig/network-scripts/ directory . First change directory to /etc/sysconfig/network-scripts/: # cd /etc/sysconfig/network-scripts/ Edit / create files as follows: • /etc/sysconfig/network-scripts/ifcfg-eth0 : First Ethernet card configuration file • /etc/sysconfig/network-scripts/ifcfg-eth1 : Second Ethernet card configuration file For edit/create first NIC file, type command: # vi ifcfg-eth0 Modify as follows: # Intel Corporation 82573E Gigabit Ethernet Controller (Copper) DEVICE=eth0 BOOTPROTO=static DHCPCLASS= HWADDR=00:30:48:56:A6:2E IPADDR=10.10.29.66 NETMASK=255.255.255.192 ONBOOT=yes Save and close the file. Define default gateway (router IP) and hostname in /etc/sysconfig//network file: # vi /etc/sysconfig/network Append/modify configuration as follows: NETWORKING=yes HOSTNAME=www1.nixcraft.in GATEWAY=...
Technology Director