How to configure the network for Linux

1 GUI tool system-config-network

# system-config-network &

2 Command line tool system-config-network-tui

# system-config-network-tui &

3 Edit configuration files stored in

# cd /etc/sysconfig/network-scripts/
open the config file for the first Ethernet  device
# vi ifcfg-eth0

## 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

define gateway
# vi /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=www1.nixcraft.in
GATEWAY=10.10.29.65

 
restart service
# /etc/init.d/network restart

verify the dns
# vi /etc/resolv.conf

nameserver 10.0.80.11
nameserver 10.0.80.12
nameserver 202.67.222.222

Done
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章