Skip to content

Instantly share code, notes, and snippets.

@bodepd
Last active December 23, 2015 09:49
Show Gist options
  • Select an option

  • Save bodepd/6617053 to your computer and use it in GitHub Desktop.

Select an option

Save bodepd/6617053 to your computer and use it in GitHub Desktop.
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.0.2.2 0.0.0.0 UG 100 0 0 eth0
10.0.2.0 * 255.255.255.0 U 0 0 0 eth0
10.2.3.0 * 255.255.255.0 U 0 0 0 eth2
10.3.3.0 * 255.255.255.0 U 0 0 0 eth3
192.168.242.0 * 255.255.255.0 U 0 0 0 eth1
Bridge br-ex
Port br-ex
Interface br-ex
type: internal
Port phy-br-ex
Interface phy-br-ex
Port "qg-f0d779f6-9d"
Interface "qg-f0d779f6-9d"
type: internal
Port "eth2"
Interface "eth2"
# neutron subnet-show b86e235e-9aef-401c-b464-3cb737d8a8f7
+------------------+--------------------------------------------------+
| Field | Value |
+------------------+--------------------------------------------------+
| allocation_pools | {"start": "172.16.2.128", "end": "172.16.2.150"} |
| cidr | 172.16.2.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 172.16.2.1 |
| host_routes | |
| id | b86e235e-9aef-401c-b464-3cb737d8a8f7 |
| ip_version | 4 |
| name | |
| network_id | 835568a0-6578-4ea5-9be2-e1175197aa33 |
| tenant_id | b9e7dea1a38e4ffaaa80a703b0e44e69 |
+------------------+--------------------------------------------------+
# ip netns exec qrouter-cd287ffb-766f-4ee7-a369-8ab1f3665998 ifconfig
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:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:504 (504.0 B) TX bytes:504 (504.0 B)
qg-f0d779f6-9d Link encap:Ethernet HWaddr fa:16:3e:ed:af:cf
inet addr:172.16.2.128 Bcast:172.16.2.255 Mask:255.255.255.0
inet6 addr: fe80::f816:3eff:feed:afcf/64 Scope:Link
UP BROADCAST RUNNING PROMISC MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:810 (810.0 B)
qr-71726716-18 Link encap:Ethernet HWaddr fa:16:3e:ac:ef:67
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::f816:3eff:feac:ef67/64 Scope:Link
UP BROADCAST RUNNING PROMISC MTU:1500 Metric:1
RX packets:29 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:9338 (9.3 KB) TX bytes:684 (684.0 B)
# ip netns
qdhcp-e9aed2da-f06f-4d54-870b-80cd31f4badd
qrouter-cd287ffb-766f-4ee7-a369-8ab1f3665998
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment