Voice Lab – Branch1 and Branch2 Virtual Machine
Posted by Josh on Mon 19 Jan 2009Categories: CCIE , Cisco , Cisco VOIP , GNS3 , Linux , Voice LAB - [27] Comments
In this tutorial, you will add a virtual machine for Ethernet connectivity to branch1 and branch2 of your virtual voice lab. Although I use a separate vm in this tutorial, you can also simply add two more interfaces to the headquarters virtual PC if you are running short on PC resources.
VMWare, the Linux Host and VMWare workstation Configurations
- Make sure all your virtual machines are shutdown.
- Run ‘sudo vmware-config.pl’ from a terminal window
- Take defaults until you are asked to skip networking. Do not skip.
- Use the wizard to configure networking.
- Do not make changes to bridge or NAT configs.
- Configure another host-only network for Branch2
- Allow the script to probe for an unused subnet on vmnet2.
- Take defaults through the rest of the config.
- Save the configuration
- Configure bridging on the Linux host for communications between GNS3 and vmware.
- Bridge for Branch 1
- Run ‘sudo tunctl -t tap1′ to create a tap interface for Branch1
- Run ‘sudo ifconfig tap1 0.0.0.0 promisc up’ to set tap1 to promiscuous mode.
- Run ‘sudo ifconfig vmnet1 0.0.0.0 promisc up’ to set vmnet1 to promiscuous mode
- Run ‘sudo brctl addbr br1′ to create a bridge for Branch1
- Run ‘sudo brctl addif br1 vmnet1′ to add vmnet1 to the Branch1 bridge
- Run ‘sudo brctl addif br1 tap1′ to add tap1 to the Branch1 bridge
- Run ‘sudo ifconfig br1 10.10.11.99/24 up’ configure host IP address for Branch1
- Bridge for Branch 2
- Run ‘sudo tunctl -t tap2′ to create a tap interface for Branch2
- Run ‘sudo ifconfig tap2 0.0.0.0 promisc up’ to set tap2 to promiscuous mode.
- Run ‘sudo ifconfig vmnet2 0.0.0.0 promisc up’ to set vmnet2 to promiscuous mode
- Run ‘sudo brctl addbr br2′ to create a bridge for Branch2
- Run ‘sudo brctl addif br2 vmnet2′ to add vmnet2 to the Branch2 bridge
- Run ‘sudo brctl addif br2 tap2′ to add tap2 to the Branch2 bridge
- Run ‘sudo ifconfig br1 10.10.11.99/24 up’ configure host IP address for Branch2
- Make changes permanent with changes to the /etc/network/interfaces file
# — Branch 1 Configuration
auto br1
iface br1 inet static
address 10.10.11.99
netmask 255.255.255.0
bridge-ports vmnet1 tap1
pre-up ifconfig vmnet1 0.0.0.0 promisc up
pre-up ifconfig tap1 0.0.0.0 promisc up# — Branch 2 Configuration
auto br2
iface br2 inet static
address 10.10.12.99
netmask 255.255.255.0
bridge-ports vmnet2 tap2
pre-up ifconfig vmnet2 0.0.0.0 promisc up
pre-up ifconfig tap2 0.0.0.0 promisc up
- Bridge for Branch 1
- Add two ethernet interfaces to the Branch XP workstation
- Open VMWare
- Install VMWare Tools on the Branch XP workstation
- Edit the branch XP workstation
- Add two network interfaces for the branch workstation
- Start the workstation
- Configure an ip address for branch 1 on ethernet 1 (
- Configure an ip address for branch 2 on ethernet 2
- Change the default gateway as needed for each test performed.
GNS3 Configurations
- Add network clouds for branch 1 (tap1)
- Add a cloud object for branch1
- Select the TAP tab
- Enter tap1
- Add network clouds for branch 2 (tap2)
- Add a cloud object for branch2
- Select the TAP tab
- Enter tap2
- Create a link between br1, br2 and their respective lan clouds.
- Configure ip addressing on the br1 routerinterface f0/0
no shutdown
ip address 10.10.11.1 255.255.255.0 - Configure ip addressing on the br2 routerinterface f0/0
no shutdown
ip address 10.10.12.1 255.255.255.0

January 20th, 2009 at 12:57 am
thnkz dude..
gr8 wrk…
January 20th, 2009 at 10:38 am
nice men, thanks
gr8 work….. tenx for more tutorial.
January 21st, 2009 at 12:18 pm
you are the man,thnx. I will take a closer look @ it…
January 22nd, 2009 at 9:01 am
Thanks for the update.
January 24th, 2009 at 8:29 am
Thanks Josh for this tutorial.
Hostonly interfaces can be added with vmnet-netifup if devices /dev/vmnetX already exists
vmnet-netifup -d /var/run/vmnet-netifup-vmnet2.pid /dev/vmnet2 vmnet2
ifconfig vmnet2 up
Devices vmnet1 and tap1 are entered promiscuous mode automatically when I do
brctl addif br1 vmnet1 tap1
By the way when I tried to download voice-lab-branch-pc.zip I get 404.
January 26th, 2009 at 7:29 am
nucleo,
Thanks for the great info! I will check the download file.
Josh
January 27th, 2009 at 11:43 am
I also can’t download file…can you please fix it
January 28th, 2009 at 7:27 am
The zip file is available now.
January 29th, 2009 at 1:36 am
Hi Josh
Is this possible on windows machine. if you can give us the procedure for it.
Thanks
chikki
January 31st, 2009 at 6:19 am
yes.. can we do it with windows???
February 1st, 2009 at 10:26 pm
Vijay,
Yes, you can do the same thing with Windows but it is not difficult. Bridging is not necessary. I cannot explain the windows steps from memory though. Basically, you need to enable vmnet2 as a host-only network. Add a cloud object to the gns3 topology … Right-click … configure … NIO Ethernet … Select vmnet1 or vmnet2.
Josh
February 1st, 2009 at 11:18 pm
dear frndz;
i need a GWGK eBook; plz shear me.. em studing 642-453
reg:
Khalid Shaikh.
February 7th, 2009 at 8:13 am
hii
thanx for these tutorials .
i had 1 problem . i can ping from XP2 to the BR1 router but i couldn’t ping the XP2 from the BR1 ….
i’m using windows platform … and i did what said in the comment from you
so any idea
February 9th, 2009 at 5:41 am
Hi I wonder if someone could explain why we need ethernet connectivity to the PSTN router and why not just have this router connected to the FR cloud?
February 9th, 2009 at 11:53 pm
I do not have have an ebook for the GWGK exam. Sorry. I would suggest purchasing a Cisco Press book.
February 10th, 2009 at 1:00 am
Hi Ed,
The reason I chose to use ethernet is basically to test SRST. However, you may build your lab however you like. Lots of people use a single PSTN router. They use “pstn” as the frame-relay switch and the pstn. Hope I answered your question…
Josh
February 16th, 2009 at 5:14 pm
Josh, thankx for all wonderful tutorials. Being a newbie with Linux this has really pushed me to learn.
I’m having one issue with making permanent changes to the /etc/network/interfaces file. When you restart the PC it only does Br0 and in order to get the other two I would need to restart the network interface (/etc/init.d/networking restart)
Thanks.
Steven
February 23rd, 2009 at 6:43 pm
Do you have a tutorial that shows how to connect the physical 2611XM ROUTER to the lab.
There is a way to connect a real switch to the lab too?
Thanks
February 24th, 2009 at 9:58 pm
James,
I have been working on a tutorial for this recently. Hopefully I can get it all together very soon.
Josh
February 26th, 2009 at 9:51 pm
Thanks James for you answer. I will be waiting for that tutorial……
February 27th, 2009 at 1:50 pm
I am using winxp i could ping from the xp to the router in gns3 but not the other way. can u help me out plz?
March 5th, 2009 at 9:30 pm
Skilly,
You need to configure exceptions for icmp traffic in the windows firewall or disable the windows firewall.
Josh
March 14th, 2009 at 8:02 am
If u are using MacOS the best way to connect BR1 and BR2 to the Win XP host is to use VirtualBox instead of VMware Fusion. Adding additional Interfaces under VMWare Fusion is not that easy. vmware-config.pl also exists under VMWare Fusion but not with the capability to add new devices. One approach to overcome this issue can be found here http://communities.vmware.com/docs/DOC-8013.
To make tap1 and tap2 avaible in VirtualBox we can use the following commands:
VBoxManage modifyvm “Win XP” -nic1 hostif -hostifdev1 “tap1: ethernet”
VBoxManage modifyvm “Win XP” -nic2 hostif -hostifdev2 “tap2: ethernet”
So no bridging is necessary.
Paul
March 29th, 2009 at 8:33 pm
Hi Josh, thanks for putting this up together. I have a question, looking at your topology it seems like all the 3 routers are connecting (via fastethernet) to the PSTN router’s etherswitch module. Could you please shed some light on how to config those ports and vlan config on the pstn router? The reason I asked this is coz on the HQ and branch routers we have a fastethernet that we can assign ip to, however using switchmodule it is all layer2. Any help in this regards is appreciated.
thanks.
Sami.
April 13th, 2009 at 6:32 am
Paul,
Thanks for sharing this information!
Josh
April 13th, 2009 at 6:36 am
Sami,
No Problem.
I am really sorry. I have not had time to put together a video for the PSTN router.
The PSTN router is basically an ip2ip gateway. It will share a common network with the HQ, BR1 and BR2 routers. It will have a dialplan for NANP dialing between the branches. I have also been testing a SIP trunk to an outside carrier to give a more realistic lab.
Josh
March 15th, 2010 at 3:21 pm
Hi Josh and everyone!
I am following the video and ran ‘vmware-config.pl’ and got the error msg:
…..
Virtual ethernet fail (to stop)
Any sugession?
Thanks a lot!
T