Loopback tap installation on Ubuntu
Mostly i like to practice on GNS3 . SO i need to create multiple look back on my ubuntu Box ..
Here is the way
[email protected]:~$ sudo —i
[email protected] K:~#apt-get install uml-utilities
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
The following NEW packages will be installed:
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 210kB of archives.
After this operation, 741kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
Install these packages without verification [y/N]? y
Get:1 http://archive.ubuntu.com/ubuntu/ lucid/main libreadline5 5.2-7build1 [147kB] Get:2 http://archive.ubuntu.com/ubuntu/ lucid/universe uml-utilities 20070815-1.1ubuntu2 [63.3kB] Fetched 210kB in 5s (37.4kB/s)
Selecting previously deselected package libreadline5.
(Reading database … 208995 files and directories currently installed.)
Unpacking libreadline5 (from …/libreadline5_5.2-7build1_amd64.deb) …
Selecting previously deselected package uml-utilities.
Unpacking uml-utilities (from …/uml-utilities_20070815-1.1ubuntu2_amd64.deb) …
Processing triggers for man-db …
Processing triggers for ureadahead …
ureadahead will be reprofiled on next reboot
Setting up libreadline5 (5.2-7build1) …
Setting up uml-utilities (20070815-1.1ubuntu2) …
* Starting User-mode networking switch uml_switch [ OK ]
Processing triggers for libc-bin …
ldconfig deferred processing now taking place
[email protected] K:~#modprobe tun
[email protected] K:~#tunctl This will create loopback interface tap0
[email protected] K:~#ifconfig tap0 10.10.10.100 netmask 255.255.255.0 up
[email protected] K:~#ifconfig verify that tap0 is up and given ip is assigned.
If you want to add one more loopback interface