Páginas

jueves, 18 de marzo de 2021

VLANs Trunk Routing ROAS Cisco


1.- Permitir solo las vlan 1,10,20 en las interfaces Trunk
2.- Interfaz que conecta a Core 1 cambiar a GigabitEthernet 
2.- Eliminar las Vlans y direcciones IPs.
3.- Gig0/0 no shut
3.- En el router R1-NV implementar Router On A Stick (ROAS), trunking encapsulation dot1Q
4.- Comprobar conectividad

Escenario actual:


R1-NV#sh interfaces tr
R1-NV#sh interfaces trunk 
Port        Mode         Encapsulation  Status        Native vlan
Fa0/0/0     on           802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/0/0     1

Port        Vlans allowed and active in management domain
Fa0/0/0     1

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/0/0     1

R1-NV#sh ip inter
R1-NV#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     unassigned      YES manual administratively down down 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
GigabitEthernet0/2     193.37.255.2    YES DHCP   up                    up 
FastEthernet0/0/0      unassigned      YES unset  up                    up 
FastEthernet0/0/1      unassigned      YES unset  up                    down 
FastEthernet0/0/2      unassigned      YES unset  up                    down 
FastEthernet0/0/3      unassigned      YES unset  up                    down 
Serial0/1/0            unassigned      YES manual down                  down 
Serial0/1/1            unassigned      YES unset  down                  down 
Vlan1                  unassigned      YES unset  administratively down down 
Vlan10                 10.16.0.1       YES manual up                    up 
Vlan20                 10.16.2.1       YES manual up                    up 
Vlan30                 10.16.4.1       YES manual up                    up 
Vlan40                 10.16.6.1       YES manual up                    up
R1-NV#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1-NV(config)#inter
R1-NV(config)#no interface vlan 10
R1-NV(config)#
%LINK-5-CHANGED: Interface Vlan10, changed state to administratively down

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to down

R1-NV(config)#no interface vlan 20
R1-NV(config)#
%LINK-5-CHANGED: Interface Vlan20, changed state to administratively down

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to down

R1-NV(config)#no interface vlan 30
R1-NV(config)#
%LINK-5-CHANGED: Interface Vlan30, changed state to administratively down

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to down

R1-NV(config)#no interface vlan 40
R1-NV(config)#
%LINK-5-CHANGED: Interface Vlan40, changed state to administratively down

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan40, changed state to down

R1-NV(config)#do wri
Building configuration...
[OK]
R1-NV(config)#^Z
R1-NV#
%SYS-5-CONFIG_I: Configured from console by console

R1-NV#sh ip inter
R1-NV#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     unassigned      YES manual administratively down down 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
GigabitEthernet0/2     193.37.255.2    YES DHCP   up                    up 
FastEthernet0/0/0      unassigned      YES unset  up                    up 
FastEthernet0/0/1      unassigned      YES unset  up                    down 
FastEthernet0/0/2      unassigned      YES unset  up                    down 
FastEthernet0/0/3      unassigned      YES unset  up                    down 
Serial0/1/0            unassigned      YES manual down                  down 
Serial0/1/1            unassigned      YES unset  down                  down 
Vlan1                  unassigned      YES unset  administratively down down
R1-NV#

R1-NV#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1-NV(config)#inter
R1-NV(config)#interface g
R1-NV(config)#interface gigabitEthernet 0/0
R1-NV(config-if)#no shut

R1-NV(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up

R1-NV(config-if)#exit
R1-NV(config)#inter
R1-NV(config)#interface g
R1-NV(config)#interface gigabitEthernet 0/0.10
R1-NV(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.10, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.10, changed state to up

R1-NV(config-subif)#enca
R1-NV(config-subif)#encapsulation do
R1-NV(config-subif)#encapsulation dot1Q 10
R1-NV(config-subif)#ip add
R1-NV(config-subif)#ip address 10.16.0.1 255.255.255.0
R1-NV(config-subif)#exit
R1-NV(config)#interface gigabitEthernet 0/0.20
R1-NV(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.20, changed state to up

R1-NV(config-subif)#encapsulation dot1Q 20
R1-NV(config-subif)#ip address 10.16.2.1 255.255.255.0
R1-NV(config-subif)#exit
R1-NV(config)#do sh ip inter
R1-NV(config)#do sh ip inter b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     unassigned      YES manual up                    up 
GigabitEthernet0/0.10  10.16.0.1       YES manual up                    up 
GigabitEthernet0/0.20  10.16.2.1       YES manual up                    up 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
GigabitEthernet0/2     193.37.255.2    YES DHCP   up                    up 
FastEthernet0/0/0      unassigned      YES unset  up                    down 
FastEthernet0/0/1      unassigned      YES unset  up                    down 
FastEthernet0/0/2      unassigned      YES unset  up                    down 
FastEthernet0/0/3      unassigned      YES unset  up                    down 
Serial0/1/0            unassigned      YES manual down                  down 
Serial0/1/1            unassigned      YES unset  down                  down 
Vlan1                  unassigned      YES unset  administratively down down

R1-NV(config-if)#exit
R1-NV(config)#interface gigabitEthernet 0/0.10
R1-NV(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.10, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.10, changed state to up

R1-NV(config-subif)#encapsulation do
R1-NV(config-subif)#encapsulation dot1Q 10
R1-NV(config-subif)#ip add
R1-NV(config-subif)#ip address 10.16.0.1 255.255.255.0
R1-NV(config-subif)#exit
R1-NV(config)#interface gigabitEthernet 0/0.20
R1-NV(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.20, changed state to up

R1-NV(config-subif)#encapsulation dot1Q 20
R1-NV(config-subif)#ip address 10.16.2.1 255.255.255.0
R1-NV(config-subif)#exit
R1-NV(config)#do sh ip inter
R1-NV(config)#do sh ip inter b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     unassigned      YES manual up                    up 
GigabitEthernet0/0.10  10.16.0.1       YES manual up                    up 
GigabitEthernet0/0.20  10.16.2.1       YES manual up                    up 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
GigabitEthernet0/2     193.37.255.2    YES DHCP   up                    up 
FastEthernet0/0/0      unassigned      YES unset  up                    down 
FastEthernet0/0/1      unassigned      YES unset  up                    down 
FastEthernet0/0/2      unassigned      YES unset  up                    down 
FastEthernet0/0/3      unassigned      YES unset  up                    down 
Serial0/1/0            unassigned      YES manual down                  down 
Serial0/1/1            unassigned      YES unset  down                  down 
Vlan1                  unassigned      YES unset  administratively down down

Ping desde el router R1 hacia PC10

R1-NV#ping 10.16.0.10

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.16.0.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms

R1-NV#ping 10.16.2.10

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.16.2.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms

Comprobando conectividad:

R1-NV#

R1-NV#ping 10.16.0.10

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.16.0.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms

R1-NV#ping 10.16.2.10

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.16.2.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms

R1-NV#

Ping desde PC20 VLAN 20

C:\>ipconfig

FastEthernet0 Connection:(default port)

   Link-local IPv6 Address.........: FE80::201:63FF:FE51:CDBB
   IP Address......................: 10.16.2.10
   Subnet Mask.....................: 255.255.255.0
   Default Gateway.................: 10.16.2.1

C:\>ping 10.16.2.1

Pinging 10.16.2.1 with 32 bytes of data:

Reply from 10.16.2.1: bytes=32 time<1ms TTL=255
Reply from 10.16.2.1: bytes=32 time<1ms TTL=255
Reply from 10.16.2.1: bytes=32 time=3ms TTL=255
Reply from 10.16.2.1: bytes=32 time<1ms TTL=255

Ping statistics for 10.16.2.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 3ms, Average = 0ms

C:\>ping 10.16.0.10

Pinging 10.16.0.10 with 32 bytes of data:

Reply from 10.16.0.10: bytes=32 time<1ms TTL=127
Reply from 10.16.0.10: bytes=32 time=1ms TTL=127
Reply from 10.16.0.10: bytes=32 time<1ms TTL=127
Reply from 10.16.0.10: bytes=32 time<1ms TTL=127

Ping statistics for 10.16.0.10:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 1ms, Average = 0ms

C:\>tracert 10.16.0.10

Tracing route to 10.16.0.10 over a maximum of 30 hops: 

  1   0 ms      0 ms      0 ms      10.16.2.1
  2   0 ms      0 ms      0 ms      10.16.0.10

Trace complete.

C:\>

Ping desde PC10 VLAN 10



Cisco es genial!.

No hay comentarios:

Publicar un comentario