昊翔万兆交换机配置网口为trunk和access模式:
SYSTEM(config)# interface ethernet 1/0/15
Now only physical and switchport features can be configured.
If configuring IP interface features. Please execute "no switchport".
SYSTEM(config-if-eth)# switchport
SYSTEM(config-if-eth)# no shut
SYSTEM(config-if-eth)# exit
SYSTEM(config)# interface ethernet 1/0/15
SYSTEM(config-if-eth)# switchport
SYSTEM(config-if-eth)# switchport mode trunk
SYSTEM(config-if-eth)# switchport trunk allowed vlan 1500-1698
SYSTEM(config-if-eth)# no shut
SYSTEM(config)# show running-config
SYSTEM(config)# interface ethernet 1/0/20
Now only physical and switchport features can be configured.
If configuring IP interface features. Please execute "no switchport".
SYSTEM(config-if-eth)# switchport
SYSTEM(config-if-eth)# switchport mode access
SYSTEM(config-if-eth)# switchport pvid 40