Before
ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:7a:94:3d
inet addr:192.168.0.36 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe7a:943d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:288 errors:0 dropped:0 overruns:0 frame:0
TX packets:273 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:61152 (61.1 KB) TX bytes:35117 (35.1 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:240 (240.0 B) TX bytes:240 (240.0 B)
vdkmai@Ubuntu32bit:~$ brctl
The program 'brctl' is currently not installed. You can install it by typing:
sudo apt-get install bridge-utils
Setup
sudo apt-get install bridge-utils
Usage
Usage: brctl [commands]
commands:
addbr add bridge
delbr delete bridge
addif add interface to bridge
delif delete interface from bridge
hairpin {on|off} turn hairpin on/off
setageing
vdkmai@Ubuntu32bit:~$ sudo brctl addbr vCisco
vdkmai@Ubuntu32bit:~$ brctl show
bridge name bridge id STP enabled interfaces
vCisco 8000.000000000000 no
bridge name bridge id STP enabled interfaces
vCisco 8000.000000000000 no
Example to create veth interfaces with custom names: lnsgmii0 & nsgmii0. You can use any name which you want.
0 comments:
Post a Comment