Posted on January 22, 2020 11:36 pm
 |  Asked by Ashwin C S
 |  268 views
RESOLVED
0
0
Print Friendly, PDF & Email

Hello,

I’m setting up a virtual lab with containerized EOS (CEOS, cEOS-lab-4.21.6F.tar.tar) Arista switches. I’m able to add interfaces to the containers using the below command:

docker network create l1-s1 (Leaf-1 to Spine-1)
docker network connect l1-s1 leaf-1
docker network connect l1-s1 spine-1

1. The above command creates a Linux bridge(l1-s1) and attaches interfaces from the leaf and spine switch to it.

2. I want to do the same using Veth pairs. It’s not working.

ip link add eth0-r type veth peer name verth-r(Attach eth0-r to leaf-1 and veth0-r spine-1)

3. From the Arista Warrior book, I understand Veth pairs are possible to integrate with CEOS:

“To get around this limitation, you can build something called veth pairs, but that is beyond what I intended to cover here”

4. When I add a veth pair interface to a running Arista switch container. I’m able to see the interface listed under “bash ip link” but not under “show interfaces” in the CLI.

5. I added the veth pair to the container using the following sequence of commands:

ece577@ece577:~/RND-TOOL/RND-TOOL/rnd_lab$ sudo docker inspect -f ‘{{.State.Pid}}’ leaf-1
10704
ece577@ece577:~/RND-TOOL/RND-TOOL/rnd_lab$ sudo docker inspect -f ‘{{.State.Pid}}’ spine-1
10827
ece577@ece577:~/RND-TOOL/RND-TOOL/rnd_lab$ sudo ip link set netns 10704 dev eth0-r >> Attaches eth0-r to leaf-1
ece577@ece577:~/RND-TOOL/RND-TOOL/rnd_lab$ sudo ip link set netns 10827 dev veth0-r >> Attaches veth0-r to spine-1

Question:

1. How to add Veth pairs to Arista switch containers? Has anyone tried this before?

Regards,
Ashwin

0
Posted by Himanshu Singh
Answered on January 23, 2020 5:11 am

Hey Ashwin,

Can you try restarting the Fru agent from CLI:
#agent Fru terminate

The interface should be visible in CLI in "show interfaces" post agent restart.

If it is still not visible in CLI can you share the following output from the cEOS container:
bash ifconfig -a

Regards,
Himanshu

0
Posted by Ashwin C S
Answered on January 23, 2020 6:12 pm

Hello Himanshu,

Thank you for looking into this.

1. I tried restarting the Fru agent and it didn't work.

root@eb2-2027:/home/eb2-2027# ip link add l1-s1 type veth peer name s1-l1
root@eb2-2027:/home/eb2-2027# sudo docker inspect -f ‘{{.State.Pid}}’ leaf-1
‘40996’
root@eb2-2027:/home/eb2-2027# sudo docker inspect -f ‘{{.State.Pid}}’ spine-1
‘47085’
root@eb2-2027:/home/eb2-2027# ip link set netns 40996 l1-s1
root@eb2-2027:/home/eb2-2027# ip link set netns 47085 s1-l1
root@eb2-2027:/home/eb2-2027# ssh admin@172.17.0.4
Last login: Wed Jan 22 23:36:04 2020 from 172.17.0.1
leaf-1>en
leaf-1#conf t
leaf-1(config)#bash
Arista Networks EOS shell
[admin@leaf-1 ~]$ ip link set l1-s1 up
RTNETLINK answers: Operation not permitted
[admin@leaf-1 ~]$ sudo ip link set l1-s1 up
[admin@leaf-1 ~]$ logout
leaf-1(config)#
leaf-1(config)#
leaf-1(config)#show interfaces status
Port Name Status Vlan Duplex Speed Type Flags Encapsulation
Et1 connected 50 full unconf EbraTestPhyPort
Et2 connected routed full unconf EbraTestPhyPort
Et3 connected routed full unconf EbraTestPhyPort

leaf-1(config)#agent fru terminate
Fru was terminated
leaf-1(config)#
leaf-1(config)#
leaf-1(config)#
leaf-1(config)#wait-for-warmup
leaf-1(config)#show interfaces status
Port Name Status Vlan Duplex Speed Type Flags Encapsulation
Et1 connected 50 full unconf EbraTestPhyPort
Et2 connected routed full unconf EbraTestPhyPort
Et3 connected routed full unconf EbraTestPhyPort

2. I tried the same steps on the spine switch container as well:

[admin@spine-1 ~]$ sudo ip link set s1-l1 up
[admin@spine-1 ~]$ logout

spine-1(config)#show interfaces status
Port Name Status Vlan Duplex Speed Type Flags Encapsulation
Et1 connected routed full unconf EbraTestPhyPort
Et2 connected routed full unconf EbraTestPhyPort
spine-1(config)#agent fru terminate
Fru was terminated
spine-1(config)#show interfaces status
Port Name Status Vlan Duplex Speed Type Flags Encapsulation
Et1 connected routed full unconf EbraTestPhyPort
Et2 connected routed full unconf EbraTestPhyPort

3. Here are the outputs of ifconfig -a from the leaf and the spine containers:

leaf-1(config)#bash ifconfig -a
cpu: flags=4163 mtu 1500
ether 3e:53:6e:43:68:ca txqueuelen 1000 (Ethernet)
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

eth0: flags=4163 mtu 1500
inet 172.17.0.4 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:ac:11:00:04 txqueuelen 0 (Ethernet)
RX packets 5836 bytes 538020 (525.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3714 bytes 571536 (558.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth1: flags=4163 mtu 9214
ether 02:42:ac:19:00:03 txqueuelen 0 (Ethernet)
RX packets 960 bytes 85968 (83.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 172140 bytes 20204622 (19.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth2: flags=4163 mtu 1500
inet 10.10.10.10 netmask 255.255.255.0 broadcast 255.255.255.255
ether 02:42:ac:14:00:02 txqueuelen 0 (Ethernet)
RX packets 24699 bytes 2164712 (2.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 24581 bytes 2142601 (2.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth3: flags=4163 mtu 1500
inet 10.20.10.10 netmask 255.255.255.0 broadcast 255.255.255.255
ether 02:42:ac:15:00:02 txqueuelen 0 (Ethernet)
RX packets 24167 bytes 2093601 (1.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 24002 bytes 2074823 (1.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

fabric: flags=4163 mtu 10000
ether 02:42:ac:5b:56:60 txqueuelen 1000 (Ethernet)
RX packets 1027 bytes 91950 (89.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 719 bytes 70746 (69.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

fwd0: flags=4291 mtu 1488
inet6 fe80::e0cb:30ff:fe99:7a9e prefixlen 64 scopeid 0x20 ether e2:cb:30:99:7a:9e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 97 bytes 6790 (6.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

l1-s1: flags=4163 mtu 1500
ether 5a:39:3c:96:44:21 txqueuelen 1000 (Ethernet)
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

lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.255.255.0
loop txqueuelen 1000 (Local Loopback)
RX packets 979 bytes 57800 (56.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 979 bytes 57800 (56.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo1: flags=4163 mtu 65535
inet 1.1.1.1 netmask 255.255.255.255 broadcast 255.255.255.255
ether 02:00:00:00:00:00 txqueuelen 1000 (Ethernet)
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

txraw: flags=4163 mtu 10000
ether 02:42:ac:5b:56:60 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6 bytes 300 (300.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vlan50: flags=4163 mtu 1500
inet 50.50.50.1 netmask 255.255.255.0 broadcast 255.255.255.255
ether 02:42:ac:5b:56:60 txqueuelen 1000 (Ethernet)
RX packets 1027 bytes 73464 (71.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 712 bytes 67576 (65.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vx1: flags=4163 mtu 1500
ether 02:42:ac:5b:56:60 txqueuelen 1000 (Ethernet)
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

vxlan: flags=4163 mtu 1500
ether 02:42:ac:5b:56:60 txqueuelen 1000 (Ethernet)
RX packets 389 bytes 36038 (35.1 KiB)
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

spine-1(config)#bash ifconfig -a
cpu: flags=4163 mtu 1500
ether 06:f1:9c:d8:0e:d4 txqueuelen 1000 (Ethernet)
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

eth0: flags=4163 mtu 1500
inet 172.17.0.6 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:ac:11:00:06 txqueuelen 0 (Ethernet)
RX packets 2211 bytes 199582 (194.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1256 bytes 187032 (182.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth1: flags=4163 mtu 1500
inet 10.10.10.20 netmask 255.255.255.0 broadcast 255.255.255.255
ether 02:42:ac:14:00:03 txqueuelen 0 (Ethernet)
RX packets 26384 bytes 2318409 (2.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25460 bytes 2234579 (2.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth2: flags=4163 mtu 1500
inet 20.10.10.20 netmask 255.255.255.0 broadcast 255.255.255.255
ether 02:42:ac:16:00:03 txqueuelen 0 (Ethernet)
RX packets 25650 bytes 2234511 (2.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 26148 bytes 2317690 (2.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

fabric: flags=4163 mtu 10000
ether 02:42:ac:c7:db:5f txqueuelen 1000 (Ethernet)
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

fwd0: flags=4291 mtu 1488
inet6 fe80::7c80:eeff:fed4:4bc0 prefixlen 64 scopeid 0x20 ether 7e:80:ee:d4:4b:c0 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 101 bytes 7070 (6.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.255.255.0
loop txqueuelen 1000 (Local Loopback)
RX packets 1356 bytes 110048 (107.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1356 bytes 110048 (107.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

s1-l1: flags=4163 mtu 1500
ether fa:9a:56:b4:86:d6 txqueuelen 1000 (Ethernet)
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

Regards,
Ashwin

0
Posted by Ashwin C S
Answered on January 23, 2020 11:35 pm

Hello Himanshu,

Thank you for looking into this.

1. I tried restarting the Fru agent and it didn't work.

root@eb2-2027:/home/eb2-2027# ip link add l1-s1 type veth peer name s1-l1
root@eb2-2027:/home/eb2-2027# sudo docker inspect -f ‘{{.State.Pid}}’ leaf-1
‘40996’
root@eb2-2027:/home/eb2-2027# sudo docker inspect -f ‘{{.State.Pid}}’ spine-1
‘47085’
root@eb2-2027:/home/eb2-2027# ip link set netns 40996 l1-s1
root@eb2-2027:/home/eb2-2027# ip link set netns 47085 s1-l1
root@eb2-2027:/home/eb2-2027# ssh admin@172.17.0.4
Last login: Wed Jan 22 23:36:04 2020 from 172.17.0.1
leaf-1>en
leaf-1#conf t
leaf-1(config)#bash
Arista Networks EOS shell
[admin@leaf-1 ~]$ ip link set l1-s1 up
RTNETLINK answers: Operation not permitted
[admin@leaf-1 ~]$ sudo ip link set l1-s1 up
[admin@leaf-1 ~]$ logout
leaf-1(config)#
leaf-1(config)#
leaf-1(config)#show interfaces status
Port Name Status Vlan Duplex Speed Type Flags Encapsulation
Et1 connected 50 full unconf EbraTestPhyPort
Et2 connected routed full unconf EbraTestPhyPort
Et3 connected routed full unconf EbraTestPhyPort

leaf-1(config)#agent fru terminate
Fru was terminated
leaf-1(config)#
leaf-1(config)#
leaf-1(config)#
leaf-1(config)#wait-for-warmup
leaf-1(config)#show interfaces status
Port Name Status Vlan Duplex Speed Type Flags Encapsulation
Et1 connected 50 full unconf EbraTestPhyPort
Et2 connected routed full unconf EbraTestPhyPort
Et3 connected routed full unconf EbraTestPhyPort

2. I tried the same steps on the spine switch container as well:

[admin@spine-1 ~]$ sudo ip link set s1-l1 up
[admin@spine-1 ~]$ logout

spine-1(config)#show interfaces status
Port Name Status Vlan Duplex Speed Type Flags Encapsulation
Et1 connected routed full unconf EbraTestPhyPort
Et2 connected routed full unconf EbraTestPhyPort
spine-1(config)#agent fru terminate
Fru was terminated
spine-1(config)#show interfaces status
Port Name Status Vlan Duplex Speed Type Flags Encapsulation
Et1 connected routed full unconf EbraTestPhyPort
Et2 connected routed full unconf EbraTestPhyPort

3. Here are the outputs of ifconfig -a from the leaf and the spine containers:

leaf-1(config)#bash ifconfig -a
cpu: flags=4163 mtu 1500
ether 3e:53:6e:43:68:ca txqueuelen 1000 (Ethernet)
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

eth0: flags=4163 mtu 1500
inet 172.17.0.4 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:ac:11:00:04 txqueuelen 0 (Ethernet)
RX packets 5836 bytes 538020 (525.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3714 bytes 571536 (558.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth1: flags=4163 mtu 9214
ether 02:42:ac:19:00:03 txqueuelen 0 (Ethernet)
RX packets 960 bytes 85968 (83.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 172140 bytes 20204622 (19.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth2: flags=4163 mtu 1500
inet 10.10.10.10 netmask 255.255.255.0 broadcast 255.255.255.255
ether 02:42:ac:14:00:02 txqueuelen 0 (Ethernet)
RX packets 24699 bytes 2164712 (2.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 24581 bytes 2142601 (2.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth3: flags=4163 mtu 1500
inet 10.20.10.10 netmask 255.255.255.0 broadcast 255.255.255.255
ether 02:42:ac:15:00:02 txqueuelen 0 (Ethernet)
RX packets 24167 bytes 2093601 (1.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 24002 bytes 2074823 (1.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

fabric: flags=4163 mtu 10000
ether 02:42:ac:5b:56:60 txqueuelen 1000 (Ethernet)
RX packets 1027 bytes 91950 (89.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 719 bytes 70746 (69.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

fwd0: flags=4291 mtu 1488
inet6 fe80::e0cb:30ff:fe99:7a9e prefixlen 64 scopeid 0x20 ether e2:cb:30:99:7a:9e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 97 bytes 6790 (6.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

l1-s1: flags=4163 mtu 1500
ether 5a:39:3c:96:44:21 txqueuelen 1000 (Ethernet)
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

lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.255.255.0
loop txqueuelen 1000 (Local Loopback)
RX packets 979 bytes 57800 (56.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 979 bytes 57800 (56.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo1: flags=4163 mtu 65535
inet 1.1.1.1 netmask 255.255.255.255 broadcast 255.255.255.255
ether 02:00:00:00:00:00 txqueuelen 1000 (Ethernet)
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

txraw: flags=4163 mtu 10000
ether 02:42:ac:5b:56:60 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6 bytes 300 (300.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vlan50: flags=4163 mtu 1500
inet 50.50.50.1 netmask 255.255.255.0 broadcast 255.255.255.255
ether 02:42:ac:5b:56:60 txqueuelen 1000 (Ethernet)
RX packets 1027 bytes 73464 (71.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 712 bytes 67576 (65.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vx1: flags=4163 mtu 1500
ether 02:42:ac:5b:56:60 txqueuelen 1000 (Ethernet)
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

vxlan: flags=4163 mtu 1500
ether 02:42:ac:5b:56:60 txqueuelen 1000 (Ethernet)
RX packets 389 bytes 36038 (35.1 KiB)
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

spine-1(config)#bash ifconfig -a
cpu: flags=4163 mtu 1500
ether 06:f1:9c:d8:0e:d4 txqueuelen 1000 (Ethernet)
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

eth0: flags=4163 mtu 1500
inet 172.17.0.6 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:ac:11:00:06 txqueuelen 0 (Ethernet)
RX packets 2211 bytes 199582 (194.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1256 bytes 187032 (182.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth1: flags=4163 mtu 1500
inet 10.10.10.20 netmask 255.255.255.0 broadcast 255.255.255.255
ether 02:42:ac:14:00:03 txqueuelen 0 (Ethernet)
RX packets 26384 bytes 2318409 (2.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25460 bytes 2234579 (2.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth2: flags=4163 mtu 1500
inet 20.10.10.20 netmask 255.255.255.0 broadcast 255.255.255.255
ether 02:42:ac:16:00:03 txqueuelen 0 (Ethernet)
RX packets 25650 bytes 2234511 (2.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 26148 bytes 2317690 (2.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

fabric: flags=4163 mtu 10000
ether 02:42:ac:c7:db:5f txqueuelen 1000 (Ethernet)
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

fwd0: flags=4291 mtu 1488
inet6 fe80::7c80:eeff:fed4:4bc0 prefixlen 64 scopeid 0x20 ether 7e:80:ee:d4:4b:c0 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 101 bytes 7070 (6.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.255.255.0
loop txqueuelen 1000 (Local Loopback)
RX packets 1356 bytes 110048 (107.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1356 bytes 110048 (107.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

s1-l1: flags=4163 mtu 1500
ether fa:9a:56:b4:86:d6 txqueuelen 1000 (Ethernet)
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

Regards,
Ashwin

0
Posted by Himanshu Singh
Answered on January 27, 2020 2:20 pm

Hey Ashwin,

Can you let me know your base OS and docker version?

Also, can you try the below steps:

1. Pause the running cEOS container:
docker pause ceos69

2. create a virtual interface and link it with the cEOS container
$ pid69="$(sudo docker inspect -f '{{.State.Pid}}' ceos69)"
$ ln -sf /proc/$pid69/ns/net /var/run/netns/ceos69

3. ip link add veth404 type veth peer name veth404b

4. ip link set dev veth404b up

5. ip link set veth404 netns ceos69

6. ip netns exec ceos69 ip link set veth404 name eth4

7. ip netns exec ceos69 ip link set dev eth4 up

8. docker unpause ceos69

9. docker attach ceos69

Check the interface appears under bash

[admin@localhost ~]$ ifconfig eth4
eth4: flags=4163 mtu 1500
ether 5a:ae:6b:fd:8a:19 txqueuelen 1000 (Ethernet)
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

check interface does not appear in CLI

localhost#show interfaces status
Port Name Status Vlan Duplex Speed Type Flags
Et1 connected 1 full unconf EbraTestPhyPort
Et2 unknown 1 unconf unconf Unknown

Restart the Fru agent:

localhost#agent Fru terminate
Fru was terminated

Wait for 1 min and check interfaces:
localhost#show interfaces status
Port Name Status Vlan Duplex Speed Type Flags
Et1 connected 1 full unconf EbraTestPhyPort
Et2 unknown 1 unconf unconf Unknown
Et4 unknown 1 unconf unconf Unknown

Regards,
Himanshu

0
Posted by Ashwin C S
Answered on January 27, 2020 11:41 pm

Hello Himanshu,

Thank you for reverting.

I had the issue previously because I didn't name the interfaces correctly(It should have been named as eth). Thanks for pointing that out. The interface appears in the CLI after restarting the FRU agent.

1. The issue is not completely resolved as the interface is down and in the unknown state in the CLI (Et4 is the interface).

leaf-1(config)#show interfaces status
Port Name Status Vlan Duplex Speed Type Flags Encapsulation
Et1 connected 50 full unconf EbraTestPhyPort
Et2 connected routed full unconf EbraTestPhyPort
Et3 connected routed full unconf EbraTestPhyPort
Et4 unknown routed unconf unconf Unknown

leaf-1(config)#show interfaces ethernet 4
Ethernet4 is down, line protocol is unknown (notconnect)
Hardware is Ethernet, address is 0000.0000.0000 (bia 76d6.10d6.6fa1)
IP MTU 9214 bytes
Unconfigured, Unconfigured, auto negotiation: off, uni-link: n/a
Loopback Mode : None
0 link status changes since last clear
Last clearing of "show interface" counters never
5 minutes input rate 0 bps (- with framing overhead), 0 packets/sec
5 minutes output rate 0 bps (- with framing overhead), 0 packets/sec

2. However, the interface is up as per bash. I'm able to configure and ping the IP address under bash but not in the CLI:

eth4: flags=4163 mtu 1500
inet 11.1.1.1 netmask 255.255.255.0 broadcast 0.0.0.0
ether 76:d6:10:d6:6f:a1 txqueuelen 1000 (Ethernet)
RX packets 15 bytes 1146 (1.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
leaf-1(config)#bash sudo ping 11.1.1.1
PING 11.1.1.1 (11.1.1.1) 56(84) bytes of data.
64 bytes from 11.1.1.1: icmp_seq=1 ttl=64 time=0.052 ms
^C
--- 11.1.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.052/0.052/0.052/0.000 ms

3. CLI

leaf-1(config)#bash sudo ip addr del 11.1.1.1/24 dev eth4
leaf-1(config)#int et 4
leaf-1(config-if-Et4)#no sw
leaf-1(config-if-Et4)#no shut
leaf-1(config-if-Et4)#ip address 11.1.1.1/24
leaf-1(config-if-Et4)#ex
leaf-1(config)#ping 11.1.1.1
PING 11.1.1.1 (11.1.1.1) 72(100) bytes of data.

--- 11.1.1.1 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 40ms

leaf-1(config)#
leaf-1#conf t
leaf-1(config)#show ip route 11.1.1.1

VRF: default
Codes: C - connected, S - static, K - kernel,
O - OSPF, IA - OSPF inter area, E1 - OSPF external type 1,
E2 - OSPF external type 2, N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type2, B I - iBGP, B E - eBGP,
R - RIP, I L1 - IS-IS level 1, I L2 - IS-IS level 2,
O3 - OSPFv3, A B - BGP Aggregate, A O - OSPF Summary,
NG - Nexthop Group Static Route, V - VXLAN Control Service,
DH - DHCP client installed default route, M - Martian,
DP - Dynamic Policy Route, L - VRF Leaked

Gateway of last resort is not set

I'm not sure if any other agent has to be restarted (I tried restarting Ebra and it did not help). Please let me know if you need anything from my side.

Regards,
Ashwin

0
Posted by Ashwin C S
Answered on January 27, 2020 11:44 pm

Docker and OS versions:

root@eb2-2027:/home/eb2-2027# cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

root@eb2-2027:/home/eb2-2027# docker --version
Docker version 18.09.7, build 2d0083d

1
Posted by Himanshu Singh
Answered on January 28, 2020 8:32 am

Hey Ashwin,

Thank you for the updates and for providing the requested information.

I tested out in my lab and it seems you need to restart the Ebra and the Etba agent also for the interface to be up and connected in CLI.

1. Once you have added the veth interface in the cEOS namespace, check if it's visible under bash:
eth4@if72: mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 86:e0:f5:33:80:f5 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 192.168.14.10/24 brd 255.255.255.255 scope global eth4
valid_lft forever preferred_lft forever

2. Restart the Fru agent (agent Fru terminate)

3. Check the interface is visible in CLI(will still show as "unknown"):
ceos96(config)#show int st
Port Name Status Vlan Duplex Speed Type Flags Encapsulation
Et1 connected routed full unconf EbraTestPhyPort
Et2 connected 1 full unconf EbraTestPhyPort
Et4 unknown 1 unconf unconf Unknown

4. Now restart the Ebra agent followed with the Etba agent.
agent Ebra terminate

agent Etba terminate

5. Verify the interface is up and connected:
ceos96(config)#show int st
Port Name Status Vlan Duplex Speed Type Flags Encapsulation
Et1 connected routed full unconf EbraTestPhyPort
Et2 connected 1 full unconf EbraTestPhyPort
Et4 connected 1 full unconf EbraTestPhyPort

Let me know if that helps.

Regards,
Himanshu

0
Posted by Ashwin C S
Answered on January 28, 2020 7:32 pm

Hello Himanshu,

Thank you for your promptness and help. I really appreciate it. The issue has been resolved.

Thanks again.

Regards,
Ashwin

Post your Answer

You must be logged in to post an answer.