console(config)#vlan database console(config-vlan)#vlan 2-10 Warning: The use of large numbers of VLANs or interfaces may cause significant delays in applying the configuration. console(config-vlan)#
console#show vlan VLAN Name Ports Type Authorization ----- --------------- ------------- ----- ------------- 1 Default ch1-24, Default Required 1/g1-1/xg4 2 Static Required 3 Static Required 4 Static Required 5 Static Required 6 Static Required 7 Static Required 8 Static Required 9 Static Required 10 Static Required
console#configure console(config)#interface vlan 2 console(config-if-vlan2)#ip address 192.168.0.1 255.255.255.0
console(config)#interface ethernet 1/g5 console(config-if-1/g5)#switchport mode access console(config-if-1/g5)#switchport access vlan 5 Warning: The use of large numbers of VLANs or interfaces may cause significant delays in applying the configuration. console(config-if-1/g5)#
console(config)#interface vlan 11 console(config-if-vlan11)#routing
console#vlan database console(config-vlan)#vlan routing 10
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。