Skip to content

Instantly share code, notes, and snippets.

@stackia
Last active December 27, 2022 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stackia/3401477588ed9e461e16409344dba3f4 to your computer and use it in GitHub Desktop.
Save stackia/3401477588ed9e461e16409344dba3f4 to your computer and use it in GitHub Desktop.
华硕路由器 vlan 配置
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