Convirtiendo un switch de capa 2 en sw
de capa 3
Fecha: 15 de septiembre del 2014
Este tema corresponde al punto 5.3.1 de la currícula CCNA 2 R&S.
Escenario
Se realiza la demostración de cómo cambiar la funcionalidad de un switch Catalyst 2960 de layer 2 a layer 3,
Con algunas limitaciones, tales como la cantidad de redes directamente conectadas y de rutas estáticas.
SW_arriba#sh sdm prefer (verificamos)
The current template is "default" template. (capa 2 solamente)
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 IPv4/MAC qos aces: 0.125k
number of IPv4/MAC security aces: 0.375k
SW_arriba#conf t
SW_arriba(config)#sdm prefer ?
default Default bias
dual-ipv4-and-ipv6 Support both IPv4 and IPv6
lanbase-routing Lanbase routing
qos QoS bias
SW_arriba(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.
SW_arriba(config)#end
SW_arriba#sh sdm prefer (verificamos nuevamente)
The current template is "default" template. (capa 2 solamente)
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 IPv4/MAC qos aces: 0.125k
number of IPv4/MAC security aces: 0.375k
On next reload, template will be "lanbase-routing" template.
SW_arriba#reload
Proceed with reload? [confirm] (enter)
*Mar 3 10:12:04.663: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload command.
Loading "flash:/c2960-lanbasek9-mz.122-58.SE1.bin"...@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@
---resumido---
SW_arriba>ena
Password:
SW_arriba#sh sdm prefer (verificamos)
The current template is "lanbase-routing" template.(capa 3)
The selected template optimizes the resources in
the switch to support this level of features for
8 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: 0.25K
number of IPv4 policy based routing aces: 0
number of IPv4/MAC qos aces: 0.125k
number of IPv4/MAC security aces: 0.375k
SW_arriba#sh ip route
Default gateway is not set
Host Gateway Last Use Total Uses Interface
ICMP redirect cache is empty
SW_arriba#
SW_arriba#conf t
SW_arriba(config-if)#int fa0/23
SW_arriba(config-if)#sw mode access
SW_arriba(config-if)#switchport access vlan 2
SW_arriba(config-if)#exit
SW_arriba(config)#int fa0/24
SW_arriba(config-if)#sw mode access
SW_arriba(config-if)#switchport access vlan 3
SW_arriba(config-if)#^Z
SW_arriba#SW_arriba(config)#ip
rout?
route routing
SW_arriba(config)#ip routing
SW_arriba(config)#^Z
SW_arriba#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is
directly connected, Vlan1
L 192.168.1.1/32 is directly connected, Vlan1
192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.2.0/24 is
directly connected, Vlan2
L 192.168.2.1/32 is directly connected, Vlan2
192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.3.0/24 is
directly connected, Vlan3
L 192.168.3.1/32 is directly connected, Vlan3
SW_arriba#
SW_arriba#ping 192.168.2.100
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.100, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/9 ms
SW_arriba#ping 192.168.3.100
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.100, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/8 ms
SW_arriba#sh arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.1.1 - 0021.1b0a.a4c0 ARPA Vlan1
Internet 192.168.2.1 - 0021.1b0a.a4c1 ARPA Vlan2
Internet 192.168.2.100 0
54be.f757.f30e ARPA
Vlan2
Internet 192.168.3.1 - 0021.1b0a.a4c2 ARPA Vlan3
Internet 192.168.3.100 0 54be.f757.f280 ARPA
Vlan3
SW_arriba#
Configuración del switch:
SW_arriba#sh runn (lo mas relevante)
Building configuration...
Current configuration : 5171 bytes
!
! Last configuration change at 01:24:35 UTC Mon Mar 1 1993
!
version 12.2
!
hostname SW_arriba
!
system mtu routing 1500
ip routing
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
interface FastEthernet0/2
interface FastEthernet0/3
interface FastEthernet0/4
---resumido---
!
interface FastEthernet0/23
switchport
access vlan 2
switchport
mode access
!
interface FastEthernet0/24
switchport
access vlan 3
switchport
mode access
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip
address 192.168.1.1 255.255.255.0
!
interface Vlan2
ip
address 192.168.2.1 255.255.255.0
!
interface Vlan3
ip
address 192.168.3.1 255.255.255.0
!
ip http server
ip http secure-server
!
line con 0
line vty 0 4
password cisco
line vty 5 15
password cisco
login
!
end
SW_arriba#
(2014) Networking may be
insane
Rosario, Argentina