Skip to content

Instantly share code, notes, and snippets.

Created October 16, 2015 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8f76eb05c7d445f90b63 to your computer and use it in GitHub Desktop.
Save anonymous/8f76eb05c7d445f90b63 to your computer and use it in GitHub Desktop.
br-ex Link encap:Ethernet HWaddr 08:00:27:f7:4b:71
inet addr:172.24.4.1 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::54ab:57ff:fe59:142a/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:2158 errors:0 dropped:0 overruns:0 frame:0
TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:333329 (333.3 KB) TX bytes:1404 (1.4 KB)
br-int Link encap:Ethernet HWaddr 6e:e1:40:3b:a7:4a
inet6 addr: fe80::3094:e1ff:fe2c:b3f3/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:155 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:10614 (10.6 KB) TX bytes:648 (648.0 B)
br-tun Link encap:Ethernet HWaddr 3e:0a:20:16:2e:46
inet6 addr: fe80::a81d:7cff:fe42:5d4c/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 08:00:27:4e:cc:3f
inet addr:10.1.10.10 Bcast:10.1.10.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe4e:cc3f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19871 errors:0 dropped:0 overruns:0 frame:0
TX packets:29413 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3997657 (3.9 MB) TX bytes:26062617 (26.0 MB)
eth1 Link encap:Ethernet HWaddr 08:00:27:f7:4b:71
inet addr:10.1.10.9 Bcast:10.1.10.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fef7:4b71/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2461 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:360253 (360.2 KB) TX bytes:3550 (3.5 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:310969 errors:0 dropped:0 overruns:0 frame:0
TX packets:310969 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1834780847 (1.8 GB) TX bytes:1834780847 (1.8 GB)
lxcbr0 Link encap:Ethernet HWaddr 02:1b:ff:ea:57:b3
inet addr:10.0.3.1 Bcast:10.0.3.255 Mask:255.255.255.0
inet6 addr: fe80::1b:ffff:feea:57b3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST 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)
qbr869d7769-d1 Link encap:Ethernet HWaddr aa:54:b7:c4:3d:ed
inet6 addr: fe80::8471:35ff:feed:6aa3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:95 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:3700 (3.7 KB) TX bytes:648 (648.0 B)
qvb869d7769-d1 Link encap:Ethernet HWaddr aa:54:b7:c4:3d:ed
inet6 addr: fe80::a854:b7ff:fec4:3ded/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1381 (1.3 KB) TX bytes:5756 (5.7 KB)
qvo869d7769-d1 Link encap:Ethernet HWaddr 26:0e:38:f7:13:55
inet6 addr: fe80::240e:38ff:fef7:1355/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:104 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5756 (5.7 KB) TX bytes:1381 (1.3 KB)
tap869d7769-d1 Link encap:Ethernet HWaddr fe:16:3e:b2:b4:29
inet6 addr: fe80::fc16:3eff:feb2:b429/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:89 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:4550 (4.5 KB) TX bytes:1611 (1.6 KB)
virbr0 Link encap:Ethernet HWaddr 7a:2b:b0:ba:16:e0
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)
########################
sudo ovs-vsctl show
4a09e543-96c4-41cc-a3dc-1db3d8fc9505
Bridge br-int
fail_mode: secure
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Port br-int
Interface br-int
type: internal
Port "qr-0c9c2497-c7"
tag: 1
Interface "qr-0c9c2497-c7"
type: internal
Port "qvo869d7769-d1"
tag: 3
Interface "qvo869d7769-d1"
Port "tapa4d0f5f6-67"
tag: 3
Interface "tapa4d0f5f6-67"
type: internal
Port "tap12590bb4-b5"
tag: 1
Interface "tap12590bb4-b5"
type: internal
Bridge br-ex
Port "eth1"
Interface "eth1"
Port "qg-7b4e782a-78"
Interface "qg-7b4e782a-78"
type: internal
Port br-ex
Interface br-ex
type: internal
Bridge br-tun
fail_mode: secure
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Port br-tun
Interface br-tun
type: internal
ovs_version: "2.0.2"
#########################################
ip route
default via 10.1.10.254 dev eth0
10.0.0.0/24 via 172.24.4.2 dev br-ex
10.0.3.0/24 dev lxcbr0 proto kernel scope link src 10.0.3.1
10.1.10.0/24 dev eth0 proto kernel scope link src 10.1.10.10
10.1.10.0/24 dev eth1 proto kernel scope link src 10.1.10.9
172.24.4.0/24 dev br-ex proto kernel scope link src 172.24.4.1
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
############################
netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.1.10.254 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 172.24.4.2 255.255.255.0 UG 0 0 0 br-ex
10.0.3.0 0.0.0.0 255.255.255.0 U 0 0 0 lxcbr0
10.1.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.1.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
172.24.4.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
#######################
cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment