Users Guide

Table Of Contents
L2
使 MAC VLAN 使 MAC L2
L2 L2 VLAN (STP)
访 L2 访访 L2 VLAN
VLAN 1 L2 访 VLAN VLAN
VLAN VLAN ID使 switchport access vlan vlan-id
VLAN
使 802.1q VLAN 访 802.1q 访 VLAN ID
访 VLAN VLAN
1. 选择
INTERFACE L2 VLAN
VLAN VLAN
switchport mode trunk
switchport trunk allowed vlan vlan-id-list
INTERFACE L2 访访 VLAN
switchport access vlan vlan-id
2. INTERFACE L2
no shutdown
L2
OS10(config)# interface ethernet 1/1/7
OS10(conf-if-eth1/1/7)# switchport mode trunk
OS10(conf-if-eth1/1/7)# switchport trunk allowed vlan 5,10
OS10(conf-if-eth1/1/7)# no shutdown
L3
L2 访 L2 IP
L3
L3 IP 255 IP L3
L3 OSPF
1. INTERFACE L2
no switchport
2. INTERFACE L3 secondary IP
ip address address [secondary]
3. INTERFACE L3
no shutdown
L3
OS10(config)# interface ethernet 1/1/9
OS10(conf-if-eth1/1/9)# no switchport
OS10(conf-if-eth1/1/9)# ip address 10.10.1.92/24
OS10(conf-if-eth1/1/9)# no shutdown
221