GNS3 with VirtualBox setup problem


Userlevel 1
Hello,

I have setup GNS3 and Virtual Box environment. And imported CulumusVX into GNS3.

which base on URL
https://docs.cumulusnetworks.com/display/VX/Using+GNS3+with+VirtualBox+VMs

Q. However, I have problem to setup even a simple environment

VPCS <---> CumulusVX <---> VPCS

environment which just create a bridge to allow 2 VPCS to communicate.

with following config.
-------------------------
auto swp2
iface swp2

auto swp3
iface swp3

auto bridge
iface bridge
bridge-ports swp1 swp2 swp3
-------------------------
It was fail to communicate between two VPCS

When checking the virutalbox Cumulux setup. It have further setting about network adapter. Is it something I need further tune here?





Thanks!

4 replies

Userlevel 5
Couple of questions:

1. Have you defined swp1 in your configuration?
2. Is there a reason you are bridging all three ports?
3. Have you read this post? https://community.cumulusnetworks.com/cumulus/topics/setting-up-a-vx-lab-environment-in-gns3-1-4

You can also check out this guide for the virtual box configuration: https://docs.cumulusnetworks.com/display/VX/Using+Cumulus+VX+with+VirtualBox

Userlevel 1
Hello,

Thanks for your material.

1. For easily debug. I have modified the config. Assign IP to the bridge and swp1 just a like others swpx
--------------------
auto swp1
iface swp1

auto swp2
iface swp2

auto swp3
iface swp3

auto swp4
iface swp4

auto bridge
iface bridge inet static
bridge-ports swp1 swp2 swp3 swp4
address 192.168.100.101/24
---------------------

2. I just working on the creating a testing environment under GNS3, as it can simulate others brand equipment. That is give me a idea before purchase Physical Switch with Cumulus.

However, it was fail to create environment yesterday, so just create a simplest first.

3. Thanks for information. I have adjusted something under VirtualBox VM network setting

- Change the network setting from Generic Driver -> Internal Network. Not sure because under GNS3 it enable "Allow GNS3 to use any confgured virtualbox adapter"
- Reboot my PC

Now it looks work fine today every VPCS can PING to each others and the Cumulus can record the correct MAC in each swp port

$ sudo bridge fdb show
08:00:27:c5:2d:40 dev swp1 master bridge permanent
00:50:79:66:68:03 dev swp1 master bridge
00:50:79:66:68:00 dev swp2 master bridge
08:00:27:13:01:a4 dev swp2 master bridge permanent
08:00:27:5c:43:32 dev swp3 master bridge permanent
00:50:79:66:68:01 dev swp3 master bridge
08:00:27:43:2a:1c dev swp4 master bridge permanent

I will continue to setup my testing environment. Next will simulate

VPCS <---> Cumulus <----> Cisco Switch <---> VPCS

Will post here again if problem comes again.

Userlevel 1
Hello,

There are something strange again.

When I adjust the Cumulus with untagged VLAN like following config.

-------------------------------
auto swp1
iface swp1
bridge-access 400

auto swp2
iface swp2
bridge-access 400

auto swp3
iface swp3
bridge-access 400

auto swp4
iface swp4
bridge-access 400

auto bridge
iface bridge inet static
bridge-ports swp1 swp2 swp3 swp4
address 192.168.100.101/24
bridge-vlan-aware yes
bridge-allow-untagged yes
bridge-vids 1 400
bridge-pvid 1
bridge-stp on

----------------------------

All VPCS cannot PING to each other even Cumulus IP.

I can see Cumulus can record each port MAC address

-----
$ sudo bridge fdb show
08:00:27:c5:2d:40 dev swp1 master bridge permanent
00:50:79:66:68:03 dev swp1 vlan 400 master bridge
00:50:79:66:68:00 dev swp2 vlan 400 master bridge
08:00:27:13:01:a4 dev swp2 master bridge permanent
08:00:27:5c:43:32 dev swp3 master bridge permanent
00:50:79:66:68:01 dev swp3 vlan 400 master bridge
08:00:27:43:2a:1c dev swp4 master bridge permanent
------

But it got stuck during PING and following is output of TCPDUMP.

------
cumulus@cumulus:/etc/network$ sudo tcpdump -i bridge
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on bridge, link-type EN10MB (Ethernet), capture size 262144 bytes
06:17:29.366538 ARP, Request who-has 192.168.100.101 (Broadcast) tell 192.168.100.3, length 50
06:17:30.374269 ARP, Request who-has 192.168.100.101 (Broadcast) tell 192.168.100.3, length 50
06:17:31.380475 ARP, Request who-has 192.168.100.101 (Broadcast) tell 192.168.100.3, length 50
-------

but
$ sudo arp -a
is nothing show

After that I tried to remove all port-access part to simplest config. Reboot all Cumulus and VPCS and now every node cannot PING to each other.

Any idea for this?

Thanks!
Userlevel 1
Hello,

Finally I got the solution is restart whole GNS3 and VirtualBox and now it work fine.

Thanks!

Reply