openwrt vlan 配置

mt7621 switch配置, 两个mac eth0 eth1

config interface 'vlan11'                       
        option type 'bridge'                    
        option ifname 'eth0.11'                 
        option proto 'static'                   
        option netmask '255.255.255.0'          
        option ipaddr '192.168.11.1' 
		
config switch_vlan                              
        option device 'switch0'                 
        option vlan '11'        
        option ports '0t 1t 2t 3t 4t 6t'

mt7981 dsa设置vlan

https://forum.openwrt.org/t/mini-tutorial-for-dsa-network-config/96998
https://www.right.com.cn/forum/thread-5807504-1-1.html

posted on 2023-02-16 20:36  listenerln  阅读(452)  评论(0)    收藏  举报