VLAN

添加vlan
(config)#vlan ID
interface f0/1
switchport access vlan ID
switchport mode access

trunk干线配置
interface f0/1
switchport mode trunk 
switchport trunk allowed vlan ID

单臂路由 子接口配置
interface f0/0.10
encapsulation dot1Q 10
ip address 192.168.1.1 255.255.255.0

interface f0/0.20
encapsulation dot1Q 20
ip address 192.168.2.1 255.255.255.0

物理接口:
no shutdown 激活端口
    

你可能感兴趣的:(VLAN)