Revision history [back]

click to hide/show revision 1
initial version

One of the interface is Build, not Active, others (ha-node2, and ha-node3) all are Active.

I have three nodes to do HA.

One of the interface is Build, not Active, others (ha-node2, and ha-node3) all are Active.

image description

I have checked the below commands:

1) list the namespace

[root@ha-node1 mysql]# ip netns list
qrouter-f0d0305f-73df-4efe-a2a6-ec3102d4570b (id: 0)
qdhcp-8603929d-6d3b-44dd-af59-d9a4f77d4048 (id: 5)
qdhcp-84780518-2e5a-4fc7-8ddb-7cd20e495f6d (id: 4)
qdhcp-c96b9770-1a84-469e-9822-3a3018064d67 (id: 3)
qdhcp-dcbdab02-d9d1-4379-8d1d-28d4df89ca70 (id: 2)
qdhcp-fe5ba835-2d1c-4577-b5b1-4f6631d8d0b9 (id: 1)

2) use the only namespace to ping ips:

[root@ha-node1 mysql]# sudo ip netns exec qrouter-f0d0305f-73df-4efe-a2a6-ec3102d4570b ping baidu.com 
ping: unknown host baidu.com
[root@ha-node1 mysql]# sudo ip netns exec qrouter-f0d0305f-73df-4efe-a2a6-ec3102d4570b ping 192.168.2.1
connect: Network is unreachable
[root@ha-node1 mysql]# sudo ip netns exec qrouter-f0d0305f-73df-4efe-a2a6-ec3102d4570b ping 192.168.2.2
connect: Network is unreachable
[root@ha-node1 mysql]# sudo ip netns exec qrouter-f0d0305f-73df-4efe-a2a6-ec3102d4570b ping 192.168.3.1
connect: Network is unreachable
[root@ha-node1 mysql]# sudo ip netns exec qrouter-f0d0305f-73df-4efe-a2a6-ec3102d4570b ping 192.168.4.1

3) show the namespace ipconfig:

[root@ha-node1 mysql]# sudo ip netns exec qrouter-f0d0305f-73df-4efe-a2a6-ec3102d4570b ifconfig 
ha-fbaa5efe-09: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        inet 169.254.192.1  netmask 255.255.192.0  broadcast 169.254.255.255
        inet6 fe80::f816:3eff:fe64:f674  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:64:f6:74  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7  bytes 738 (738.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

qr-709f617e-9a: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether fa:16:3e:ae:1a:30  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2  bytes 188 (188.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

qr-80249b57-91: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        ether fa:16:3e:f4:62:03  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2  bytes 220 (220.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

One of the interface is Build, not Active, others (ha-node2, and ha-node3) all are Active.

I have three nodes to do HA.

One of the interface is Build, not Active, others (ha-node2, and ha-node3) all are Active.

image description

I have checked the below commands:

1) list the namespace

[root@ha-node1 mysql]# ip netns list
qrouter-f0d0305f-73df-4efe-a2a6-ec3102d4570b (id: 0)
qdhcp-8603929d-6d3b-44dd-af59-d9a4f77d4048 (id: 5)
qdhcp-84780518-2e5a-4fc7-8ddb-7cd20e495f6d (id: 4)
qdhcp-c96b9770-1a84-469e-9822-3a3018064d67 (id: 3)
qdhcp-dcbdab02-d9d1-4379-8d1d-28d4df89ca70 (id: 2)
qdhcp-fe5ba835-2d1c-4577-b5b1-4f6631d8d0b9 (id: 1)

2) use the only namespace to ping ips:

[root@ha-node1 mysql]# sudo ip netns exec qrouter-f0d0305f-73df-4efe-a2a6-ec3102d4570b ping baidu.com 
ping: unknown host baidu.com
[root@ha-node1 mysql]# sudo ip netns exec qrouter-f0d0305f-73df-4efe-a2a6-ec3102d4570b ping 192.168.2.1
connect: Network is unreachable
[root@ha-node1 mysql]# sudo ip netns exec qrouter-f0d0305f-73df-4efe-a2a6-ec3102d4570b ping 192.168.2.2
connect: Network is unreachable
[root@ha-node1 mysql]# sudo ip netns exec qrouter-f0d0305f-73df-4efe-a2a6-ec3102d4570b ping 192.168.3.1
connect: Network is unreachable
[root@ha-node1 mysql]# sudo ip netns exec qrouter-f0d0305f-73df-4efe-a2a6-ec3102d4570b ping 192.168.4.1

3) show the namespace ipconfig:

[root@ha-node1 mysql]# sudo ip netns exec qrouter-f0d0305f-73df-4efe-a2a6-ec3102d4570b ifconfig 
ha-fbaa5efe-09: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        inet 169.254.192.1  netmask 255.255.192.0  broadcast 169.254.255.255
        inet6 fe80::f816:3eff:fe64:f674  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:64:f6:74  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7  bytes 738 (738.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

qr-709f617e-9a: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether fa:16:3e:ae:1a:30  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2  bytes 188 (188.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

qr-80249b57-91: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        ether fa:16:3e:f4:62:03  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2  bytes 220 (220.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0