如果直接修改会报错:
[R1-Ethernet0/0/1]port link-type access
Error: Please renew the default configurations.
undo也是同样的错误。
需要修改如下;
[R1-Ethernet0/0/2]undo port trunk allow-pass vlan all
[R1-Ethernet0/0/2]port trunk allow-pass vlan 1
[R1-Ethernet0/0/2]port link-type access
[R1-Ethernet0/0/2]port default vlan 20
前面2步是去掉默认的trunk,后面2步就是正确是修改vlan模式为access了。