iosxrv-x64-vbox icon indicating copy to clipboard operation
iosxrv-x64-vbox copied to clipboard

xrv box cannot add more than 3 Gi interface

Open ender-myk opened this issue 6 years ago • 1 comments

Hi dear team, I tried to bring up a xrv 6.1.2 box with 4 or 5 virtual interfaces, I know that mgmt0 mapping to vNIC 0, and 4 other virtual adapters can be seen when vagrant up. however after boot done I enter the router, can only see 3 Gi interfaces there (Gi0/0/0/0 - Gi0/0/0/2), cannot see the gi0/0/0/3.

Do you guys have any suggestions?

Vagrant file for VM network: node.vm.network :public_network, bridge: "enp7s0", auto_config: false node.vm.network :private_network, virtualbox__intnet: "link1", auto_config: false node.vm.network :private_network, virtualbox__intnet: "link2", auto_config: false node.vm.network :private_network, virtualbox__intnet: "link3", auto_config: false

Vagrant bootup message (can see 1 bridged and 3 intnet) : ==> rtr1: Importing base box 'IOS-XRv'... ==> rtr1: Matching MAC address for NAT networking... ==> rtr1: Setting the name of the VM: lab3_rtr1_1545210809773_17656 ==> rtr1: Clearing any previously set network interfaces... ==> rtr1: Preparing network interfaces based on configuration... rtr1: Adapter 1: nat rtr1: Adapter 2: bridged rtr1: Adapter 3: intnet rtr1: Adapter 4: intnet rtr1: Adapter 5: intnet

What I saw on the router (missing gi0/0/0/3) : RP/0/RP0/CPU0:rtr1#show int desc Wed Dec 19 09:32:42.297 UTC

Interface Status Protocol Description

Lo0 up up
Nu0 up up
Gi0/0/0/0 up up
Gi0/0/0/1 up up
Gi0/0/0/2 up up
Mg0/RP0/CPU0/0 up up

ender-myk avatar Dec 19 '18 09:12 ender-myk

checked this seems to relate the 4 NIC built in the python script, but for now I see the script has changed to 8 NIC already:

# Setup networking - including ssh logger.debug('Create eight NICs') for i in range(1, 9): run(['VBoxManage', 'modifyvm', vmname, '--nic' + str(i), 'nat', '--nictype' + str(i), 'virtio'])

Tested it works fine for CSR1000V(seems only 1 NIC needed in ), and also works for 6.2.1 IOS-XRv.

The problem only occurs for 6.1.1 and 6.1.2, and it can only add 4 physical interfaces.

ender-myk avatar Dec 20 '18 10:12 ender-myk