On 7/20/18 1:03 PM, D'Souza, Nelson wrote: > Setup is as follows: > > ethUSB(ingress port) -> mgmtbr0 (bridge) -> mgmtvrf (vrf)
| netns foo [ test-vrf ] | | | [ br0 ] 172.16.1.1 | | | [ veth1 ] ============|======= [ veth2 ] lo | 172.16.1.2 172.16.2.2 | Copy and paste the following into your environment: ip netns add foo ip li add veth1 type veth peer name veth2 ip li set veth2 netns foo ip -netns foo li set lo up ip -netns foo li set veth2 up ip -netns foo addr add 172.16.1.2/24 dev veth2 ip li add test-vrf type vrf table 123 ip li set test-vrf up ip ro add vrf test-vrf unreachable default ip li add br0 type bridge ip li set veth1 master br0 ip li set veth1 up ip li set br0 up ip addr add dev br0 172.16.1.1/24 ip li set br0 master test-vrf ip -netns foo addr add 172.16.2.2/32 dev lo ip ro add vrf test-vrf 172.16.2.2/32 via 172.16.1.2 Does ping work? # ping -I test-vrf 172.16.2.2 ping: Warning: source address might be selected on device other than test-vrf. PING 172.16.2.2 (172.16.2.2) from 172.16.1.1 test-vrf: 56(84) bytes of data. 64 bytes from 172.16.2.2: icmp_seq=1 ttl=64 time=0.228 ms 64 bytes from 172.16.2.2: icmp_seq=2 ttl=64 time=0.263 ms and: # ping -I br0 172.16.2.2 PING 172.16.2.2 (172.16.2.2) from 172.16.1.1 br0: 56(84) bytes of data. 64 bytes from 172.16.2.2: icmp_seq=1 ttl=64 time=0.227 ms 64 bytes from 172.16.2.2: icmp_seq=2 ttl=64 time=0.223 ms ^C --- 172.16.2.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.223/0.225/0.227/0.002 ms