关于RHEL6下桥网配置的写法(ifcfg-eth0,ifcfg-br0)
Posted on 2011-07-28 16:46 zhousir1991 阅读(4036) 评论(0) 编辑 收藏 举报以下仅仅是我在做练习的时候下的环境,参照写即可:
[root@desktop26 ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE="br0"
BOOTPROTO="static"
IPADDR="192.168.0.26"
NETMASK="255.255.255.0"
DNS1="192.168.0.253"
DNS2="61.134.1.5"
HOSTNAME="desktop26.example.com"
IPV6INIT="no"
NAME="Bridge eth0"
NM_CONTROLLED="no"
ONBOOT="yes"
DELAY="0"
TYPE="Bridge"
GATEWAY=192.168.0.253
[root@desktop26 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="static"
DNS1="192.168.0.254"
HWADDR="00:1E:37:D4:06:3E"
IPADDR="192.168.0.26"
NETMASK="255.255.255.0"
NM_CONTROLLED="yes"
ONBOOT="yes"
BRIDGE=br0