Add bridge and vlan to xen
- Details
- Category: Virtualization
- Written by Mahdi Bahmani Ciahmard
- Hits: 52
how add new vlan in this example 62 to xenbr
first off all add create vlan 62 to eth0
secound create xenbr62 and add eth0.62
at the end make up two created interfaces
xen:~# vconfig add eth0 62
Added VLAN with VID == 62 to IF -:eth0:-
xen:~# brctl addbr xenbr62
xen:~# brctl addif xenbr62 eth0.62
xen:~# ifconfig eth0.62 up
xen:~# ifconfig eth0.62
eth0.62 Link encap:Ethernet HWaddr 00:1f:29:55:8f:a4
inet6 addr: fe80::21f:29ff:fe55:8fa4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:480 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:23956 (23.3 KiB) TX bytes:468 (468.0 B)
xen:~# ifconfig xenbr62 up
xen:~# ifconfig xenbr62
xenbr62 Link encap:Ethernet HWaddr 00:1f:29:55:8f:a4
inet6 addr: fe80::21f:29ff:fe55:8fa4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:94 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5291 (5.1 KiB) TX bytes:468 (468.0 B)
xen:~#

