Skip to content

Instantly share code, notes, and snippets.

Created October 15, 2015 14:36
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/cdb2d3af9239402d3238 to your computer and use it in GitHub Desktop.
Save anonymous/cdb2d3af9239402d3238 to your computer and use it in GitHub Desktop.
ifconfig
br-ex Link encap:Ethernet HWaddr 3a:eb:ff:6a:89:46
inet addr:172.24.4.1 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::a403:f3ff:fe37:2e59/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:21 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:1642 (1.6 KB) TX bytes:648 (648.0 B)
br-int Link encap:Ethernet HWaddr 6e:e1:40:3b:a7:4a
inet6 addr: fe80::50f8:88ff:fedb:a59e/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:180 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:10032 (10.0 KB) TX bytes:648 (648.0 B)
br-tun Link encap:Ethernet HWaddr d6:8a:3d:af:66:43
inet6 addr: fe80::9c72:deff:fe9d:cc06/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:17206 errors:0 dropped:0 overruns:0 frame:0
TX packets:20427 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6198740 (6.1 MB) TX bytes:16422152 (16.4 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:358119 errors:0 dropped:0 overruns:0 frame:0
TX packets:358119 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1842503990 (1.8 GB) TX bytes:1842503990 (1.8 GB)
lxcbr0 Link encap:Ethernet HWaddr c2:6b:91:7f:80:0c
inet addr:10.0.3.1 Bcast:10.0.3.255 Mask:255.255.255.0
inet6 addr: fe80::c06b:91ff:fe7f:800c/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)
qbrd9d8515b-e9 Link encap:Ethernet HWaddr fe:16:3e:ed:45:69
inet6 addr: fe80::3842:7cff:feb5:ed2a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:143 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:5044 (5.0 KB) TX bytes:648 (648.0 B)
qvbd9d8515b-e9 Link encap:Ethernet HWaddr fe:3e:7e:a3:df:21
inet6 addr: fe80::fc3e:7eff:fea3:df21/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:152 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1381 (1.3 KB) TX bytes:7772 (7.7 KB)
qvod9d8515b-e9 Link encap:Ethernet HWaddr 36:8a:8f:6b:9d:0d
inet6 addr: fe80::348a:8fff:fe6b:9d0d/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:152 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:7772 (7.7 KB) TX bytes:1381 (1.3 KB)
tapd9d8515b-e9 Link encap:Ethernet HWaddr fe:16:3e:ed:45:69
inet6 addr: fe80::fc16:3eff:feed:4569/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:137 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:6566 (6.5 KB) TX bytes:1771 (1.7 KB)
virbr0 Link encap:Ethernet HWaddr 52:a9:4f:b2:0b:ad
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 br-int
Interface br-int
type: internal
Port "qr-129ecadb-ed"
tag: 1
Interface "qr-129ecadb-ed"
type: internal
Port "tap690f0324-d8"
tag: 1
Interface "tap690f0324-d8"
type: internal
Port "qvod9d8515b-e9"
tag: 2
Interface "qvod9d8515b-e9"
Port "tap8a80c8d0-51"
tag: 2
Interface "tap8a80c8d0-51"
type: internal
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Bridge br-ex
Port "qg-15eba778-dd"
Interface "qg-15eba778-dd"
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
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
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