Jump to content


0

(Tutorial)How to create a loopback interface in linux for GNS3.


3 replies to this topic

#1 Glavin

Glavin

    VERSION 1.0

  • Senior Super Moderators
  • 731 posts
  • 46159 thanks

Posted 22 June 2010 - 10:04 AM

After successful installation of GNS3, we will install loopback adapter on our Linux system, so that we can telnet into your routers.

Loopback tap installation on Ubuntu

[email protected]:~$ sudo –i

[email protected] admin-desktop:~#apt-get install uml-utilities

[email protected] admin-desktop:~#modprobe tun

[email protected] admin-desktop:~#tunctl This will create loopback interface tap0

[email protected] admin-desktop:~#ifconfig tap0 10.100.100.100 netmask 255.255.255.0 up

[email protected] admin-desktop:~#ifconfig verify that tap0 is up and given ip is assigned.


If you want to add one more loopback inferface

[email protected] admin-desktop:~#tunctl This will create loopback interface tap1

[email protected] 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

[[email protected] ~]$ su

Password: (Type in your root password here)

[[email protected]n /]# yum install tunctl

[[email protected] /]# modprobe tun

[[email protected] /]# cd /usr/sbin

[[email protected] sbin]#./tunctl This will create loopback interface tap0

[[email protected] sbin]# /sbin/ifconfig tap0 10.100.100.100 netmask 255.255.255.0 up

[[email protected] sbin]# /sbin/ ifconfig verify that tap0 is up and given ip is assigned.


If you want to add one more loopback inferface

[[email protected] sbin]#./tunctl This will create loopback interface tap1

[[email protected] 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 Appy & ok. Now connect it to your router.

Find More Tutorials on Gns3
http://networkingtips-tricks.blogspot.com/search/label/GNS3%20Tutorials


happy learning :)
Before posting under Share sections, Make sure you've read the updated rules posted here http://certcollection.org/forum/forum-175/announcement-8-share-section-rules-read-before-posting/

Help us keep this forum clean by reporting spam / scam / non IT related posts.

Follow us on http://twitter.com/certcollection

Thanked by 2 Members:
hesam26 , rsaim

#2 iQvoice

iQvoice

    Advanced Member

  • Members
  • PipPipPip
  • 76 posts
  • 153 thanks

Posted 22 June 2010 - 08:45 PM

Well done my friend, keep it coming!

#3 Glavin

Glavin

    VERSION 1.0

  • Senior Super Moderators
  • 731 posts
  • 46159 thanks

Posted 24 June 2010 - 03:48 PM

How to add a host in GNS3 Qemu can be found here..

http://docs.google.com/View?id=dfzhd6z4_397g3jjf4db

Before posting under Share sections, Make sure you've read the updated rules posted here http://certcollection.org/forum/forum-175/announcement-8-share-section-rules-read-before-posting/

Help us keep this forum clean by reporting spam / scam / non IT related posts.

Follow us on http://twitter.com/certcollection

#4 hesam26

hesam26

    Junior Member

  • Members
  • PipPip
  • 1 posts
  • 0 thanks

Posted 22 March 2014 - 08:01 AM

Excellent my friend. It was something i was looking for.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Organization

Community

Downloads

Test Providers

Site Info


Go to top