Redhat 6.5设置静态IP和动态IP配置文件

1, 静态IP:

# cat /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

BOOTPROTO=none
IPADDR=219.224.167.251
NETMASK=255.255.255.128
GETEWAY=219.224.167.129
ONBOOT=yes
DNS1=202.112.128.51
DNS2=202.112.128.50

TYPE=Ethernet
IPV6INIT=no

USERCTL=no

=========================

2,动态IP:

# cat /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

TYPE=Ethernet
IPV6INIT=no
USERCTL=no

你可能感兴趣的:(Fedora)