subnet
root@ :~# ip netns exec qdhcp-94ec94a9-88d3-4974-a1f5-8e86efa66a63 ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ns-b25f0021-8d@if134: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether fa:16:3e:54:92:90 brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet 10.10.19.52/24 brd 10.10.19.255 scope global ns-b25f0021-8d valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe54:9290/64 scope link valid_lft forever preferred_lft forever root@ :~# ip netns list | grep 9478dd55-2c31-4eef-a2c0-d5a65876fda9 root@ :~# ip netns exec qdhcp-94ec94a9-88d3-4974-a1f5-8e86efa66a63 route -n 内核 IP 路由表 目标 网关 子网掩码 标志 跃点 引用 使用 接口 0.0.0.0 10.10.19.50 0.0.0.0 UG 0 0 0 ns-b25f0021-8d 10.10.19.0 0.0.0.0 255.255.255.0 U 0 0 0 ns-b25f0021-8d root@controller1:~#
9: qr-f83ceaf8-28@if412: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether fa:16:3e:5c:98:cf brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet 10.10.19.50/24 brd 10.10.19.255 scope global qr-f83ceaf8-28 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe5c:98cf/64 scope link tentative dadfailed valid_lft forever preferred_lft forever 10: qg-ab301ab4-33@if413: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether fa:16:3e:80:37:69 brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet 210.xx.xx.150/27 brd 210.xx.xx.xx scope global qg-ab301ab4-33 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe80:3769/64 scope link valid_lft forever preferred_lft forever root@ :~# ip netns exec qrouter-9478dd55-2c31-4eef-a2c0-d5a65876fda9 route -n 内核 IP 路由表 目标 网关 子网掩码 标志 跃点 引用 使用 接口 0.0.0.0 210.22.22.129 0.0.0.0 UG 0 0 0 qg-ab301ab4-33 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qr-89b80c69-c7 10.10.19.0 0.0.0.0 255.255.255.0 U 0 0 0 qr-f83ceaf8-28 11.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qr-5202c94c-fc 12.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qr-2fc6e6dc-bb 13.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qr-066c61d6-b4 14.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qr-68d0c3a4-d2 15.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qr-2caff4ca-78 16.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qr-57a349f7-6a 210.xx.xx.128 0.0.0.0 255.255.255.224 U 0 0 0 qg-ab301ab4-33 root@controller3:~# brctl show | grep 9478dd55 root@controller3:~# brctl show | grep f83ceaf8 tapf83ceaf8-28 root@controller3:~# brctl show | grep f83ceaf8 -B 5 brq8f203ac5-b4 8000.8ee3c83ecd52 no eth3.305 tapdf1b0368-a3 brq92aa4600-84 8000.9a940d9aeb2e no eth3.250 tap25fe9d0e-c1 brq94ec94a9-88 8000.2a6b49fc0993 no eth3 tapf83ceaf8-28 root@controller3:~# brctl show brq94ec94a9-88 bridge name bridge id STP enabled interfaces brq94ec94a9-88 8000.2a6b49fc0993 no eth3 tapf83ceaf8-28 root@controller3:~#
root@ :~# brctl show | grep 5202c94c -B 5 brqd325223b-46 8000.42771bfd0320 no eth3.1400 tap68d0c3a4-d2 brqd3824c28-03 8000.9c52f867c5ae no eth3.180 brqd4586f60-10 8000.9c52f867c5ae no eth3.103 brqd47b9966-44 8000.8a9579988b23 no eth3.120 tap5202c94c-fc root@ :~# brctl show brqd47b9966-44 bridge name bridge id STP enabled interfaces brqd47b9966-44 8000.8a9579988b23 no eth3.120 tap5202c94c-fc