“路由”子命令不会在Cisco 2960-S的“ip”命令中退出

我是思科的新手。 我正在运行Cisco 2960-S,并在其上定义了几个VLAN。 我喜欢使用SVIfunction,为接口VLAN 1设置192.168.1.254的IP地址,为接口VLAN 2设置192.168.2.254等等,但是我不能从设备本身Ping 192.168.X.254,但是我发出了192.168.1.254每个接口的VLANconfiguration都no shut命令。 我需要VLAN之间的路由。 我有一个search,并find几个结果启用VLAN间路由这样的链接 ,但问题是route子命令的ip命令不存在:

 my-net-dev(config)#ip ? Global IP configuration subcommands: access-list Named access-list accounting-list Select hosts for which IP accounting information is kept accounting-threshold Sets the maximum number of accounting entries accounting-transits Sets the maximum number of transit entries address-pool Specify default IP address pooling mechanism admission Network Admission Control (NAC) alias Alias an IP address to a TCP port arp IP ARP global configuration auth-proxy Authentication Proxy default-gateway Specify default gateway (if not routing IP) device Device tracking dhcp Configure DHCP server and relay parameters dhcp-client Configure parameters for DHCP client operation dhcp-server Specify address of DHCP server to use domain IP DNS Resolver domain-list Domain name to complete unqualified host names. domain-lookup Enable IP Domain Name System hostname translation domain-name Define the default domain name finger finger server flow-aggregation Configure flow aggregation flow-cache Configure netflow cache parameters flow-capture Capture additional netflow information flow-egress Configure netflow egress flow-export Specify host/port to send flow statistics flow-top-talkers Configure netflow top talkers ftp FTP configuration commands gdp Router discovery mechanism gratuitous-arps Generate gratuitous ARPs for PPP/SLIP peer addresses host Add an entry to the ip hostname table host-routing Enable host-based routing (proxy ARP and redirect) hostname Configure hostname types hp-host Enable the HP proxy probe service http HTTP server configuration icmp ICMP options igmp IGMP global configuration local Specify local options name-server Specify address of name server to use options IP Options treatment port-map Port to application mapping (PAM) configuration commands radius RADIUS configuration commands rcmd Rcmd commands reflexive-list Reflexive access list scp Scp commands security Specify system wide security information source IP source source-route Process packets with source routing header options ssh Configure ssh options sticky-arp Allow the creation of sticky ARP entries subnet-zero Allow 'subnet zero' subnets tacacs TACACS configuration commands tcp Global TCP parameters telnet Specify telnet options tftp tftp configuration commands verify URPF SNMP trap and IP packet header validation commands 

no switchport不工作本身,需要把它后面的一些子命令:

 my-net-dev(config-if)#no switchport % Incomplete command. my-net-dev(config-if)#no switchport ? access Set access mode characteristics of the interface autostate Include or exclude this port from vlan link up calculation block Disable forwarding of unknown uni/multi cast addresses host Set port host mode Set trunking mode of the interface nonegotiate Device will not engage in negotiation protocol on this interface port-security Security related command priority Set appliance 802.1p priority protected Configure an interface to be a protected port trunk Set trunking characteristics of the interface voice Voice appliance attributes 

ROM是c2960s-universalk9-mz.150-2.SE8.bin

2960-S是一个二层交换机 。 如果您需要在VLAN之间进行路由,则需要路由器。

这取决于交换机的软件function可用的选项。

http://www.cisco.com/c/en/us/products/collat​​eral/switches/catalyst-2960-s-series-switches/data_sheet_c78-726680.html

软件function

Cisco Catalyst 2960-S系列交换机提供LAN Base和LAN Litefunction集。 LAN Lite模型为具有基本要求的小型部署提供了降低的function和可扩展性。

请注意,每个交换机型号都绑定到特定的function级别; LAN Lite型号无法升级到LAN基本function集。

本文将根据function说明各种交换function。 Cisco IOS软件许可证:什么是第2层和第3层交换 – 第1部分

四种常见的Cisco IOS软件function许可证用于切换:

  • LAN Lite:企业EntryLevel第2层交换
  • LAN基础:企业接入层2交换
  • IP基础:企业接入层3交换
  • IP服务:高级第3层交换

请检查完整的文章,了解每种types的详细信息。