route -n
新增路由條目:
route add -net 0.0.0.0 gw 172.16.0.1
route add default gw 172.16.0.1 ##設置默認網關
***路由:
route del [-net | -host] 目標
DNS /etc/resolv.conf
本地解析 /etc/hosts
主機名 /etc/sysconfig/network
新增路由配置文件 /etc/sysconfig/network-scripts/route-ethX
ADDRESS0=
NETMASK0=
GATEWAY0=
/etc/sysconfig/network-scripts/(ifcfg-eth0)
BOOTPROTO={none|static|dhcp|bootp}