Skip to content

CCIE23050.com CCIE Network blog HTTP://1806971003

CCIE23050.com

  • Home
  • About Me
  • Contact Me

Linux tap0 interface

Posted on November 1, 2016 by admin

Linux tap0 interface
This is handy if you want to bridge a physical and logical interface.

sudo apt-get install uml-utilities

ubuntu:~$ sudo apt-get install uml-utilities

[sudo] password for user:

Reading package lists… Done

Building dependency tree

Reading state information… Done

The following packages were automatically installed and are no longer required:

linux-headers-2.6.35-22-server linux-headers-2.6.35-22

Use ‘apt-get autoremove’ to remove them.

The following extra packages will be installed:

libreadline5

Suggested packages:

user-mode-linux

The following NEW packages will be installed:

libreadline5 uml-utilities

0 upgraded, 2 newly installed, 0 to remove and 0 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

Get:1 http://us.archive.ubuntu.com/ubuntu/ maverick/main libreadline5 amd64 5.2-7build1 [147kB]

Get:2 http://us.archive.ubuntu.com/ubuntu/ maverick/universe uml-utilities amd64 20070815-1.1ubuntu2 [63.3kB]

Fetched 210kB in 1s (171kB/s)

Selecting previously deselected package libreadline5.

(Reading database … 156284 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

ubuntu:~$

#echo creating tap0 device
sudo tunctl -t tap0

echo starting with empty interfaces
sudo ifconfig eth1 0.0.0.0 promisc up
sudo ifconfig tap0 0.0.0.0 promisc up

echo creating bridge
sudo brctl addbr br0
sudo brctl addif br0 eth1
sudo brctl addif br0 tap0

echo assigning ip to the virtual bridge
sudo ifconfig br0 -promisc 192.168.2.69 netmask 255.255.255.0 up

Posted in IP, LinuxTagged Linux

Post navigation

Grep
TCP Track

Follow Me

  • YouTube
  • LinkedIn

Location

  • 10809 Executive Center Dr, Little Rock, AR 72211
Proudly powered by WordPress | Theme: micro, developed by DevriX.