admin
不忘初心,方得始终
级别: 管理员
只看楼主 | | | 0楼 发表于:2018-09-29 17:30

昊翔万兆交换机配置网口为trunk和access模式

  昊翔万兆交换机配置网口为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