|
本帖最后由 Yonsm 于 2019-12-27 16:37 编辑
NEWIFI3测试通过,其它可能也差不多:
一、LAN口桥接WAN
用之前记得switch vlan dump一下
vid portmap eg-tag eg-con stag ivl fid
1 1111--1 uuuu--t 0 0 1 -
2 ----1-1 ----u-t 0 0 1 -
PVID:
port pvid prio matrix
0 1 0 1111--1
1 1 0 1111--1
2 1 0 1111--1
3 1 0 1111--1
4 2 0 ----1-1
5 1 0 ------1
6 1 0 11111-1 - <blockquote>switch vlan set 1 1000001 0 0 u-----t # 设置LAN的vlan,仅保留LAN1口给LANswitch vlan set 2 0111101 0 0 -uuuu-t # 设置WAN的vlan,LAN234桥接到WAN
复制代码
执行了上述命令之后,再switch vlan dump一下对比差别,以上只桥接了其中3个LAN口(LAN1依然留作LAN备用,读明白上面的命令就可以改一下实现了,或者说上述成功了再来问我也行)
下面是我手动打出来的,不确定有没有谬误(但我确认知晓相关原理和方法了):
vid portmap eg-tag eg-con stag ivl fid
1 1000--1 u-----t 0 0 1 -
2 -1111-1 -uuuu-t 0 0 1 -
PVID:
port pvid prio matrix
0 1 0 1-----1
1 2 0 -1111-1
2 2 0 -1111-1
3 2 0 -1111-1
4 2 0 ---11-1
5 1 0 ------1
6 1 0 11111-1
二、WIFI桥接WAN
brctl show
brctl delif br0 ra0
brctl addbr br1
brctl addif br1 eth2.2
brctl addif br1 ra0
ifconfig br1 up
brctl show
- bridge name bridge id STP enabled interfaces
- br0 8000.207693466c3b yes eth2.1
- rai0
- br1 8000.207693466c3a no eth2.2
- ra0
复制代码
|
|