Neutron命令测试2
/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
up ifconfig $IFACE 0.0.0.0 up
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 218.6.200.139
jay@jay:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.98.1 0.0.0.0 UG 0 0 0 br-ex
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 br-ex
192.168.98.0 0.0.0.0 255.255.255.0 U 0 0 0 br-ex
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
jay@jay:~$ ifconfig
br-ex 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::88:97ff:fe10:a692/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:203 errors:0 dropped:0 overruns:0 frame:0
TX packets:152 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20082 (20.0 KB) TX bytes:18188 (18.1 KB)
br-int Link encap:Ethernet HWaddr 52:74:74:73:8e:4f
inet6 addr: fe80::3873:4fff:fefe:8535/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
br-tun Link encap:Ethernet HWaddr ba:34:3f:46:87:4a
inet6 addr: fe80::802b:69ff:feb3:e5f2/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
eth0 Link encap:Ethernet HWaddr 00:0c:29:77:37:03
inet6 addr: fe80::20c:29ff:fe77:3703/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:190 errors:0 dropped:0 overruns:0 frame:0
TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18966 (18.9 KB) TX bytes:23301 (23.3 KB)
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:101 errors:0 dropped:0 overruns:0 frame:0
TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6101 (6.1 KB) TX bytes:6101 (6.1 KB)
qg-1b3c8bb4-21 Link encap:Ethernet HWaddr 92:15:0e:54:5b:43
inet6 addr: fe80::9015:eff:fe54:5b43/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:53 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4707 (4.7 KB) TX bytes:648 (648.0 B)
qg-c131f153-14 Link encap:Ethernet HWaddr fa:a0:9c:61:de:2e
inet6 addr: fe80::f8a0:9cff:fe61:de2e/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:52 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4617 (4.6 KB) TX bytes:648 (648.0 B)
qr-1ff67f2f-7c Link encap:Ethernet HWaddr f6:fb:36:e8:91:62
inet6 addr: fe80::f4fb:36ff:fee8:9162/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
qr-494c2740-64 Link encap:Ethernet HWaddr 6a:08:46:de:7a:e4
inet6 addr: fe80::6808:46ff:fede:7ae4/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
qr-52afc264-f7 Link encap:Ethernet HWaddr 52:80:91:03:4a:b5
inet6 addr: fe80::5080:91ff:fe03:4ab5/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
qr-621b2119-38 Link encap:Ethernet HWaddr 8a:5f:ba:55:f6:35
inet6 addr: fe80::885f:baff:fe55:f635/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
qr-62820738-62 Link encap:Ethernet HWaddr 0a:7c:87:01:9e:c6
inet6 addr: fe80::87c:87ff:fe01:9ec6/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
qr-a542000c-5c Link encap:Ethernet HWaddr 5e:00:b7:6a:f7:69
inet6 addr: fe80::5c00:b7ff:fe6a:f769/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
qr-bbbfee1b-f7 Link encap:Ethernet HWaddr a2:0a:66:f7:2a:4d
inet6 addr: fe80::a00a:66ff:fef7:2a4d/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
tap13f90e47-8c Link encap:Ethernet HWaddr 06:e3:ca:23:7a:54
inet6 addr: fe80::4e3:caff:fe23:7a54/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
tap60bf3ebc-40 Link encap:Ethernet HWaddr 3e:35:f4:cc:42:fb
inet6 addr: fe80::3c35:f4ff:fecc:42fb/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
tap623dc764-d1 Link encap:Ethernet HWaddr 92:15:f0:f7:a1:84
inet6 addr: fe80::9015:f0ff:fef7:a184/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
tap760d7697-b9 Link encap:Ethernet HWaddr 16:c8:46:f2:ff:ed
inet6 addr: fe80::14c8:46ff:fef2:ffed/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
tape2496b66-b3 Link encap:Ethernet HWaddr fe:ae:28:11:0d:27
inet6 addr: fe80::fcae:28ff:fe11:d27/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
tapfd0c5389-f8 Link encap:Ethernet HWaddr 22:05:7d:e9:a6:f1
inet6 addr: fe80::2005:7dff:fee9:a6f1/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
virbr0 Link encap:Ethernet HWaddr 32:d6:23:e1:82:28
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)