Páginas

sábado, 13 de marzo de 2021

IPv4 Subnetting Cisco

Red 67.83.0.0/21 y la tabla
Crear subredes en el orden programado

Optimizar el espacio de direcciones

No desperdiciar IPs

Comprobar ping y tracert entre PC-10, 

MA-PC1 y ZA-PC1










Desde         Hasta           VLAN

67.83.0.1 - 67.83.0.254      10 

67.83.1.1 - 67.83.1.254      20

67.83.2.1 - 67.83.2.254      30

67.83.3.1 - 67.83.3.126      40

67.83.3.129 - 67.83.3.190   --

67.83.3.193 - 67.83.3.254   --

67.83.4.1 - 67.83.4.6           --



Core1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core1(config)#vlan 10
Core1(config-vlan)#exit
Core1(config)#interface vlan 10
Core1(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up

Core1(config-if)#ip address 67.83.0.1 255.255.255.0
Core1(config-if)#exit
Core1(config)#vlan 20
Core1(config-vlan)#
Core1(config-vlan)#exit
Core1(config)#int
Core1(config)#interface vlan 20
Core1(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up
Core1(config-if)#ip address 67.83.1.1 255.255.255.0
Core1(config-if)#exit
Core1(config)#vlan 30
Core1(config-vlan)#
Core1(config-vlan)#exit
Core1(config)#inter
Core1(config)#interface vlan 30
Core1(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up

Core1(config-if)#ip address 67.83.2.1 255.255.255.0
Core1(config-if)#exit
Core1(config)#vlan 40
Core1(config-vlan)#exit
Core1(config)#inter
Core1(config)#interface vlan 40
Core1(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up
Core1(config-if)#ip address 67.83.3.1 255.255.255.128
Core1(config-if)#exit
Core1(config)#
Core1(config)#^Z
Core1#
%SYS-5-CONFIG_I: Configured from console by console

Core1#sh ip interface b

Interface IP-Address OK? Method Status Protocol 

GigabitEthernet1/0/1 unassigned YES unset up up 

GigabitEthernet1/0/2 unassigned YES unset up up 

GigabitEthernet1/0/3 unassigned YES unset down down 

GigabitEthernet1/0/4 unassigned YES unset down down 

GigabitEthernet1/0/5 unassigned YES unset down down 

GigabitEthernet1/0/6 unassigned YES unset down down 

GigabitEthernet1/0/7 unassigned YES unset down down 

GigabitEthernet1/0/8 unassigned YES unset down down 

GigabitEthernet1/0/9 unassigned YES unset down down 

GigabitEthernet1/0/10 unassigned YES unset down down 

GigabitEthernet1/0/11 unassigned YES unset down down 

GigabitEthernet1/0/12 unassigned YES unset down down 

GigabitEthernet1/0/13 unassigned YES unset down down 

GigabitEthernet1/0/14 unassigned YES unset up up 

GigabitEthernet1/0/15 unassigned YES unset up up 

GigabitEthernet1/0/16 unassigned YES unset down down 

GigabitEthernet1/0/17 unassigned YES unset down down 

GigabitEthernet1/0/18 unassigned YES unset down down 

GigabitEthernet1/0/19 unassigned YES unset down down 

GigabitEthernet1/0/20 unassigned YES unset down down 

GigabitEthernet1/0/21 unassigned YES unset down down 

GigabitEthernet1/0/22 unassigned YES unset down down 

GigabitEthernet1/0/23 unassigned YES unset down down 

GigabitEthernet1/0/24 unassigned YES unset down down 

GigabitEthernet1/1/1 unassigned YES unset down down 

GigabitEthernet1/1/2 unassigned YES unset down down 

GigabitEthernet1/1/3 unassigned YES unset down down 

GigabitEthernet1/1/4 unassigned YES unset down down 

Loopback0 11.11.11.11 YES manual up up 

Vlan1 unassigned YES unset administratively down down 

Vlan10 67.83.0.1 YES manual up up 

Vlan20 67.83.1.1 YES manual up up 

Vlan30 67.83.2.1 YES manual up up 

Vlan40 67.83.3.1 YES manual up up

Core1#


Core1#sh cdp neighbors 

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge

S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

Device ID Local Intrfce Holdtme Capability Platform Port ID

R1-NV Gig 1/0/1 157 R C2900 Gig 0/0

Core2 Gig 1/0/15 157 3650 Gig 1/0/15

Access Gig 1/0/2 120 S 2960 Fas 0/1

Core2 Gig 1/0/14 157 3650 Gig 1/0/14

Core1#


Core1#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Core1(config)#interface g

Core1(config)#interface gigabitEthernet 1/0/1

Core1(config-if)#sw

Core1(config-if)#switchport mode

Core1(config-if)#switchport mode access 

Core1(config-if)#switchport access

Core1(config-if)#switchport access vlan 40

Core1(config-if)#

Core1(config-if)#exit


Core1(config)#interface gigabitEthernet 1/0/2

Core1(config-if)#switchport trunk encapsulation dot1q 

Core1(config-if)#switchport mode trunk 

Core1(config-if)#switchport trunk allowed vlan 1,10,30,40

Core1(config-if)#exit

Core1(config)#interface gigabitEthernet 1/0/14

Core1(config-if)#switchport trunk encapsulation dot1q 

Core1(config-if)#switchport mode trunk 

Core1(config-if)#switchport trunk allowed vlan 1,10,30,40

Core1(config-if)#exit

Core1(config)#interface gigabitEthernet 1/0/15

Core1(config-if)#switchport trunk encapsulation dot1q 

Core1(config-if)#switchport mode trunk 

Core1(config-if)#switchport trunk allowed vlan 1,10,30,40

Core1(config-if)#


Core1#sh interfaces trunk 

Port Mode Encapsulation Status Native vlan

Gig1/0/2 on 802.1q trunking 1

Gig1/0/14 on 802.1q trunking 1

Gig1/0/15 on 802.1q trunking 1


Port Vlans allowed on trunk

Gig1/0/2 1,10,20,30,40

Gig1/0/14 1,10,20,30,40

Gig1/0/15 1,10,20,30,40


Port Vlans allowed and active in management domain

Gig1/0/2 1,10,20,30,40

Gig1/0/14 1,10,20,30,40

Gig1/0/15 1,10,20,30,40


Port Vlans in spanning tree forwarding state and not pruned

Gig1/0/2 1,10,20,30,40

Gig1/0/14 1,10,20,30,40

Gig1/0/15 none


Core1#wri
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]

Core1#sh vlan


VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Gig1/0/3, Gig1/0/4, Gig1/0/5, Gig1/0/6

Gig1/0/7, Gig1/0/8, Gig1/0/9, Gig1/0/10

Gig1/0/11, Gig1/0/12, Gig1/0/13, Gig1/0/16

Gig1/0/17, Gig1/0/18, Gig1/0/19, Gig1/0/20

Gig1/0/21, Gig1/0/22, Gig1/0/23, Gig1/0/24

Gig1/1/1, Gig1/1/2, Gig1/1/3, Gig1/1/4

10 VLAN10 active 

20 VLAN20 active 

30 VLAN30 active 

40 VLAN40 active Gig1/0/1

1002 fddi-default act/unsup 

1003 token-ring-default act/unsup 

1004 fddinet-default act/unsup 

1005 trnet-default act/unsup 


VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1 enet 100001 1500 - - - - - 0 0

10 enet 100010 1500 - - - - - 0 0

20 enet 100020 1500 - - - - - 0 0

30 enet 100030 1500 - - - - - 0 0

40 enet 100040 1500 - - - - - 0 0

1002 fddi 101002 1500 - - - - - 0 0 

1003 tr 101003 1500 - - - - - 0 0 

1004 fdnet 101004 1500 - - - ieee - 0 0 

1005 trnet 101005 1500 - - - ibm - 0 0 


VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------


Remote SPAN VLANs

------------------------------------------------------------------------------


Primary Secondary Type Ports

------- --------- ----------------- ------------------------------------------

Core1#




Core2#sh cdp ne
Core2#sh cdp neighbors 

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge

S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

Device ID Local Intrfce Holdtme Capability Platform Port ID

Core1 Gig 1/0/15 174 3650 Gig 1/0/15

Core1 Gig 1/0/14 174 3650 Gig 1/0/14

Access Gig 1/0/1 174 S 2960 Fas 0/4

Core2#


Core2#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Core2(config)#inter

Core2(config)#interface g

Core2(config)#interface gigabitEthernet 1/0/1

Core2(config-if)#switchport trunk encapsulation do

Core2(config-if)#switchport trunk encapsulation dot1q 

Core2(config-if)#switchport mode trunk 

Core2(config-if)#switchport trunk allowed vlan 1,10,20,30,40

Core2(config-if)#exit


Core2(config)#interface gigabitEthernet 1/0/14

Core2(config-if)#switchport trunk encapsulation dot1q 

Core2(config-if)#switchport mode trunk 

Core2(config-if)#switchport trunk allowed vlan 1,10,20,30,40

Core2(config-if)#exit


Core2(config)#interface gigabitEthernet 1/0/15

Core2(config-if)#switchport trunk encapsulation dot1q 

Core2(config-if)#switchport mode trunk 

Core2(config-if)#switchport trunk allowed vlan 1,10,20,30,40

Core2(config-if)#exit

Core2(config)#


Core2#sh interfaces trunk 

Port Mode Encapsulation Status Native vlan

Gig1/0/1 on 802.1q trunking 1

Gig1/0/14 on 802.1q trunking 1

Gig1/0/15 on 802.1q trunking 1


Port Vlans allowed on trunk

Gig1/0/1 1,10,20,30,40

Gig1/0/14 1,10,20,30,40

Gig1/0/15 1,10,20,30,40


Port Vlans allowed and active in management domain

Gig1/0/1 1,10,20,30,40

Gig1/0/14 1,10,20,30,40

Gig1/0/15 1,10,20,30,40


Port Vlans in spanning tree forwarding state and not pruned

Gig1/0/1 1,10,20,30,40

Gig1/0/14 1,10,20,30,40

Gig1/0/15 10,20,30


Core2#


Core2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core2(config)#vlan 10
Core2(config-vlan)#exit
Core2(config)#inter
Core2(config)#interface vlan 10
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up
Core2(config-if)#ip address 67.83.0.2 255.255.255.0
Core2(config-if)#exit
Core2(config)#vlan 20
Core2(config-vlan)#
Core2(config-vlan)#exit
Core2(config)#int
Core2(config)#interface vlan 20
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

Core2(config-if)#exit
Core2(config)#interface vlan 20
Core2(config-if)#ip address 67.83.1.2 255.255.255.0
Core2(config-if)#exit
Core2(config)#vlan 30
Core2(config-vlan)#
Core2(config-vlan)#exit
Core2(config)#inter
Core2(config)#interface vlan 30
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up

Core2(config-if)#ip address 67.83.2.2 255.255.255.0
Core2(config-if)#exit
Core2(config)#vlan 40
Core2(config-vlan)#exit
Core2(config)#inter
Core2(config)#interface vlan 40
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up
Core2(config-if)#ip address 67.83.3.2 255.255.255.128
Core2(config-if)#exit

Enter configuration commands, one per line. End with CNTL/Z.

Core2(config)#interface loo

Core2(config)#interface loopback 0

Core2(config-if)#ip add

Core2(config-if)#ip address 22.22.22.22 255.255.255.255

Core2(config)#^Z
Core2#
%SYS-5-CONFIG_I: Configured from console by console

Core2#wri
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]

Core2#sh ip interface b

Interface IP-Address OK? Method Status Protocol 

GigabitEthernet1/0/1 unassigned YES unset up up 

GigabitEthernet1/0/2 unassigned YES unset down down 

GigabitEthernet1/0/3 unassigned YES unset down down 

GigabitEthernet1/0/4 unassigned YES unset down down 

GigabitEthernet1/0/5 unassigned YES unset down down 

GigabitEthernet1/0/6 unassigned YES unset down down 

GigabitEthernet1/0/7 unassigned YES unset down down 

GigabitEthernet1/0/8 unassigned YES unset down down 

GigabitEthernet1/0/9 unassigned YES unset down down 

GigabitEthernet1/0/10 unassigned YES unset down down 

GigabitEthernet1/0/11 unassigned YES unset down down 

GigabitEthernet1/0/12 unassigned YES unset down down 

GigabitEthernet1/0/13 unassigned YES unset down down 

GigabitEthernet1/0/14 unassigned YES unset up up 

GigabitEthernet1/0/15 unassigned YES unset up up 

GigabitEthernet1/0/16 unassigned YES unset down down 

GigabitEthernet1/0/17 unassigned YES unset down down 

GigabitEthernet1/0/18 unassigned YES unset down down 

GigabitEthernet1/0/19 unassigned YES unset down down 

GigabitEthernet1/0/20 unassigned YES unset down down 

GigabitEthernet1/0/21 unassigned YES unset down down 

GigabitEthernet1/0/22 unassigned YES unset down down 

GigabitEthernet1/0/23 unassigned YES unset down down 

GigabitEthernet1/0/24 unassigned YES unset down down 

GigabitEthernet1/1/1 unassigned YES unset down down 

GigabitEthernet1/1/2 unassigned YES unset down down 

GigabitEthernet1/1/3 unassigned YES unset down down 

GigabitEthernet1/1/4 unassigned YES unset down down 

Loopback0 22.22.22.22 YES manual up up 

Vlan1 unassigned YES unset administratively down down 

Vlan10 67.83.0.2 YES manual up up 

Vlan20 67.83.1.2 YES manual up up 

Vlan30 67.83.2.2 YES manual up up 

Vlan40 67.83.3.2 YES manual up up

Core2#


Core2#sh vlan


VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Gig1/0/2, Gig1/0/3, Gig1/0/4, Gig1/0/5

Gig1/0/6, Gig1/0/7, Gig1/0/8, Gig1/0/9

Gig1/0/10, Gig1/0/11, Gig1/0/12, Gig1/0/13

Gig1/0/16, Gig1/0/17, Gig1/0/18, Gig1/0/19

Gig1/0/20, Gig1/0/21, Gig1/0/22, Gig1/0/23

Gig1/0/24, Gig1/1/1, Gig1/1/2, Gig1/1/3

Gig1/1/4

10 VLAN0010 active 

20 VLAN0020 active 

30 VLAN0030 active 

40 VLAN0040 active 

1002 fddi-default act/unsup 

1003 token-ring-default act/unsup 

1004 fddinet-default act/unsup 

1005 trnet-default act/unsup 


VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1 enet 100001 1500 - - - - - 0 0

10 enet 100010 1500 - - - - - 0 0

20 enet 100020 1500 - - - - - 0 0

30 enet 100030 1500 - - - - - 0 0

40 enet 100040 1500 - - - - - 0 0

1002 fddi 101002 1500 - - - - - 0 0 

1003 tr 101003 1500 - - - - - 0 0 

1004 fdnet 101004 1500 - - - ieee - 0 0 

1005 trnet 101005 1500 - - - ibm - 0 0 


VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------


Remote SPAN VLANs

------------------------------------------------------------------------------


Primary Secondary Type Ports

------- --------- ----------------- ------------------------------------------

Core2#



R1-NV#sh cdp neighbors 

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge

S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

Device ID Local Intrfce Holdtme Capability Platform Port ID

MAN Gig 0/1 152 S 2960 Fas 0/1

Core1 Fas 0/0/0 152 3650 Gig 1/0/1

R1-NV#


R1-NV(config-if)#

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

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

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

R1-NV#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R1-NV(config)#interface g

R1-NV(config)#interface gigabitEthernet 0/0

R1-NV(config-if)#ip add

R1-NV(config-if)#ip address 67.83.3.3 255.255.255.128

R1-NV(config-if)#no shut

R1-NV(config-if)#


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

R1-NV#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R1-NV(config)#inte

R1-NV(config)#interface loo

R1-NV(config)#interface loopback 0

R1-NV(config-if)#ip addr

R1-NV(config-if)#ip address 1.1.1.1 255.255.255.255


R1-NV(config-if)#do wri
Building configuration...
[OK]

R1-NV#sh ip interface b

Interface IP-Address OK? Method Status Protocol 

GigabitEthernet0/0 67.83.3.3 YES manual up up 

GigabitEthernet0/1 67.83.4.1 YES manual up up 

GigabitEthernet0/2 unassigned YES unset administratively down down 

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 

Loopback0 1.1.1.1 YES manual up up 

Vlan1 unassigned YES unset administratively down down

R1-NV#


R2-MA#sh cdp neighbors 

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge

S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

Device ID Local Intrfce Holdtme Capability Platform Port ID

MAN Gig 0/0 169 S 2960 Fas 0/2

SW-MA 


R2-MA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2-MA(config)#inter
R2-MA(config)#interface g
R2-MA(config)#interface gigabitEthernet 0/0
R2-MA(config-if)#ip add
R2-MA(config-if)#ip address 67.83.4.2 255.255.255.248
R2-MA(config-if)#no shut

R2-MA#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R2-MA(config)#inter

R2-MA(config)#interface loo

R2-MA(config)#interface loopback 0

R2-MA(config-if)#ip add

R2-MA(config-if)#ip address 2.2.2.2 255.255.255.255


R2-MA(config-if)#do sh ip inter b

Interface IP-Address OK? Method Status Protocol 

GigabitEthernet0/0 67.83.4.2 YES manual up up 

GigabitEthernet0/1 67.83.3.129 YES manual up up 

GigabitEthernet0/2 unassigned YES unset administratively down down 

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 

Loopback0 2.2.2.2 YES manual up up 

Vlan1 unassigned YES unset administratively down down

R2-MA(config-if)#


R2-MA#ping 67.83.4.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 67.83.4.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/2 ms


R2-MA#ping 67.83.4.3


Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 67.83.4.3, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/2 ms


R2-MA#

R2-MA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2-MA(config)#interface gigabitEthernet 0/1
R2-MA(config-if)#ip address 67.83.3.129 255.255.255.192
R2-MA(config-if)#no shut

R2-MA(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up

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

R2-MA(config-if)#do wri
Building configuration...
[OK]
R2-MA(config-if)#

R2-MA#sh ip interface b

Interface IP-Address OK? Method Status Protocol 

GigabitEthernet0/0 67.83.4.2 YES manual up up 

GigabitEthernet0/1 67.83.3.129 YES manual up up 

GigabitEthernet0/2 unassigned YES unset administratively down down 

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 

Loopback0 2.2.2.2 YES manual up up 

Vlan1 unassigned YES unset administratively down down

R2-MA#


R3-ZA#sh cdp neighbors 

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge

S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

Device ID Local Intrfce Holdtme Capability Platform Port ID

SW-ZA Gig 0/1 147 S 2960 Fas 0/1

MAN Gig 0/0 120 S 2960 Fas 0/3

R3-ZA#


R3-ZA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R3-ZA(config)#interface gigabitEthernet 0/1
R3-ZA(config-if)#ip address 67.83.3.193 255.255.255.192
R3-ZA(config-if)#no shut
R3-ZA(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up

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


R3-ZA#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R3-ZA(config)#inter

R3-ZA(config)#interface g

R3-ZA(config)#interface gigabitEthernet 0/0

R3-ZA(config-if)#ip add

R3-ZA(config-if)#ip address 67.83.4.3 255.255.255.248

R3-ZA(config-if)#no shut

R3-ZA(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


R3-ZA#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R3-ZA(config)#inter

R3-ZA(config)#interface lo

R3-ZA(config)#interface loopback 0

R3-ZA(config-if)#ip add

R3-ZA(config-if)#ip address 3.3.3.3 255.255.255.255


R3-ZA(config-if)#do wri
Building configuration...
[OK]
R3-ZA(config-if)#

R3-ZA#sh ip interface b

Interface IP-Address OK? Method Status Protocol 

GigabitEthernet0/0 67.83.4.3 YES manual up up 

GigabitEthernet0/1 67.83.3.193 YES manual up up 

GigabitEthernet0/2 unassigned YES unset administratively down down 

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 

Loopback0 3.3.3.3 YES manual up up 

Vlan1 unassigned YES unset administratively down down

R3-ZA#


R3-ZA(config-if)#do wri
Building configuration...
[OK]
R3-ZA(config-if)#


Access#sh cdp neighbors 

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge

S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

Device ID Local Intrfce Holdtme Capability Platform Port ID


Core1 Fas 0/1 122 3650 Gig 1/0/2

Core2 Fas 0/4 122 3650 Gig 1/0/1


Access#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Access(config)#inter

Access(config)#interface fa

Access(config)#interface fastEthernet 0/1

Access(config-if)#sw

Access(config-if)#switchport mode

Access(config-if)#switchport mode tr

Access(config-if)#switchport mode trunk 

Access(config-if)#sw

Access(config-if)#switchport tr

Access(config-if)#switchport trunk all

Access(config-if)#switchport trunk allowed vlan 1,10,20,30,40

Access(config-if)#exit

Access(config)#interface fastEthernet 0/4

Access(config-if)#switchport mode trunk 

Access(config-if)#switchport trunk allowed vlan 1,10,20,30,40

Access(config-if)#sw

Access(config-if)#switchport none

Access(config-if)#switchport nonegotiate 

Access(config-if)#exit

Access(config)#interface fastEthernet 0/1

Access(config-if)#sw

Access(config-if)#switchport none

Access(config-if)#switchport nonegotiate 

Access(config-if)#exit

Access(config)#inter

Access(config)#interface fa

Access(config)#interface fastEthernet 0/2

Access(config-if)#sw

Access(config-if)#switchport mode acc

Access(config-if)#switchport mode access 

Access(config-if)#sw

Access(config-if)#switchport acc

Access(config-if)#switchport access vlan 10

Access(config-if)#exit

Access(config)#interface fastEthernet 0/3

Access(config-if)#switchport mode access 

Access(config-if)#switchport access vlan 20

Access(config-if)#


Access#sh interfaces trunk 
Port        Mode         Encapsulation  Status        Native vlan
Fa0/1       on           802.1q         trunking      1
Fa0/4       on           802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/1       1,10,20,30,40
Fa0/4       1,10,20,30,40

Port        Vlans allowed and active in management domain
Fa0/1       1,10,20,30,40
Fa0/4       1,10,20,30,40

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/1       1,40
Fa0/4       10,20,30

Access#

Access#sh interfaces trunk 

Port Mode Encapsulation Status Native vlan

Fa0/1 on 802.1q trunking 1

Fa0/4 on 802.1q trunking 1


Port Vlans allowed on trunk

Fa0/1 1,10,20,30,40

Fa0/4 1,10,20,30,40


Port Vlans allowed and active in management domain

Fa0/1 1,10,20,30,40

Fa0/4 1,10,20,30,40


Port Vlans in spanning tree forwarding state and not pruned

Fa0/1 1,40

Fa0/4 10,20,30


Access#sh vlan


VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/5, Fa0/6, Fa0/7, Fa0/8

Fa0/9, Fa0/10, Fa0/11, Fa0/12

Fa0/13, Fa0/14, Fa0/15, Fa0/16

Fa0/17, Fa0/18, Fa0/19, Fa0/20

Fa0/21, Fa0/22, Fa0/23, Fa0/24

Gig0/1, Gig0/2

10 VLAN10 active Fa0/2

20 VLAN20 active Fa0/3

30 VLAN30 active 

40 VLAN40 active 

1002 fddi-default act/unsup 

1003 token-ring-default act/unsup 

1004 fddinet-default act/unsup 

1005 trnet-default act/unsup 


VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1 enet 100001 1500 - - - - - 0 0

10 enet 100010 1500 - - - - - 0 0

20 enet 100020 1500 - - - - - 0 0

30 enet 100030 1500 - - - - - 0 0

40 enet 100040 1500 - - - - - 0 0

1002 fddi 101002 1500 - - - - - 0 0 

1003 tr 101003 1500 - - - - - 0 0 

1004 fdnet 101004 1500 - - - ieee - 0 0 

1005 trnet 101005 1500 - - - ibm - 0 0 


VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------


Remote SPAN VLANs

------------------------------------------------------------------------------


Primary Secondary Type Ports

------- --------- ----------------- ------------------------------------------

Access#


Implementando OSPF

Core1(config)#router ospf 1
Core1(config-router)#net
Core1(config-router)#network 11.11.11.11 0.0.0.0 area 0
Core1(config-router)#net
Core1(config-router)#network 67.83.0.0 0.0.0.255 area 0
Core1(config-router)#network 67.83.1.0 0.0.0.255 area 0
Core1(config-router)#network 67.83.2.0 0.0.0.255 area 0
Core1(config-router)#network 67.83.3.0 0.0.0.127 area 0
Core1(config-router)#do wri
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]

Core1#sh ip route

Codes: C - connected, S - static, I - IGRP, 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, E - EGP

i - IS-IS, 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


Gateway of last resort is not set


1.0.0.0/32 is subnetted, 1 subnets

O 1.1.1.1 [110/2] via 67.83.3.3, 01:58:21, Vlan40

2.0.0.0/32 is subnetted, 1 subnets

O 2.2.2.2 [110/3] via 67.83.3.3, 01:58:21, Vlan40

11.0.0.0/32 is subnetted, 1 subnets

C 11.11.11.11 is directly connected, Loopback0

22.0.0.0/32 is subnetted, 1 subnets

O 22.22.22.22 [110/2] via 67.83.0.2, 00:45:46, Vlan10

[110/2] via 67.83.2.2, 00:45:46, Vlan30

[110/2] via 67.83.3.2, 00:45:46, Vlan40

67.0.0.0/8 is variably subnetted, 6 subnets, 4 masks

C 67.83.0.0/24 is directly connected, Vlan10

C 67.83.1.0/24 is directly connected, Vlan20

C 67.83.2.0/24 is directly connected, Vlan30

C 67.83.3.0/25 is directly connected, Vlan40

O 67.83.3.128/26 [110/3] via 67.83.3.3, 01:58:21, Vlan40

O 67.83.4.0/29 [110/2] via 67.83.3.3, 00:09:49, Vlan40


Core1#


Core2(config)#route ospf 1
Core2(config-router)#netw
Core2(config-router)#network 22.22.22.22 0.0.0.0 area 0
Core2(config-router)#netw
Core2(config-router)#network 67.83.0.0 0.0.0.255 area 0
Core2(config-router)#network 67.83.1.0 0.0.0.255 area 0
Core2(config-router)#network 67.83.2.0 0.0.0.255 area 0
Core2(config-router)#network 67.83.3.0 0.0.0.127 area 0
08:18:45: %OSPF-5-ADJCHG: Process 1, Nbr 11.11.11.11 on Vlan10 from LOADING to FULL, Loading Done

Core1#sh ip route

Codes: C - connected, S - static, I - IGRP, 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, E - EGP

i - IS-IS, 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


Gateway of last resort is not set


1.0.0.0/32 is subnetted, 1 subnets

O 1.1.1.1 [110/2] via 67.83.3.3, 00:00:21, Vlan40

2.0.0.0/32 is subnetted, 1 subnets

O 2.2.2.2 [110/3] via 67.83.3.3, 00:00:21, Vlan40

3.0.0.0/32 is subnetted, 1 subnets

O 3.3.3.3 [110/3] via 67.83.3.3, 00:00:21, Vlan40

11.0.0.0/32 is subnetted, 1 subnets

C 11.11.11.11 is directly connected, Loopback0

22.0.0.0/32 is subnetted, 1 subnets

O 22.22.22.22 [110/2] via 67.83.0.2, 01:01:09, Vlan10

[110/2] via 67.83.1.2, 01:01:09, Vlan20

[110/2] via 67.83.2.2, 01:01:09, Vlan30

[110/2] via 67.83.3.2, 01:01:09, Vlan40

67.0.0.0/8 is variably subnetted, 7 subnets, 4 masks

C 67.83.0.0/24 is directly connected, Vlan10

C 67.83.1.0/24 is directly connected, Vlan20

C 67.83.2.0/24 is directly connected, Vlan30

C 67.83.3.0/25 is directly connected, Vlan40

O 67.83.3.128/26 [110/3] via 67.83.3.3, 00:00:21, Vlan40

O 67.83.3.192/26 [110/3] via 67.83.3.3, 00:00:21, Vlan40

O 67.83.4.0/29 [110/2] via 67.83.3.3, 00:00:21, Vlan40


Core1#


Core1#sh ip ospf neighbor 

Neighbor ID Pri State Dead Time Address Interface

22.22.22.22 1 FULL/DR 00:00:31 67.83.0.2 Vlan10

22.22.22.22 1 FULL/DR 00:00:31 67.83.1.2 Vlan20

22.22.22.22 1 FULL/DR 00:00:31 67.83.2.2 Vlan30

22.22.22.22 1 FULL/DR 00:00:31 67.83.3.2 Vlan40

1.1.1.1 1 FULL/DROTHER 00:00:31 67.83.3.3 Vlan40

Core1#


Core2(config-router)#network 67.83.2.0 0.0.0.255 area 0
08:18:52: %OSPF-5-ADJCHG: Process 1, Nbr 11.11.11.11 on Vlan20 from LOADING to FULL, Loading Done

Core2(config-router)#network 67.83.2.0 0.0.0.255 area 0
08:18:55: %OSPF-5-ADJCHG: Process 1, Nbr 11.11.11.11 on Vlan30 from LOADING to FULL, Loading Done

Core2(config-router)#do wri
Building configuration...

Core1#sh ip protocols 

Routing Protocol is "ospf 1"

Outgoing update filter list for all interfaces is not set 

Incoming update filter list for all interfaces is not set 

Router ID 11.11.11.11

Number of areas in this router is 1. 1 normal 0 stub 0 nssa

Maximum path: 4

Routing for Networks:

11.11.11.11 0.0.0.0 area 0

67.83.0.0 0.0.0.255 area 0

67.83.1.0 0.0.0.255 area 0

67.83.2.0 0.0.0.255 area 0

67.83.3.0 0.0.0.127 area 0

Routing Information Sources: 

Gateway Distance Last Update 

1.1.1.1 110 00:04:38

2.2.2.2 110 00:04:49

3.3.3.3 110 00:04:49

11.11.11.11 110 00:04:48

22.22.22.22 110 00:04:48

Distance: (default is 110)


Core1#



Core2#sh ip route 

Codes: C - connected, S - static, I - IGRP, 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, E - EGP

i - IS-IS, 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


Gateway of last resort is not set


1.0.0.0/32 is subnetted, 1 subnets

O 1.1.1.1 [110/2] via 67.83.3.3, 00:01:39, Vlan40

2.0.0.0/32 is subnetted, 1 subnets

O 2.2.2.2 [110/3] via 67.83.3.3, 00:01:39, Vlan40

3.0.0.0/32 is subnetted, 1 subnets

O 3.3.3.3 [110/3] via 67.83.3.3, 00:01:39, Vlan40

11.0.0.0/32 is subnetted, 1 subnets

O 11.11.11.11 [110/2] via 67.83.0.1, 01:02:18, Vlan10

[110/2] via 67.83.1.1, 01:02:18, Vlan20

[110/2] via 67.83.2.1, 01:02:18, Vlan30

[110/2] via 67.83.3.1, 01:02:18, Vlan40

22.0.0.0/32 is subnetted, 1 subnets

C 22.22.22.22 is directly connected, Loopback0

67.0.0.0/8 is variably subnetted, 7 subnets, 4 masks

C 67.83.0.0/24 is directly connected, Vlan10

C 67.83.1.0/24 is directly connected, Vlan20

C 67.83.2.0/24 is directly connected, Vlan30

C 67.83.3.0/25 is directly connected, Vlan40

O 67.83.3.128/26 [110/3] via 67.83.3.3, 00:01:39, Vlan40

O 67.83.3.192/26 [110/3] via 67.83.3.3, 00:01:39, Vlan40

O 67.83.4.0/29 [110/2] via 67.83.3.3, 00:01:39, Vlan40


Core2#


Core2#sh ip ospf neighbor 


Neighbor ID Pri State Dead Time Address Interface

11.11.11.11 1 FULL/BDR 00:00:38 67.83.0.1 Vlan10

11.11.11.11 1 FULL/BDR 00:00:39 67.83.2.1 Vlan30

11.11.11.11 1 FULL/BDR 00:00:39 67.83.3.1 Vlan40

1.1.1.1 1 FULL/DROTHER 00:00:39 67.83.3.3 Vlan40

Core2#


Core2#sh ip protocols 


Routing Protocol is "ospf 1"

Outgoing update filter list for all interfaces is not set 

Incoming update filter list for all interfaces is not set 

Router ID 22.22.22.22

Number of areas in this router is 1. 1 normal 0 stub 0 nssa

Maximum path: 4

Routing for Networks:

22.22.22.22 0.0.0.0 area 0

67.83.0.0 0.0.0.255 area 0

67.83.1.0 0.0.0.255 area 0

67.83.2.0 0.0.0.255 area 0

67.83.3.0 0.0.0.127 area 0

Routing Information Sources: 

Gateway Distance Last Update 

1.1.1.1 110 00:05:25

2.2.2.2 110 00:05:34

3.3.3.3 110 00:05:34

11.11.11.11 110 00:05:35

22.22.22.22 110 00:05:34

Distance: (default is 110)


Core2#



R1-NV(config)#router ospf 1
R1-NV(config-router)#network 67.83.4.0 0.0.0.7 area 0
R1-NV(config-router)#
07:59:00: %OSPF-6-AREACHG: 67.83.4.0/0 changed from area 1 to area 0

R1-NV(config-router)#network 67.83.4.0 0.0.0.7 area 0
R1-NV(config-router)#net
R1-NV(config-router)#network 67.83.0.0 0.0.0.255 area 0
R1-NV(config-router)#
08:00:22: %OSPF-6-AREACHG: 67.83.0.0/0 changed from area 1 to area 0

R1-NV(config-router)#network 67.83.1.0 0.0.0.255 area 0
R1-NV(config-router)#
08:00:30: %OSPF-6-AREACHG: 67.83.1.0/0 changed from area 1 to area 0

R1-NV(config-router)#network 67.83.2.0 0.0.0.255 area 0
R1-NV(config-router)#
08:00:35: %OSPF-6-AREACHG: 67.83.2.0/0 changed from area 1 to area 0

R1-NV(config-router)#network 67.83.3.0 0.0.0.127 area 0
R1-NV(config-router)#
08:01:09: %OSPF-5-ADJCHG: Process 1, Nbr 11.11.11.11 on Vlan40 from LOADING to FULL, Loading Done

R1-NV(config-router)#network 1.1.1.1 0.0.0.0 area 0

R1-NV(config-router)#^Z
R1-NV#
%SYS-5-CONFIG_I: Configured from console by console

R1-NV#w
08:01:14: %OSPF-5-ADJCHG: Process 1, Nbr 22.22.22.22 on Vlan40 from LOADING to FULL, Loading Done
ri
Building configuration...
[OK]

R1-NV#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, E - EGP

i - IS-IS, 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


Gateway of last resort is not set


1.0.0.0/32 is subnetted, 1 subnets

C 1.1.1.1/32 is directly connected, Loopback0

2.0.0.0/32 is subnetted, 1 subnets

O 2.2.2.2/32 [110/2] via 67.83.4.2, 02:01:17, GigabitEthernet0/1

11.0.0.0/32 is subnetted, 1 subnets

O 11.11.11.11/32 [110/2] via 67.83.3.1, 02:01:17, Vlan40

22.0.0.0/32 is subnetted, 1 subnets

O 22.22.22.22/32 [110/2] via 67.83.3.2, 00:18:18, Vlan40

67.0.0.0/8 is variably subnetted, 8 subnets, 5 masks

O 67.83.0.0/24 [110/2] via 67.83.3.1, 00:18:18, Vlan40

[110/2] via 67.83.3.2, 00:18:18, Vlan40

O 67.83.1.0/24 [110/2] via 67.83.3.1, 00:18:18, Vlan40

[110/2] via 67.83.3.2, 00:18:18, Vlan40

O 67.83.2.0/24 [110/2] via 67.83.3.1, 00:18:18, Vlan40

[110/2] via 67.83.3.2, 00:18:18, Vlan40

C 67.83.3.0/25 is directly connected, Vlan40

L 67.83.3.3/32 is directly connected, Vlan40

O 67.83.3.128/26 [110/2] via 67.83.4.2, 02:01:17, GigabitEthernet0/1

C 67.83.4.0/29 is directly connected, GigabitEthernet0/1

L 67.83.4.1/32 is directly connected, GigabitEthernet0/1


R1-NV#sh ip ospf neighbor 


Neighbor ID Pri State Dead Time Address Interface

11.11.11.11 1 FULL/BDR 00:00:38 67.83.3.1 GigabitEthernet0/0

22.22.22.22 1 FULL/DROTHER 00:00:38 67.83.3.2 GigabitEthernet0/0

3.3.3.3 1 FULL/DR 00:00:38 67.83.4.3 GigabitEthernet0/1

2.2.2.2 1 FULL/BDR 00:00:38 67.83.4.2 GigabitEthernet0/1

R1-NV#


R1-NV#sh ip protocols 


Routing Protocol is "ospf 1"

Outgoing update filter list for all interfaces is not set 

Incoming update filter list for all interfaces is not set 

Router ID 1.1.1.1

Number of areas in this router is 1. 1 normal 0 stub 0 nssa

Maximum path: 4

Routing for Networks:

67.83.4.0 0.0.0.7 area 0

1.1.1.1 0.0.0.0 area 0

67.83.3.0 0.0.0.127 area 0

0.0.0.0 255.255.255.255 area 0

Routing Information Sources: 

Gateway Distance Last Update 

1.1.1.1 110 00:00:27

2.2.2.2 110 00:00:28

3.3.3.3 110 00:00:28

11.11.11.11 110 00:00:27

22.22.22.22 110 00:00:27

Distance: (default is 110)


R1-NV#



R2-MA(config)#router ospf 1
R2-MA(config-router)#net
R2-MA(config-router)#network 67.83.3.128 0.0.0.63 area 0
R2-MA(config-router)#net
R2-MA(config-router)#network 2.2.2.2 0.0.0.0 area 0
R2-MA(config-router)#netw
R2-MA(config-router)#network 67.83.4.0 0.0.0.7 area 0
R2-MA(config-router)#^Z
R2-MA#
%SYS-5-CONFIG_I: Configured from console by console

R2-MA#wri
Building configuration...
[OK]
R2-MA#sh ip r
08:03:59: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on GigabitEthernet0/0 from LOADING to FULL, Loading Done

R2-MA#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, E - EGP

i - IS-IS, 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


Gateway of last resort is not set


1.0.0.0/32 is subnetted, 1 subnets

O 1.1.1.1/32 [110/2] via 67.83.4.1, 04:02:59, GigabitEthernet0/0

2.0.0.0/32 is subnetted, 1 subnets

C 2.2.2.2/32 is directly connected, Loopback0

3.0.0.0/32 is subnetted, 1 subnets

O 3.3.3.3/32 [110/2] via 67.83.4.3, 00:13:14, GigabitEthernet0/0

11.0.0.0/32 is subnetted, 1 subnets

O 11.11.11.11/32 [110/3] via 67.83.4.1, 01:54:58, GigabitEthernet0/0

22.0.0.0/32 is subnetted, 1 subnets

O 22.22.22.22/32 [110/3] via 67.83.4.1, 00:18:58, GigabitEthernet0/0

67.0.0.0/8 is variably subnetted, 9 subnets, 5 masks

O 67.83.0.0/24 [110/3] via 67.83.4.1, 01:54:58, GigabitEthernet0/0

O 67.83.1.0/24 [110/3] via 67.83.4.1, 01:32:17, GigabitEthernet0/0

O 67.83.2.0/24 [110/3] via 67.83.4.1, 01:54:58, GigabitEthernet0/0

O 67.83.3.0/25 [110/2] via 67.83.4.1, 01:54:58, GigabitEthernet0/0

C 67.83.3.128/26 is directly connected, GigabitEthernet0/1

L 67.83.3.129/32 is directly connected, GigabitEthernet0/1

O 67.83.3.192/26 [110/2] via 67.83.4.3, 00:13:14, GigabitEthernet0/0

C 67.83.4.0/29 is directly connected, GigabitEthernet0/0

L 67.83.4.2/32 is directly connected, GigabitEthernet0/0


R2-MA#sh ip ospf neighbor 

Neighbor ID Pri State Dead Time Address Interface

1.1.1.1 1 FULL/DROTHER 00:00:32 67.83.4.1 GigabitEthernet0/0

3.3.3.3 1 FULL/DR 00:00:32 67.83.4.3 GigabitEthernet0/0

R2-MA#


R2-MA# sh ip protocols 


Routing Protocol is "ospf 1"

Outgoing update filter list for all interfaces is not set 

Incoming update filter list for all interfaces is not set 

Router ID 2.2.2.2

Number of areas in this router is 2. 2 normal 0 stub 0 nssa

Maximum path: 4

Routing for Networks:

67.83.4.0 0.0.0.7 area 0

67.83.3.128 0.0.0.63 area 0

2.2.2.2 0.0.0.0 area 0

0.0.0.0 255.255.255.255 area 1

Routing Information Sources: 

Gateway Distance Last Update 

1.1.1.1 110 00:01:53

2.2.2.2 110 00:02:48

3.3.3.3 110 00:02:04

11.11.11.11 110 00:02:03

22.22.22.22 110 00:02:03

Distance: (default is 110)


R2-MA#



R3-ZA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R3-ZA(config)#router ospf 1
R3-ZA(config-router)#net
R3-ZA(config-router)#network 3.3.3.3 0.0.0.0 area 0
R3-ZA(config-router)#network 67.83.3.192 0.0.0.63 area 0
R3-ZA(config-router)#network 67.83.4.0 0.0.0.7 area 0
R3-ZA(config-router)#^Z
R3-ZA#
%SYS-5-CONFIG_I: Configured from console by console

R3-ZA#wri
Building configuration...
[OK]
R3-ZA#
08:06:53: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on GigabitEthernet0/0 from LOADING to FULL, Loading Done

08:06:53: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on GigabitEthernet0/0 from LOADING to FULL, Loading Done

R3-ZA#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, E - EGP

i - IS-IS, 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


Gateway of last resort is not set


1.0.0.0/32 is subnetted, 1 subnets

O 1.1.1.1/32 [110/2] via 67.83.4.1, 00:04:23, GigabitEthernet0/0

2.0.0.0/32 is subnetted, 1 subnets

O 2.2.2.2/32 [110/2] via 67.83.4.2, 00:04:23, GigabitEthernet0/0

3.0.0.0/32 is subnetted, 1 subnets

C 3.3.3.3/32 is directly connected, Loopback0

11.0.0.0/32 is subnetted, 1 subnets

O 11.11.11.11/32 [110/3] via 67.83.4.1, 00:04:23, GigabitEthernet0/0

22.0.0.0/32 is subnetted, 1 subnets

O 22.22.22.22/32 [110/3] via 67.83.4.1, 00:04:23, GigabitEthernet0/0

67.0.0.0/8 is variably subnetted, 9 subnets, 5 masks

O 67.83.0.0/24 [110/3] via 67.83.4.1, 00:04:23, GigabitEthernet0/0

O 67.83.1.0/24 [110/3] via 67.83.4.1, 00:04:23, GigabitEthernet0/0

O 67.83.2.0/24 [110/3] via 67.83.4.1, 00:04:23, GigabitEthernet0/0

O 67.83.3.0/25 [110/2] via 67.83.4.1, 00:04:23, GigabitEthernet0/0

O 67.83.3.128/26 [110/2] via 67.83.4.2, 00:04:23, GigabitEthernet0/0

C 67.83.3.192/26 is directly connected, GigabitEthernet0/1

L 67.83.3.193/32 is directly connected, GigabitEthernet0/1

C 67.83.4.0/29 is directly connected, GigabitEthernet0/0

L 67.83.4.3/32 is directly connected, GigabitEthernet0/0


R3-ZA#sh ip ospf neighbor 


Neighbor ID Pri State Dead Time Address Interface

1.1.1.1 1 FULL/DROTHER 00:00:34 67.83.4.1 GigabitEthernet0/0

2.2.2.2 1 FULL/BDR 00:00:34 67.83.4.2 GigabitEthernet0/0

R3-ZA#


R3-ZA#sh ip protocols 


Routing Protocol is "ospf 1"

Outgoing update filter list for all interfaces is not set 

Incoming update filter list for all interfaces is not set 

Router ID 3.3.3.3

Number of areas in this router is 1. 1 normal 0 stub 0 nssa

Maximum path: 4

Routing for Networks:

3.3.3.3 0.0.0.0 area 0

67.83.4.0 0.0.0.7 area 0

67.83.3.192 0.0.0.63 area 0

Routing Information Sources: 

Gateway Distance Last Update 

1.1.1.1 110 00:06:21

2.2.2.2 110 00:06:32

3.3.3.3 110 00:06:32

11.11.11.11 110 00:06:31

22.22.22.22 110 00:06:31

Distance: (default is 110)


R3-ZA#


Comprobando conectividad:








C:\>ipconfig

FastEthernet0 Connection:(default port)


Link-local IPv6 Address.........: FE80::260:3EFF:FE42:38D

IP Address......................: 67.83.0.10

Subnet Mask.....................: 255.255.255.0

Default Gateway.................: 67.83.0.1



C:\>ping 67.83.3.130


Pinging 67.83.3.130 with 32 bytes of data:


Reply from 67.83.3.130: bytes=32 time<1ms TTL=125

Reply from 67.83.3.130: bytes=32 time=1ms TTL=125

Reply from 67.83.3.130: bytes=32 time=12ms TTL=125

Reply from 67.83.3.130: bytes=32 time=12ms TTL=125


Ping statistics for 67.83.3.130:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 12ms, Average = 6ms


C:\>tracert 67.83.3.130


Tracing route to 67.83.3.130 over a maximum of 30 hops: 


1 1 ms 0 ms 0 ms 67.83.0.2

2 0 ms 0 ms 1 ms 67.83.3.3

3 1 ms 0 ms 1 ms 67.83.4.2

4 10 ms 12 ms 11 ms 67.83.3.130


Trace complete.


C:\>ping 67.83.3.200


Pinging 67.83.3.200 with 32 bytes of data:


Reply from 67.83.3.200: bytes=32 time=11ms TTL=125

Reply from 67.83.3.200: bytes=32 time=12ms TTL=125

Reply from 67.83.3.200: bytes=32 time<1ms TTL=125

Reply from 67.83.3.200: bytes=32 time<1ms TTL=125


Ping statistics for 67.83.3.200:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 12ms, Average = 5ms


C:\>tracert 67.83.3.200


Tracing route to 67.83.3.200 over a maximum of 30 hops: 


1 4 ms 0 ms 1 ms 67.83.0.2

2 0 ms 1 ms 1 ms 67.83.3.3

3 0 ms 1 ms 0 ms 67.83.4.3

4 0 ms 9 ms 1 ms 67.83.3.200


Trace complete.


C:\>

C:\>ipconfig


FastEthernet0 Connection:(default port)


Link-local IPv6 Address.........: FE80::2E0:F7FF:FE0C:B2C9

IP Address......................: 67.83.3.130

Subnet Mask.....................: 255.255.255.192

Default Gateway.................: 67.83.3.129


C:\>ping 67.83.0.10


Pinging 67.83.0.10 with 32 bytes of data:


Reply from 67.83.0.10: bytes=32 time=11ms TTL=125

Reply from 67.83.0.10: bytes=32 time=12ms TTL=125

Reply from 67.83.0.10: bytes=32 time=10ms TTL=125

Reply from 67.83.0.10: bytes=32 time=11ms TTL=125


Ping statistics for 67.83.0.10:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 10ms, Maximum = 12ms, Average = 11ms


C:\>

C:\>ipconfig


FastEthernet0 Connection:(default port)


Link-local IPv6 Address.........: FE80::2D0:BCFF:FE4B:A292

IP Address......................: 67.83.3.200

Subnet Mask.....................: 255.255.255.192

Default Gateway.................: 67.83.3.193


C:\>tracert 67.83.0.10


Tracing route to 67.83.0.10 over a maximum of 30 hops: 


1 0 ms 0 ms 0 ms 67.83.3.193

2 0 ms 0 ms 0 ms 67.83.4.1

3 0 ms 1 ms 12 ms 67.83.3.2

4 12 ms 0 ms 11 ms 67.83.0.10


Trace complete.


C:\>


Cisco es genial!.

sábado, 27 de febrero de 2021

Configurar VLAN Trunks y Routing Cisco

Packet Tracer 7


1.- En todos los Switches de Valencia, configurar Trunk utilizando trunk encapsulation, y asegúrese de que el trunk no se convierta dinámicamente en un puerto de acceso.

2.- Crear VLANs 10 (STATIC) 10.16.0.0/24, 20 (VoIP) 10.16.2.0/24, 30 (PUBLIC) 10.16.4.0/23, 40 (CLIENT) 10.16.6.0/23 en todos los Switches manualmente o utilizando VTP.

3.- Limitar todos los Trunks para llevar sólo VLANs 1, 10, 20.

4.- Configurar R1-AS como un Router on a Stick (ROAS) que proporcione enrutamiento entre clientes en VLAN 10 y VLAN 20.

Configuración inicial

R1#wrt
Translating "wit"...domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address

Si no necesita tener un servidor DNS configurado para su router, utilice el comando no ip domain-lookup para deshabilitar el proceso de traducción de DNS:

Enter configuration commands, one per line.  End with CNTL/Z.
RT01-VA(config)#no ip domain-lookup 
RT01-VA(config)#do wri
Building configuration...
[OK]
RT01-VA(config)#

MAN#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
MAN(config)#no ip domain-lookup
MAN(config)#do wri
Building configuration...
[OK]
MAN(config)#

RT02-BCN#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
RT02-BCN(config)#no ip domain-lookup 
RT02-BCN(config)#do wri
Building configuration...
[OK]

TR03-ZA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
TR03-ZA(config)#no ip domain-lookup 
TR03-ZA(config)#do wri

Core2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core2(config)#no ip domain-lookup 
Core2(config)#do wri

Core1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core1(config)#no ip domain-l
Core1(config)#no ip domain-lookup 
Core1(config)#do wri

Access#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Access(config)#no ip domain-l
Access(config)#no ip domain-lookup 
Access(config)#do wri

En todos los Switches de Valencia, configurar Trunk utilizando trunk encapsulation, y asegúrese de que el trunk no se convierta dinámicamente en un puerto de acceso.

Core1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core1(config)#interface gigabitEthernet 1/0/1
Core1(config-if)#switchport trunk encapsulation dot1q 
Core1(config-if)#switchport mode trunk 

Core1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to down

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

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

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

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

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

Core1(config-if)#exit
Core1(config)#interface gigabitEthernet 1/0/2
Core1(config-if)#switchport trunk encapsulation dot1q 
Core1(config-if)#switchport mode trunk 

Core1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/2, changed state to down

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

Core1(config-if)#exit
Core1(config)#sw
Core1(config)#inter
Core1(config)#interface g
Core1(config)#interface gigabitEthernet 1/0/23
Core1(config-if)#switchport trunk encapsulation dot1q 
Core1(config-if)#switchport mode trunk 

Core1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/23, changed state to down

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

Core1(config-if)#exit
Core1(config)#interface gigabitEthernet 1/0/24
Core1(config-if)#switchport trunk encapsulation dot1q 
Core1(config-if)#switchport mode trunk 

Core1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/24, changed state to down

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

Core1(config-if)#do wri
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]
Core1(config-if)#

Core2(config)#inter
Core2(config)#interface g
Core2(config)#interface gigabitEthernet 1/0/1
Core2(config-if)#switchport trunk encapsulation dot1q 
Core2(config-if)#switchport mode trunk 

Core2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to down

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

Core2(config-if)#exit
Core2(config)#interface gigabitEthernet 1/0/23
Core2(config-if)#switchport trunk encapsulation dot1q 
Core2(config-if)#switchport mode trunk 
Core2(config-if)#exit
Core2(config)#interface gigabitEthernet 1/0/24
Core2(config-if)#switchport trunk encapsulation dot1q 
Core2(config-if)#switchport mode trunk 
Core2(config-if)#exit
Core2(config)#do wri
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]
Core2(config)#

Access#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Access(config)#inter
Access(config)#interface fa
Access(config)#interface fastEthernet 0/1
Access(config-if)#sw
Access(config-if)#switchport mode
Access(config-if)#switchport mode tr
Access(config-if)#switchport mode trunk 
Access(config-if)#exit
Access(config)#interface fastEthernet 0/2
Access(config-if)#switchport mode trunk 

Crear las VLANs en los Switches: Core1, Core2 y Access:

Core1(config)#vlan 10
Core1(config-vlan)#name STATIC
Core1(config-vlan)#exit
Core1(config)#vlan 20
Core1(config-vlan)#name VoIP
Core1(config-vlan)#exit
Core1(config)#vlan 30
Core1(config-vlan)#name PUBLIC
Core1(config-vlan)#exit
Core1(config)#vlan 40 
Core1(config-vlan)#name CLIENT
Core1(config-vlan)#exit
Core1(config)#inter
Core1(config)#interface vlan 10
Core1(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up

Core1(config-if)#exit
Core1(config)#interface vlan 20
Core1(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

Core1(config-if)#exit
Core1(config)#interface vlan 30
Core1(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up

Core1(config-if)#exit
Core1(config)#interface vlan 40
Core1(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up

Core2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core2(config)#vlan 10
Core2(config-vlan)#name STATIC
Core2(config-vlan)#exit
Core2(config)#vlan 20
Core2(config-vlan)#name VoIP
Core2(config-vlan)#exit
Core2(config)#vlan 30
Core2(config-vlan)#name PUBLIC
Core2(config-vlan)#exit
Core2(config)#vlan 40
Core2(config-vlan)#name CLIENT
Core2(config-vlan)#exit
Core2(config)#interface vlan 10
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up

Core2(config-if)#exit
Core2(config)#interface vlan 20
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

Core2(config-if)#exit
Core2(config)#interface vlan 30
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up

Core2(config-if)#exit
Core2(config)#interface vlan 40
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up

Core2(config-if)#exit

Access>en
Access#conf t
Access(config)#vlan 10
Access(config-vlan)#name STATIC
Access(config-vlan)#exit
Access(config)#vlan 20
Access(config-vlan)#name VoIP
Access(config-vlan)#exit
Access(config)#vlan 30
Access(config-vlan)#name PUBLIC
Access(config-vlan)#exit
Access(config)#vlan 40
Access(config-vlan)#name CLIENT
Access(config-vlan)#exit
Access(config)#inter
Access(config)#interface vlan 10
Access(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up

Access(config-if)#exit
Access(config)#inter
Access(config)#interface vlan 20
Access(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

Access(config-if)#exit
Access(config)#inter
Access(config)#interface vlan 30
Access(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up

Access(config-if)#exit
Access(config)#inter
Access(config)#interface vlan 40
Access(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up

Access(config-if)#exit
Access(config)#do wri
Building configuration...
[OK]

Access(config)#do sh vlan

VLAN Name                             Status    Ports
---- ------------------- --------- -------------------------------
1    default              active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                    Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                    Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                    Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                    Fa0/17, Fa0/18, Fa0/19, Fa0/20
                                    Fa0/21, Fa0/22, Fa0/23, Fa0/24
                                    Gig0/1, Gig0/2
10   STATIC                  active    
20   VoIP                    active    
30   PUBLIC                  active    
40   CLIENT                  active    
1002 fddi-default            act/unsup 
1003 token-ring-default      act/unsup 
1004 fddinet-default         act/unsup 
1005 trnet-default           act/unsup 

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0

Access(config)#do wri
Building configuration...
[OK]
Access(config)#

Limitar todos los Trunks para llevar sólo las VLANs 1, 10, 20.

Core1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core1(config)#interface gigabitEthernet 1/0/1
Core1(config-if)#switchport trunk allowed vlan 1,10,20

Core1(config-if)#exit
Core1(config)#interface gigabitEthernet 1/0/2
Core1(config-if)#switchport trunk allowed vlan 1,10,20
Core1(config-if)#exit
Core1(config)#interface gigabitEthernet 1/0/23
Core1(config-if)#switchport trunk allowed vlan 1,10,20
Core1(config-if)#exit
Core1(config)#interface gigabitEthernet 1/0/24
Core1(config-if)#switchport trunk allowed vlan 1,10,20
Core1(config-if)#exit
Core1(config)#^Z
Core1#
%SYS-5-CONFIG_I: Configured from console by console

Core1#wri
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]
Core1#sh inter
Core1#sh interfaces tr
Core1#sh interfaces trunk 
Port        Mode         Encapsulation  Status        Native vlan
Gig1/0/1    on           802.1q         trunking      1
Gig1/0/2    on           802.1q         trunking      1
Gig1/0/23   on           802.1q         trunking      1
Gig1/0/24   on           802.1q         trunking      1

Port        Vlans allowed on trunk
Gig1/0/1    1,10,20
Gig1/0/2    1,10,20
Gig1/0/23   1,10,20
Gig1/0/24   1,10,20

Port        Vlans allowed and active in management domain
Gig1/0/1    1,10,20
Gig1/0/2    1,10,20
Gig1/0/23   1,10,20
Gig1/0/24   1,10,20

Port        Vlans in spanning tree forwarding state and not pruned
Gig1/0/1    1,10,20
Gig1/0/2    1,10,20
Gig1/0/23   none
Gig1/0/24   none

Core1#

Core2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core2(config)#interface gigabitEthernet 1/0/1
Core2(config-if)#switchport trunk allowed vlan 1,10,20
Core2(config-if)#exit
Core2(config)#interface gigabitEthernet 1/0/23
Core2(config-if)#switchport trunk allowed vlan 1,10,20
Core2(config-if)#exit
Core2(config)#interface gigabitEthernet 1/0/24
Core2(config-if)#exit
Core2(config)#interface gigabitEthernet 1/0/24
Core2(config-if)#switchport trunk allowed vlan 1,10,20
Core2(config-if)#


Core2#sh interfaces trunk 
Port        Mode         Encapsulation  Status        Native vlan
Gig1/0/1    on           802.1q         trunking      1
Gig1/0/23   on           802.1q         trunking      1
Gig1/0/24   on           802.1q         trunking      1

Port        Vlans allowed on trunk
Gig1/0/1    1,10,20
Gig1/0/23   1,10,20
Gig1/0/24   1,10,20

Port        Vlans allowed and active in management domain
Gig1/0/1    1,10,20
Gig1/0/23   1,10,20
Gig1/0/24   1,10,20

Port        Vlans in spanning tree forwarding state and not pruned
Gig1/0/1    1,10,20
Gig1/0/23   1,10,20
Gig1/0/24   1,10,20

Core2#

Access#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Access(config)#interface fastEthernet 0/1
Access(config-if)#switchport trunk allowed vlan 1,10,20
Access(config-if)#exit
Access(config)#interface fastEthernet 0/2
Access(config-if)#switchport trunk allowed vlan 1,10,20
Access(config-if)#end
Access#
%SYS-5-CONFIG_I: Configured from console by console

Access#wri
Building configuration...
[OK]

Access#sh interfaces trunk 
Port        Mode         Encapsulation  Status        Native vlan
Fa0/1       on           802.1q         trunking      1
Fa0/2       on           802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/1       1,10,20
Fa0/2       1,10,20

Port        Vlans allowed and active in management domain
Fa0/1       1,10,20
Fa0/2       1,10,20

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

Access#

Configurar R1-AS como un Router on a Stick (ROAS), que proporcione enrutamiento entre clientes en VLAN 10 y VLAN 20.

RT01-VA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
RT01-VA(config)#interface vlan 10
RT01-VA(config-if)#ip address 10.16.0.1 255.255.255.0
%LINK-5-CHANGED: Interface Vlan10, changed state to up

RT01-VA(config-if)#exit
RT01-VA(config)#interface vlan 20
RT01-VA(config-if)#ip address 10.16.2.1 255.255.255.0
%LINK-5-CHANGED: Interface Vlan20, changed state to up

RT01-VA(config-if)exit
RT01-VA(config)#interface vlan 30
RT01-VA(config-if)#ip address 10.16.4.1 255.255.254.0
%LINK-5-CHANGED: Interface Vlan30, changed state to up

RT01-VA(config-if)exit
RT01-VA(config)#interface vlan 40
RT01-VA(config-if)#ip address 10.16.6.1 255.255.254.0
%LINK-5-CHANGED: Interface Vlan30, changed state to up

RT01-VA(config-if)#end
RT01-VA#WRI

RT01-VA#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     unassigned      YES unset  administratively down down 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
GigabitEthernet0/2     unassigned      YES unset  administratively down down 
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 
Vlan1                  unassigned      YES unset  administratively down down 
Vlan10                 10.16.0.1       YES manual up                    down 
Vlan20                 10.16.2.1       YES manual up                    down 
Vlan30                 10.16.4.1       YES manual up                    down 
Vlan40                 10.16.6.1       YES manual up                    down

La interfaz el Router RT01-VA tiene que estar up y configurada en mode Trunk 
RT01-VA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
RT01-VA(config)#interface fastEthernet 0/0/0 
RT01-VA(config-if)#no shut
RT01-VA(config-if)#switchport mode trunk 

RT01-VA(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0/0, changed state to down

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

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

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

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

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

RT01-VA(config-if)#^Z
RT01-VA#
%SYS-5-CONFIG_I: Configured from console by console

RT01-VA#wri
Building configuration...
[OK]
RT01-VA#sh ip inter
RT01-VA#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     unassigned      YES unset  administratively down down 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
GigabitEthernet0/2     unassigned      YES unset  administratively down down 
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 
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
RT01-VA#

Sólo dejaremos pasar las VLANs 1, 10, 20:

RT01-VA(config)#interface fastEthernet 0/0/0
RT01-VA(config-if)#switchport trunk allowed vlan 1,10,20

RT01-VA(config-if)#do sh inter trunk
Port        Mode         Encapsulation  Status        Native vlan
Fa0/0/0     on           802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/0/0     1,10,20

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

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

Configurar las interfaces fa0/3 y fa0/4 en modo access, vlan 10 (PC1) y vlan 20 (PC2) respectivamente:

Access(config)#interface fastEthernet 0/3
Access(config-if)#switchport mode access 
Access(config-if)#switchport access vlan 10
Access(config-if)#exit
Access(config)#interface fastEthernet 0/4
Access(config-if)#switchport mode access 
Access(config-if)#switchport access vlan 20
Access(config-if)#^Z
Access#
%SYS-5-CONFIG_I: Configured from console by console

Access#wri
Building configuration...
[OK]
Access#

Comprobamos la comunicación entre PC1 y PC2



Asignar direcionamiento IP Metropolitan Area Network (MAN), subred 172.16.0.0/28:


RT02-BCN#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
RT02-BCN(config)#interface gigabitEthernet 0/0
RT02-BCN(config-if)#ip address 172.16.0.6 255.255.255.240
RT02-BCN(config-if)#no shut

RT02-BCN(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

RT01-VA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
RT01-VA(config)#interface gigabitEthernet 0/0
RT01-VA(config-if)#ip address 172.16.0.5 255.255.255.240
RT01-VA(config-if)#no shut

RT01-VA(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

RT01-VA(config-if)#

TR03-ZA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
TR03-ZA(config)#inter
TR03-ZA(config)#interface g
TR03-ZA(config)#interface gigabitEthernet 0/0
TR03-ZA(config-if)#ip add
TR03-ZA(config-if)#ip address 172.16.0.7 255.255.255.240
TR03-ZA(config-if)#no shut

TR03-ZA(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

Hacer ping para comprobar conectividad entre los Routers:

TR03-ZA#ping 172.16.0.6

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

TR03-ZA#ping 172.16.0.6

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

TR03-ZA#ping 172.16.0.5

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

Cisco es genial!.