Catalyst2960でip routing

Catalyst2960も 12.2(55)SE から、ip routingができるように
色々と制約はありますが

  1. Static Routingのみ
  2. 設定上限は DefaultRouteを含めて 16個
  3. SVI上限は16個



1.SDM Templateを変更し、configを保存

cat2960#
cat2960#show sdm prefer
 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 + multicast routes:    0.25K
  number of IPv4 unicast routes:                    0
  number of IPv6 multicast groups:                  0
  number of IPv6 unicast routes:                    0
    number of directly-connected IPv6 addresses:    0
    number of indirect IPv6 unicast routes:         0
  number of IPv4 policy based routing aces:         0
  number of IPv4/MAC qos aces:                      0.125k
  number of IPv4/MAC security aces:                 0.375k
  number of IPv6 policy based routing aces:         0
  number of IPv6 qos aces:                          20
  number of IPv6 security aces:                     25

cat2960#
cat2960#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
cat2960(config)#
cat2960(config)#sdm prefer lanbase-routing
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.
cat2960(config)#
cat2960(config)#exit
cat2960#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
cat2960#



2.reload(再起動)し、SDM Templateの確認

cat2960>enable
Password:
cat2960#
cat2960#show sdm prefer
 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.25K
    number of directly-connected IPv4 hosts:        4K
    number of indirect IPv4 routes:                 256
  number of IPv6 multicast groups:                  0.375k
  number of IPv6 unicast routes:                    1.25K
    number of directly-connected IPv6 addresses:    0.75K
    number of indirect IPv6 unicast routes:         448
  number of IPv4 policy based routing aces:         0
  number of IPv4/MAC qos aces:                      0.125k
  number of IPv4/MAC security aces:                 0.375k
  number of IPv6 policy based routing aces:         0
  number of IPv6 qos aces:                          0.375k
  number of IPv6 security aces:                     127

cat2960#



3.ip routingの有効化

cat2960#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
cat2960(config)#
cat2960(config)#ip routing
cat2960(config)#
cat2960(config)#exit
cat2960#show running-config
Building configuration...

Current configuration : 3741 bytes
!
! Last configuration change at 00:04:30 UTC Mon Mar 1 1993
!
version 15.0
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname cat2960
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$ot0Y$K0d96pGY6mhTaoRHxIJlp.
!
no aaa new-model
system mtu routing 1500
ip routing
!
<以下省略>



4.configを保存

cat2960#
cat2960#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
cat2960#