#hostname
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=station10.rhev.demo
GATEWAY=172.17.1.254
---------------------------------------------
#hosts
127.0.0.1 vm localhost.localdomain localhost
172.17.142.23 manager.rhev.demo
---------------------------------------------
#ifcfg-rhevm
brctl addbr rhevm
brctl addif rhevm eth2
brctl show
---------------------------------------------
#ifcfg-rhevm
DEVICE=rhevm
BOOTPROTO=static
TYPE=Bridge
IPADDR=172.17.142.23
NETMASK=255.255.0.0
NM_CONTROLLED=no
ONBOOT=yes
---------------------------------------------
#ifcfg-eth2
DEVICE=eth2
BOOTPROTO=nono
TYPE=Ethernet
BRIDGE=rhevm
NM_CONTROLLED=no
ONBOOT=yes
---------------------------------------------
/etc/init.d/network restart
ping 172.17.142.23
留言
張貼留言