neutron-bridge模式
原创
©著作权归作者所有:来自51CTO博客作者Kernalzcy的原创作品,请联系作者获取转载授权,否则将追究法律责任
[3] Configure Bridge networking for KVM virtual machine.
[root@cloud01 ~]# cd /etc/sysconfig/network-scripts/
[root@cloud01 network-scripts]# cp ifcfg-em1 ifcfg-br0
[root@cloud01 network-scripts]# vim ifcfg-br0
DEVICE=br0 # change
HWADDR=24:B6:FD:F6:E8:E4
TYPE=Bridge # change
UUID=c073b3ae-d1cd-42fe-8d95-78e8087b25a8
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=192.168.1.198
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
[root@cloud01 network-scripts]# vim ifcfg-em1
DEVICE=em1
HWADDR=24:B6:FD:F6:E8:E4
TYPE=Ethernet
UUID=c073b3ae-d1cd-42fe-8d95-78e8087b25a8
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=192.168.1.198
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
BRIDGE=br0 # add
root@cloud01 network-scripts]# cd
[root@cloud01 ~]# /etc/rc.d/init.d/network restart
Shutting down interface em1: bridge br0 does not exist!
[ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface em1: [ OK ]
Bringing up interface br0: [ OK ]
[root@cloud01 ~]# ifconfig
br0 Link encap:Ethernet HWaddr 24:B6:FD:F6:E8:E4
inet addr:192.168.1.198 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::26b6:fdff:fef6:e8e4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2740 (2.6 KiB) TX bytes:2302 (2.2 KiB)
em1 Link encap:Ethernet HWaddr 24:B6:FD:F6:E8:E4
inet6 addr: fe80::26b6:fdff:fef6:e8e4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3228 (3.1 KiB) TX bytes:2650 (2.5 KiB)
Interrupt:35
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mas [
k:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1036 (1.0 KiB) TX bytes:1036 (1.0 KiB)
virbr0 Link encap:Ethernet HWaddr 52:54:00:02:C8:8B
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
上一篇:neutron网络入门
下一篇:nuetron 网络之负载均衡
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
设计模式-策略模式
设计模式之策略模式
策略模式 设计模式 -
桥模式 Bridge
“单一职责”模式: 在软件组件的设计中,如果责任划分的不清晰,使用继承得到的结果
DesignPattern 移动端 网络连接 多继承 -
桥接模式(bridge)
桥接模式(bridge)桥接模式是将抽象部分与它的实现部分分离,使他们都可以独立地变化。它是一种对象结构
桥接模式 ide desktop -
neutron用linux_bridge部署provider网络
网卡配置: ml2_conf.ini linuxbridge_agent.ini: 混杂模式:
neutron ide linux 其他