У Cisco были и есть замечательные коммутаторы 2/3 уровня — Cisco Catalist WS-C2960, которые можно использовать в качестве ядра небольшой «бюджетной» сети.
Для этого требуется статическая маршрутизация, которой в настройках по умолчанию нет.
Как включить или разрешить статическую маршрутизацию в Cisco 2960S Lan Base?
На примере WS-C2960S-24TS-L.
SW5-SRV#sh ver Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 12.2(55)SE5, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2012 by Cisco Systems, Inc. Compiled Thu 09-Feb-12 19:22 by prod_rel_team Image text-base: 0x00003000, data-base: 0x01B00000 ROM: Bootstrap program is Alpha board boot loader BOOTLDR: C2960S Boot Loader (C2960S-HBOOT-M) Version 12.2(55r)SE, RELEASE SOFTWARE (fc1) SW5-SRV uptime is 19 minutes System returned to ROM by power-on System restarted at 18:18:53 AST Sun Dec 9 2012 System image file is "flash:/c2960s-universalk9-mz.122-55.SE5/c2960s-universalk9-mz.122-55.SE5.bin" ...
Смотрим разрешенные возможности по умолчанию:
SW5-SRV#sh sdm pre The current template is "default" template. The selected template optimizes the resources in the switch to support this level of features for 0 routed interfaces and 255 VLANs. number of unicast mac addresses: 8K number of IPv4 IGMP groups: 0.25K number of IPv6 multicast groups: 0.25K number of IPv4/MAC qos aces: 0.375k number of IPv4/MAC security aces: 0.375k number of IPv6 policy based routing aces: 0 number of IPv6 qos aces: 0 number of IPv6 security aces: 0.125k
Пробуем включить статическую маршрутизацию:
SW5-SRV#ip routing ^ % Invalid input detected at '^' marker.
Cisco «не знает» такую команду… Научим, переключаем режим sdm на lan-base:
SW5-SRV#conf t Enter configuration commands, one per line. End with CNTL/Z. SW5-SRV(config)#sdm pref lan Changes to the running SDM preferences have been stored, but cannot take effect until the next reload. Use 'show sdm prefer' to see what SDM preference is currently active.
Сохраним конфигурацию:
SW5-SRV#wr Building configuration... [OK] SW5-SRV#
После обязательной перезагрузки нужное появится.
SW5-SRV#reload
SW5-SRV#sh sdm pre The current template is "lanbase-routing" template. The selected template optimizes the resources in the switch to support this level of features for 0 routed interfaces and 255 VLANs. number of unicast mac addresses: 4K number of IPv4 IGMP groups + multicast routes: 0.25K number of IPv4 unicast routes: 4.875k number of directly-connected IPv4 hosts: 4K number of indirect IPv4 routes: 0.875k number of IPv6 multicast groups: 0.25K number of directly-connected IPv6 addresses: 0.25K number of indirect IPv6 unicast routes: 0 number of IPv4 policy based routing aces: 0 number of IPv4/MAC qos aces: 0.375k number of IPv4/MAC security aces: 0.375k number of IPv6 policy based routing aces: 0 number of IPv6 qos aces: 0 number of IPv6 security aces: 0.125k
Теперь у нас есть ip routing на 16 статических маршрутов (читай строк маршрутов), DHCP сервер и прочие полезности.
SW5-SRV(config)#ip route ? A.B.C.D Destination prefix profile Enable IP routing table profile static Allow static routes
SW5-SRV# conf t Enter configuration commands, one per line. End with CNTL/Z. SW5-SRV(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 arp IP Arp features 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 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) 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 route Establish static routes routing Enable IP routing scp Scp commands security Specify system wide security information sla IP Service Level Agreement 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
Можем легко использовать Cisco Catalist WS C2960S в качестве надежного и недорогого ядра небольшой сети.
(С) eeg