brictl addbr


#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



留言

這個網誌中的熱門文章

Json概述以及python對json的相關操作

Docker容器日誌查看與清理

利用 Keepalived 提供 VIP