Neutron命令测试1

Refer: http://wenku.baidu.com/link?url=DtrbhO0A393hg8kOWKX0XYuZtSC8Iu0occn8NF1pYcUwNzlaSq5qXCQoNEBDMP5yTakMepoP_ZFheNu9j0MRnlF138wWctprLyiWGGaVl__

1.在/etc/network/interfaces中修改eth0网络配置信息

# interfaces(5) file used by ifup(8) and ifdown(8)
# auto lo
# iface lo inet loopback
auto eth0
iface eth0 inet manual
  up ifconfig $IFACE 0.0.0.0 up
  up ip link set $IFACE promiss on
  down ip link set $IFACE promiss off
  down ifconfig $IFACE down
auto br-ex
  iface br-ex inet static
  address 192.168.98.118
  netmask 255.255.255.0
  gateway 192.168.98.1
  dns-nameservers 192.168.98.1

2.br-ex挂物理网口

sudo ovs-vsctl add-port br-ex eth0;sudo service networking restart;

 

jay@jay:/$ ifconfig
br-ex Link encap:Ethernet HWaddr de:3b:a6:1d:2b:48
inet addr:172.24.4.1 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: 2001:db8::2/64 Scope:Global
inet6 addr: fe80::50db:a2ff:fe9b:dcb8/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:288 errors:0 dropped:0 overruns:0 frame:0
TX packets:222 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:23953 (23.9 KB) TX bytes:18357 (18.3 KB)

br-int Link encap:Ethernet HWaddr 52:74:74:73:8e:4f
inet6 addr: fe80::34d3:cfff:fe03:bd99/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:363870 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:64479423 (64.4 MB) TX bytes:828 (828.0 B)

br-tun Link encap:Ethernet HWaddr ba:34:3f:46:87:4a
inet6 addr: fe80::e8d4:65ff:fe5b:f6af/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:828 (828.0 B)

eth0 Link encap:Ethernet HWaddr 00:0c:29:77:37:03
inet addr:192.168.98.118 Bcast:192.168.98.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe77:3703/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1308967 errors:0 dropped:0 overruns:0 frame:0
TX packets:422217 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1345478842 (1.3 GB) TX bytes:251807902 (251.8 MB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:17750721 errors:0 dropped:0 overruns:0 frame:0
TX packets:17750721 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10375495620 (10.3 GB) TX bytes:10375495620 (10.3 GB)

qbrf1057be6-7b Link encap:Ethernet HWaddr 3a:ad:c4:60:b3:07
inet6 addr: fe80::68cb:2fff:fe31:1fc5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1655 errors:0 dropped:0 overruns:0 frame:0
TX packets:105 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:240393 (240.3 KB) TX bytes:15036 (15.0 KB)

qvbf1057be6-7b Link encap:Ethernet HWaddr 3a:ad:c4:60:b3:07
inet6 addr: fe80::38ad:c4ff:fe60:b307/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:1415 errors:0 dropped:0 overruns:0 frame:0
TX packets:1932 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:264744 (264.7 KB) TX bytes:295821 (295.8 KB)

qvof1057be6-7b Link encap:Ethernet HWaddr 56:81:57:31:e8:64
inet6 addr: fe80::5481:57ff:fe31:e864/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:1932 errors:0 dropped:0 overruns:0 frame:0
TX packets:1415 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:295821 (295.8 KB) TX bytes:264744 (264.7 KB)

tapf1057be6-7b Link encap:Ethernet HWaddr fe:16:3e:99:2f:29
inet6 addr: fe80::fc16:3eff:fe99:2f29/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:570 errors:0 dropped:0 overruns:0 frame:0
TX packets:322 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:33526 (33.5 KB) TX bytes:39030 (39.0 KB)

virbr0 Link encap:Ethernet HWaddr 9a:32:d4:22:82:bd
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST 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)

 

jay@jay:/$ sudo ovs-vsctl show
ffb10140-e5b7-4bcb-bdf2-01fda505c6e0
Bridge br-ex
Port "qg-c131f153-14"
Interface "qg-c131f153-14"
type: internal
Port br-ex
Interface br-ex
type: internal
Port "qg-1b3c8bb4-21"
Interface "qg-1b3c8bb4-21"
type: internal
Bridge br-tun
fail_mode: secure
Port br-tun
Interface br-tun
type: internal
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Bridge br-int
fail_mode: secure
Port "qr-62820738-62"
tag: 1
Interface "qr-62820738-62"
type: internal
Port br-int
Interface br-int
type: internal
Port "qvof1057be6-7b"
tag: 11
Interface "qvof1057be6-7b"
Port "tap6a6b3149-0f"
tag: 11
Interface "tap6a6b3149-0f"
type: internal
Port "qr-bbbfee1b-f7"
tag: 1
Interface "qr-bbbfee1b-f7"
type: internal
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Port "tap623dc764-d1"
tag: 1
Interface "tap623dc764-d1"
type: internal
ovs_version: "2.0.2"

posted @ 2015-10-21 15:10  Edisonxiang  阅读(326)  评论(0编辑  收藏  举报