Last active
December 27, 2022 16:05
-
-
Save stackia/3401477588ed9e461e16409344dba3f4 to your computer and use it in GitHub Desktop.
华硕路由器 vlan 配置
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vconfig set_name_type DEV_PLUS_VID_NO_PAD | |
vconfig add eth0 2 | |
brctl delif br0 eth3 | |
brctl addbr vlan2 | |
brctl addif vlan2 eth0.2 | |
brctl addif vlan2 eth3 | |
bcmmcastctl mode -i vlan2 -p 1 -m 1 | |
bcmmcastctl mode -i vlan2 -p 2 -m 1 | |
ifconfig eth0.2 up | |
ifconfig vlan2 up | |
### | |
vconfig set_name_type DEV_PLUS_VID_NO_PAD | |
vconfig add eth0 2 | |
vconfig add eth3 2 | |
brctl addbr vlan2 | |
brctl addif vlan2 eth0.2 | |
brctl addif vlan2 eth3.2 | |
bcmmcastctl mode -i vlan2 -p 1 -m 1 | |
bcmmcastctl mode -i vlan2 -p 2 -m 1 | |
ifconfig eth0.2 up | |
ifconfig eth3.2 up | |
ifconfig vlan2 up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment