How to install a looback interface in Ubuntu 12.04
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 12.04
$ sudo –i
#apt-get install uml-utilities
#modprobe tun
#tunctl ( This will create loopback interface tap0 )
#ifconfig tap0 10.64.10.100 netmask 255.0.0.0 up
#ifconfig
If you want to add one more loopback interface
#tunctl ( This will create loopback interface tap1 )
#ifconfig tap1 10.64.10.100 netmask 255.0.0.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
$ su -
Password: (Type in your root password here)
# yum install tunctl
# modprobe tun
# cd /usr/sbin
#./tunctl ( This will create loopback interface tap0 )
# /sbin/ifconfig tap0 10.100.100.100 netmask 255.255.255.0 up
# /sbin/ ifconfig ( verify that tap0 is up and given ip is assigned.)
If you want to add one more loopback interface
#./tunctl ( This will create loopback interface tap1 )
# /sbin/ifconfig tap1 10.100.101.100 netmask 255.255.255.0 up
Important: Add these lines to iptables
sudo iptables -I INPUT -j ACCEPT -i tap0
sudo iptables -I OUTPUT -j ACCEPT -o tap0
No comments:
Post a Comment