In-Band Management Operational Commands
The In-band Management show commands provide detailed information about the In-band Management operations.
Verifying In-band Management on LXC Container
In the LXC container, there will be a new interface named inband-mgmt-0
on enabling in-band management. All the loopback address as well as route in in-band instance should be assigned to this interface.
The example below shows how to verify if inband-mgmt-0 interface is created. Using the below command check if inband-mgmt-0 interface is created.
supervisor@rtbrick:~$ ip link show <...> 5: inband-mgmt-0: <POINTOPOINT,UP,LOWER_UP> mtu 1492 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 500 link/none
Now verify that all the loopback addresses in the in-band management instance are added to Linux:
3: inband-mgmt-0: <POINTOPOINT,UP,LOWER_UP> mtu 1492 qdisc pfifo_fast state UNKNOWN group default qlen 500 link/none inet 192.0.2.1/32 scope global inband-mgmt-0 valid_lft forever preferred_lft forever inet 198.51.100.1/32 scope global inband-mgmt-0 valid_lft forever preferred_lft forever inet6 fe80::d5c5:38ad:93c:308b/64 scope link stable-privacy valid_lft forever preferred_lft forever <...>
Verify all the routes in the same instance are also downloaded:
supervisor@rtbrick:~$ ip route show <...> 192.0.2.0/24 dev inband-mgmt-0 proto rtb_fibd scope link 192.0.2.1 dev inband-mgmt-0 proto rtb_fibd scope link 198.51.100.0/24 dev inband-mgmt-0 proto rtb_fibd scope link 198.51.100.1 dev inband-mgmt-0 proto rtb_fibd scope link
Verifying In-band Management on ONL
The example below shows how to verify Linux routing tables on an ONL host and an LXC container. The same routes downloaded into the LXC container should also be present in ONL.
root@bl2-pod1:~# ip route show <...> 192.0.2.0/24 via 10.0.3.10 dev lxcbr0 proto rtb_routesync scope rtb_umc metric 128 192.0.2.1 via 10.0.3.10 dev lxcbr0 proto rtb_routesync scope rtb_umc metric 128 198.51.100.0/24 via 10.0.3.10 dev lxcbr0 proto rtb_routesync scope rtb_umc metric 128 198.51.100.1 via 10.0.3.10 dev lxcbr0 proto rtb_routesync scope rtb_umc metric 128