Results 1 to 1 of 1
If you want to bridge two or more vlan at the same time.You can type these commands at the below.
Making bridge process
Code:
ifconfig eth0 up
vconfig add eth0 ...
- 05-25-2010 #1
bridge 2 vlan
If you want to bridge two or more vlan at the same time.You can type these commands at the below.
Making bridge process
Take back confiigurationCode:ifconfig eth0 up vconfig add eth0 2 vconfig add eth0 4 brctl addbr br0 brctl addif br0 eth0.2 brctl addif br0 eth0.4 ifconfig eth0.2 0.0.0.0 ifconfig eth0.4 0.0.0.0 ifconfig br0 192.168.1.1
Debian based system script:Code:ifconfig eth0.2 down ifconfig eth0.4 down ifconfig br0 down brctl delif br0 eth0.2 brctl delif br0 eth0.4 vconfig rem eth0.2 vconfig rem eth0.4 brctl delbr br0
/etc/network/interfaces
Code:Created Thursday 13 May 2010 # This network script was written by Kerim BASOL # Purpose of script bridge two vlan network auto br0 iface br0 inet dhcp # For the static configuration undelete comments and comment above the line #iface br0 inet static #address 192.168.1.1 #netmask 255.255.255.0 #network 192.168.1.0 pre-up ifconfig eth0 up pre-up vconfig add eth0 2 pre-up vconfig add eth0 4 pre-up brctl addbr br0 pre-up brctl addif br0 eth0.2 pre-up brctl addif br0 eth0.4 pre-up ifconfig eth0.2 0.0.0.0 pre-up ifconfig eth0.4 0.0.0.0 post-down ifconfig eth0.2 down post-down ifconfig eth0.4 down post-down ifconfig br0 down post-down brctl delif br0 eth0.2 post-down brctl delif br0 eth0.4 post-down vconfig rem eth0.2 post-down vconfig rem eth0.4 post-down brctl delbr br0


Reply With Quote