Archive Pages Design$type=blogging

How to install a loopback interface in Linux for GNS3.

After successful installation of GNS3, we will install loopback adapter on our Ubuntu, Centos, Redhat and Fedora systems, so that we can te...

After successful installation of GNS3, we will install loopback adapter on our Ubuntu, Centos, Redhat and Fedora systems, so that we can telnet into your routers.

Loopback tap installation on Ubuntu
user@admin-desktop:~$ sudo –i
root@ admin-desktop:~#apt-get install uml-utilities
root@ admin-desktop:~#modprobe tun
root@ admin-desktop:~#tunctl             This will create loopback interface tap0
root@ admin-desktop:~#ifconfig tap0 10.100.100.100 netmask 255.255.255.0 up
root@ admin-desktop:~#ifconfig            verify that tap0 is up and given ip is assigned.


If you want to add one more loopback interface
root@ admin-desktop:~#tunctl             This will create loopback interface tap1
root@ admin-desktop:~#ifconfig tap1 10.100.101.100 netmask 255.255.255.0 up

********************************************************************************
 
Loopback tap installation on Centos/Redhat/Fedora
We need tunctl which is not available in our local repositories. So we’ll have to add RPMForge repository. Steps to add this repo is given here
http://wiki.centos.org/AdditionalResources/Repositories/RPMForge (Steps are the same for other 2 distros as well)

Ok lets install tunctl

[user@admin ~]$ su
Password: (Type in your root password here)
[root@admin /]# yum install tunctl
[root@admin /]# modprobe tun
[root@admin /]# cd /usr/sbin
[root@admin sbin]#./tunctl           This will create loopback interface tap0
[root@admin sbin]# /sbin/ifconfig tap0 10.100.100.100 netmask 255.255.255.0 up
[root@admin sbin]# /sbin/ ifconfig     verify that tap0 is up and given ip is assigned.

If you want to add one more loopback interface
[root@admin sbin]#./tunctl                 This will create loopback interface tap1
[root@admin sbin]# /sbin/ifconfig tap1 10.100.101.100 netmask 255.255.255.0 up

Change the ip with ifconfig according to your requirement.


Run GNS3 with root privileges, or you won’t be able to add these tap interfaces to GNS3.
Fire up GNS3


Drag the cloud onto the work-board and right click on it, Select Configure. Then Select NIO TAP, type tap0, press Add. Click Apply & ok. Now connect it to your router. 

 Important: Add these lines to iptables

sudo iptables -I INPUT -j ACCEPT -i tap0
sudo iptables -I OUTPUT -j ACCEPT -o tap0


Happy Learning :)

COMMENTS

الاسم

ASA CCNA Flashcards CCNA Interview Q\A CCNA Labs Cheat Sheets cisco certification Cisco IOS Ethernet Cabling Free Network Tools Ftp Links GNS3 Tutorials IPv6 - Introduction LAB 1 LAB 2 Linux Router Networking Online Videos Packet Tracer Posters Qemu Softwares subnet mask TestInside tips-tricks Ubuntu Video Tutorials Windows 7 Networking Youtube Vids
false
rtl
item
virtualization cloud computing security privacy data blatform: How to install a loopback interface in Linux for GNS3.
How to install a loopback interface in Linux for GNS3.
virtualization cloud computing security privacy data blatform
http://cloud-virtualization3.blogspot.com/2010/09/how-to-install-loopback-interface-in.html
http://cloud-virtualization3.blogspot.com/
http://cloud-virtualization3.blogspot.com/
http://cloud-virtualization3.blogspot.com/2010/09/how-to-install-loopback-interface-in.html
true
4356106142092226719
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago