Building INE CCIE RSv5 IOSv All-in-One vRack (Bridging Method)

On my previous post Building INE CCIE RSv5 IOSv All-in-One vRack we use to connect using multicast method but the problem on that method its isolated on the host machine, we could not do some file transfer if we wanted like capture files we do using an IOS capture command. So the solution for this is to use a bridging method.



To do this we need to install additional packages

sudo apt-get install libcap2-bin bridge-utils
sudo apt-get install libvirt-bin
sudo apt-get install uml-utilities

Verify that we have the Virtual Bridge interface

sudo ifconfig | grep vir
virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00  

After that we need to create a new script


Paste the Following

sudo ifconfig virbr0
# sudo /usr/sbin/tunctl -t tap1 -u {linux user}
# Since i'm using the ccie user we use the following command
sudo /usr/sbin/tunctl -t tap1 -u ccie
sudo /usr/sbin/tunctl -t tap2 -u ccie
sudo /usr/sbin/tunctl -t tap3 -u ccie
sudo /usr/sbin/tunctl -t tap4 -u ccie
sudo /usr/sbin/tunctl -t tap5 -u ccie
sudo /usr/sbin/tunctl -t tap6 -u ccie
sudo /usr/sbin/tunctl -t tap7 -u ccie
sudo /usr/sbin/tunctl -t tap8 -u ccie
sudo /usr/sbin/tunctl -t tap9 -u ccie
sudo /usr/sbin/tunctl -t tap10 -u ccie

sudo qemu-system-x86_64 -name R1 -daemonize -enable-kvm -vga none -vnc none -m 384 -serial telnet:,server,nowait -drive if=virtio,file=./r1.vmdk -net tap,ifname=tap1 -net nic,model=e1000,macaddr=00:00:00:00:01:01 2>&1 > /dev/null
echo Starting R1
sleep 20
sudo qemu-system-x86_64 -name R2 -daemonize -enable-kvm -vga none -vnc none -m 384 -serial telnet:,server,nowait -drive if=virtio,file=./r2.vmdk -net tap,ifname=tap2 -net nic,model=e1000,macaddr=00:00:00:00:01:02 2>&1 > /dev/null
echo Starting R2
sleep 20
sudo qemu-system-x86_64 -name R3 -daemonize -enable-kvm -vga none -vnc none -m 384 -serial telnet:,server,nowait -drive if=virtio,file=./r3.vmdk -net tap,ifname=tap3 -net nic,model=e1000,macaddr=00:00:00:00:01:03 2>&1 > /dev/null
echo Starting R3
sleep 20
sudo qemu-system-x86_64 -name R4 -daemonize -enable-kvm -vga none -vnc none -m 384 -serial telnet:,server,nowait -drive if=virtio,file=./r4.vmdk -net tap,ifname=tap4 -net nic,model=e1000,macaddr=00:00:00:00:01:04 2>&1 > /dev/null
echo Starting R4
sleep 20
sudo qemu-system-x86_64 -name R5 -daemonize -enable-kvm -vga none -vnc none -m 384 -serial telnet:,server,nowait -drive if=virtio,file=./r5.vmdk -net tap,ifname=tap5 -net nic,model=e1000,macaddr=00:00:00:00:01:05 2>&1 > /dev/null
echo Starting R5
sleep 20
sudo qemu-system-x86_64 -name R6 -daemonize -enable-kvm -vga none -vnc none -m 384 -serial telnet:,server,nowait -drive if=virtio,file=./r6.vmdk -net tap,ifname=tap6 -net nic,model=e1000,macaddr=00:00:00:00:01:06 2>&1 > /dev/null
echo Starting R6
sleep 20
sudo qemu-system-x86_64 -name R7 -daemonize -enable-kvm -vga none -vnc none -m 384 -serial telnet:,server,nowait -drive if=virtio,file=./r7.vmdk -net tap,ifname=tap7 -net nic,model=e1000,macaddr=00:00:00:00:01:07 2>&1 > /dev/null
echo Starting R7
sleep 20
sudo qemu-system-x86_64 -name R8 -daemonize -enable-kvm -vga none -vnc none -m 384 -serial telnet:,server,nowait -drive if=virtio,file=./r8.vmdk -net tap,ifname=tap8 -net nic,model=e1000,macaddr=00:00:00:00:01:08 2>&1 > /dev/null
echo Starting R8
sleep 20
sudo qemu-system-x86_64 -name R9 -daemonize -enable-kvm -vga none -vnc none -m 384 -serial telnet:,server,nowait -drive if=virtio,file=./r9.vmdk -net tap,ifname=tap9 -net nic,model=e1000,macaddr=00:00:00:00:01:00 2>&1 > /dev/null
echo Starting R9
sleep 20
sudo qemu-system-x86_64 -name R10 -daemonize -enable-kvm -vga none -vnc none -m 384 -serial telnet:,server,nowait -drive if=virtio,file=./r10.vmdk -net tap,ifname=tap10 -net nic,model=e1000,macaddr=00:00:00:00:01:10 2>&1 > /dev/null
echo Starting R10
IP=$(ifconfig eth0 | grep 'inet addr' | cut -d: -f2 | cut -d' ' -f1)
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo !!!!!!!!!!!!!! Router Access !!!!!!!!!!!!!!
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo R1 - Telnet $IP 1001
echo R2 - Telnet $IP 1002
echo R3 - Telnet $IP 1003
echo R4 - Telnet $IP 1004
echo R5 - Telnet $IP 1005
echo R6 - Telnet $IP 1006
echo R7 - Telnet $IP 1007
echo R8 - Telnet $IP 1008
echo R9 - Telnet $IP 1009
echo R10 - Telnet $IP 1010
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Change the permission

sudo chmod +x

Execute the script


Connectivity TEST


To communicate with the HOST System (Linux) which we have set the IP address to

We need to add an IP address to the Gi0/0 on the router


As you can see we are able to ping the Host Linux IP address


Now we could transfer files all we like.

Note: IOSv version use on this topology

"IOSv Download"


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.