mgmt interface with c8000v #1303
-
Hi, having hard time getting the connectivity from cisco 8000v to external world. Understand that the mgmt interface i.e first interface , gets qemu dhcp 10.x.x.x and it gets discovered by external routers etc. But i am unable to get the external reachability from the 8000v router itself, tried using the mgmt,addressing schemes in topology/static routes but not helping. How do get it to ping say 8.8.8.8 from the router ? appreciate any help :) |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 25 replies
-
The management interface (the first Ethernet interface) of Cisco 8000v (and most other devices) is in the management VRF. It should get the IP address from the libvirt DHCP server and it should be in the 192.168.121.0/24 range. To reach the outside world through the management VRF, you have to use the VRF version of the commands (ping vrf or similar) You can also connect one of the data-plane interfaces to the outside world. See https://netlab.tools/labs/libvirt/#connecting-to-the-outside-world for details (assuming you're using libvirt because you mentioned Qemu) |
Beta Was this translation helpful? Give feedback.
-
When using containerlab, with the vrnetlab containers, a sort of 1:1 NAT is performed in userspace by qemu. You will find an interface with 10.0.0.something, and the default gateway for this is 10.0.0.2 |
Beta Was this translation helpful? Give feedback.
-
Ah, vrnetlab. I never understood why someone would use that when there's a perfectly fine way to build virtual machine Vagrant boxes without containers. The convoluted networking they had to do to get things working led me to write this in https://netlab.tools/labs/clab/#using-vrnetlab-containers
Anyway, vrnetlab got much better after @hellt forked it. At the very minimum, you should use the latest vrnetlab code from https://github.com/hellt/vrnetlab/ to build the container. For example, https://github.com/hellt/vrnetlab/tree/master/c8000v/docker puts the management interface into a VRF and configures the default route for the management VRF. |
Beta Was this translation helpful? Give feedback.
-
Anyway, it looks like I didn't stress enough the importance of using the (latest version of) @hellt fork of vrnetlab to build the container images, so I (hopefully) fixed the documentation: 20991a5 |
Beta Was this translation helpful? Give feedback.
-
Here's another idea to build that Vagrant box:
|
Beta Was this translation helpful? Give feedback.
When using containerlab, with the vrnetlab containers, a sort of 1:1 NAT is performed in userspace by qemu.
You will find an interface with 10.0.0.something, and the default gateway for this is 10.0.0.2