CANOGA PERKINS 9175 Configuration Guide User Manual
Page 30
CanogaOS Configuration Guide
5-4
DUT#configure terminal
Enter the Configure mode.
DUT(config-vlan)#vlan 10,20
Create VLAN 10,20
DUT(config-vlan)#exit
Exit VLAN database mode.
DUT(config)#interface eth-0-1
Enter the interface mode.
DUT(config-if)#switchport mode trunk
Set the switching characteristics of this interface trunk
mode.
DUT(config-if)#switchport trunk allowed vlan all
Set this trunk allow all VLANs on this interface.
DUT(config-if)#switchport trunk native vlan 10
Set this trunk port’s PVID to 10.
DUT(config)#interface eth-0-2
Enter the interface mode.
DUT(config-if)#switchport mode access
Set the switching characteristics of this interface access
mode.
DUT(config-if)#switchport access vlan 10
Enable VLAN port access by specifying the VLAN ID 2
on this interface.
DUT(config-if)#end
Exit to exec mode.
DUT#show vlan brief
Display vlan’s configurations.
DUT#show interface switchport
Display interface’s switch configurations.
Bridge 2
DUT#configure terminal
Enter the Configure mode.
DUT(config)#vlan database
Enter the VLAN database mode.
DUT(config-vlan)#vlan 10,20
Create VLAN 10,20
DUT(config-vlan)#exit
Exit VLAN database mode.
DUT(config)#interface eth-0-1
Enter the interface mode.
DUT(config-if)#switchport mode trunk
Set the switching characteristics of this interface trunk
mode.
DUT(config-if)#switchport trunk allowed vlan all
Set this trunk port allow all VLANs on this interface.
DUT(config-if)#switchport trunk native vlan 10
Set this trunk port’s PVID to 10.
DUT(config)#interface eth-0-2
Enter the interface mode.
DUT(config-if)#switchport mode access
Set the switching characteristics of this interface access
mode.
DUT(config-if)#switchport access vlan 10
Enable VLAN port access by specifying the VLAN ID 2
on this interface.
DUT(config-if)#end
Exit to exec mode.
DUT#show vlan brief
Display vlan’s configurations.
DUT#show interface switchport
Display interface’s switch configurations.