配置网络

配置网络

vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

BOOTPROTO=static

BROADCASE=172.24.1.255

IPADDR=172.24.1.122

NETMASK=255.255.255.0

NETWORK=172.24.1.0

ONBOOT=yes

网关:

vi /etc/sysconfig/netowrk

NETWORKING=yes

HOSTNAME=wmlinux

GATEWAY=172.24.1.1

DNS:

vi /etc/resolv.conf

nameserver 172.16.1.2

 

你可能感兴趣的:(配置网络)