www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / 101 CCNP Labs Solutions / CCNP Lab 042 Solution: Internet Protocol version 6 Lab

CCNP Lab 042 Solution: Internet Protocol version 6 Lab

Lab Objective:

The focus of this lab is to understand OSPFv3 and RIPng implementation and configuration in Cisco IOS routers. Additional technologies include redistribution, path control, and security.

Lab Topology:

The lab network topology is illustrated below:

department642

 

IMPORTANT NOTE

If you are using the www.howtonetwork.net racks, please bring up the LAN interfaces connected to the routers by issuing the no shutdown command on the connected switches. If you are using a home lab with no
Switches, you can bring up the LAN interfaces using the following configurations on your routers:

interface fastethernet 0/0
no keepalive
loopback
no shutdown

Alternately, you can simply connect the interfaces to a hub or switch if you have one available in your own lab.

 

Task 1

Configure hostnames and IPv6 addressing on all routers as illustrated in the network topology.

Task 2

Configure RIPng on the LAN segment between R1 and R4.

Task 3

Configure OSPFv3 as illustrated in the topology. Area 1 should be configured as a totally stub OSPF area, wherein R2 generates and advertises a default route to R3. Ensure that OSPF area 2 is still connected to the backbone. Ensure that no Hellos are sent out the LAN interfaces. Verify your configuration using the appropriate commands.

Task 4

Configure redistribution on routers R1 and R4.Use the most simple solution that negates the need to filter routes when redistributing. Verify your configuration using the appropriate commands.

Task 5

Configure R4 so that it prefers the path via R1 to reach all other subnets. In the event that this path is unavailable, the path via R3 should be used instead. Verify the configuration using the appropriate commands on R4.
Task 6

For security, configure area authentication for the OSPF backbone. Use the following parameters when you are configuring the authentication parameters:

  1. Use a Security Parameters Index (SPI) of 678
  2. Use Message Digest 5 (MD5) authentication
  3. Use a key of 1234567890abcdef1234567890abcdef

 

Verify your configuration using the appropriate commands.

Task 7

For security, configure interface authentication on the OSPF interfaces residing in area 2. Use the following parameters when you are configuring the

  1. Use a Security Parameters Index (SPI) of 500
  2. Use Message Digest 5 (MD5) authentication
  3. Use a key of 1234567890abcdef1234567890abcdef

 

Verify your configuration using the appropriate commands.

Lab Validation

Task 1

Router(config)#hostname R1
R1(config)#ipv6 unicast-routing
R1(config)#ipv6 cef
R1(config)#interface fastethernet 0/0
R1(config-if)#ipv6 address 3ffe:abcd:1111:1::1/64
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/0
R1(config-if)#ipv6 address 2001:abcd:1111:1::1/64
R1(config-if)#clock rate 2000000
R1(config-if)#no shutdown
R1(config-if)#exit
Router(config)#hostname R2
R2(config)#ipv6 unicast-routing
R2(config)#ipv6 cef
R2(config)#interface fastethernet 0/0
R2(config-if)#ipv6 address 3ffe:abcd:1111:2::2/64
R2(config-if)#no shutdown
R2(config)#interface serial 0/0
R2(config-if)#ipv6 address 2001:abcd:1111:1::2/64
R2(config-if)#no shutdown 
R2(config-if)#exit
R2(config)#interface serial 0/1
R2(config-if)#ipv6 address 2001:abcd:1111:3::2/64
R2(config-if)#no shutdown
R2(config-if)#exit
Router(config)#hostname R3
R3(config)#ipv6 unicast-routing
R3(config)#ipv6 cef
R3(config)#interface fastethernet 0/0
R3(config-if)#ipv6 address 3ffe:abcd:1111:3::3/64
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface serial 1/1
R3(config-if)#ipv6 address 2001:abcd:1111:3::3/64
R3(config-if)#clock rate 128000
R3(config-if)#no shutdown
R3(config-if)#exit 
R3(config)#interface serial 1/2
R3(config-if)#ipv6 address 2001:abcd:1111:4::3/64
R3(config-if)#clock rate 128000
R3(config-if)#no shutdown
R3(config-if)#exit
Router(config)#hostname R4
R4(config)#ipv6 unicast-routing
R4(config)#ipv6 cef
R4(config)#interface fastethernet 0/0
R4(config-if)#ipv6 address 3ffe:abcd:1111:1::4/64
R4(config-if)#no shutdown
R4(config)#interface serial 0/0
R4(config-if)#ipv6 address 2001:abcd:1111:4::4/64
R4(config-if)#no shutdown 
R4(config-if)#exit

Task 2

R1(config)#ipv6 router rip CCNP
R1(config-rtr)#exit
R1(config)#interface fastethernet 0/0
R1(config-if)#ipv6 rip CCNP enable
R1(config-if)#exit
R4(config)#ipv6 router rip CCNP
R4(config-rtr)#exit
R4(config)#interface fastethernet 0/0
R4(config-if)#ipv6 rip CCNP enable
R4(config-if)#exit

Verify your configuration using the show ipv6 rip <tag> database command:

R1#show ipv6 rip CCNP database
RIP process “CCNP”, local RIB
3FFE:ABCD:1111:1::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:F120, expires in 157 secs
R4#show ipv6 rip CCNP database
RIP process “CCNP”, local RIB
3FFE:ABCD:1111:1::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:EC80, expires in 167 secs

Task 3

The basic OSPF requirements are simple. However, to ensure that area 2 is connected to area 0 we need to configure a GRE Tunnel, since a virtual link cannot be established across a stub area. The encapsulation for this tunnel should be gre ipv6 because IPv6 will be the transport protocol. If you specify gre, the configuration will not work, because IPv4 is not the transport protocol. This task is completed as follows:

R1(config)#ipv6 router ospf 1
R1(config-rtr)#router-id 1.1.1.1
R1(config-rtr)#exit
R1(config)#interface serial 0/0
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#exit

 

R2(config)#ipv6 router ospf 2
R2(config-rtr)#router-id 2.2.2.2
R2(config-rtr)#passive-interface fastethernet 0/0
R2(config-rtr)#area 1 stub no-summary
R2(config-rtr)#exit
R2(config)#interface fastethernet 0/0
R2(config-if)#ipv6 ospf 2 area 0
R2(config-if)#exit
R2(config)#interface serial 0/0
R2(config-if)#ipv6 ospf 2 area 0
R2(config-if)#exit
R2(config)#interface serial 0/1
R2(config-if)#ipv6 ospf 2 area 1 
R2(config-if)#exit
R2(config)#interface tunnel 0
R2(config-if)#tunnel source serial 0/1
R2(config-if)#tunnel destination 2001:abcd:1111:3::3
R2(config-if)#tunnel mode gre ipv6
R2(config-if)#ipv6 address 2001:abcd:1111:8::2/64
R2(config-if)#ipv6 ospf 2 area 0
R2(config-if)#exit
R3(config)#ipv6 router ospf 3
R3(config-rtr)#router-id 3.3.3.3
R3(config-rtr)#area 1 stub 
R3(config-rtr)#passive-interface fastethernet 0/0
R3(config-rtr)#exit
R3(config)#interface serial 1/1
R3(config-if)#ipv6 ospf 3 area 1
R3(config-if)#exit
R3(config)#interface fastethernet 0/0
R3(config-if)#ipv6 ospf 3 area 2
R3(config-if)#exit
R3(config)#interface serial 1/2
R3(config-if)#ipv6 ospf 3 area 2
R3(config-if)#exit
R3(config)#interface tunnel 0
R3(config-if)#tunnel source serial 1/1
R3(config-if)#tunnel destination 2001:abcd:1111:3::3
R3(config-if)#tunnel mode gre ipv6
R3(config-if)#ipv6 address 2001:abcd:1111:8::3/64
R3(config-if)#ipv6 ospf 3 area 0
R3(config-if)#exit
R4(config)#ipv6 router ospf 4
R4(config-rtr)#router-id 4.4.4.4
R4(config-rtr)#exit
R4(config)#interface serial 0/0
R4(config-if)#ipv6 ospf 4 area 2
R4(config-if)#exit

 

 

Verify your OSPF configuration using the show ipv6 ospf neighbor command:

R1#show ipv6 ospf neighbor

Neighbor ID Pri State Dead Time Interface ID Interface
2.2.2.2 1 FULL/ – 00:00:37 5 Serial0/0

R2#show ipv6 ospf neighbor

Neighbor ID Pri State Dead Time Interface ID Interface
3.3.3.3 1 FULL/ – 00:00:32 23 Tunnel0
1.1.1.1 1 FULL/ – 00:00:39 5 Serial0/0
3.3.3.3 1 FULL/ – 00:00:38 6 Serial0/1

R3#show ipv6 ospf neighbor

Neighbor ID Pri State Dead Time Interface ID Interface
2.2.2.2 1 FULL/ – 00:00:33 9 Tunnel0
2.2.2.2 1 FULL/ – 00:00:39 6 Serial1/1
4.4.4.4 1 FULL/ – 00:00:35 5 Serial1/2

R4#show ipv6 ospf neighbor

Neighbor ID Pri State Dead Time Interface ID Interface
3.3.3.3 1 FULL/ – 00:00:37 7 Serial0/0

Next, verify routing information using the show ipv6 route command:

R1#show ipv6 route ospf
IPv6 Routing Table – 11 entries
Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP
U – Per-user Static route
I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary
O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2
ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2
OI 2001:ABCD:1111:3::/64 [110/128] via FE80::20D:28FF:FE9E:F940, Serial0/0
OI 2001:ABCD:1111:4::/64 [110/11956] via FE80::20D:28FF:FE9E:F940, Serial0/0
O 2001:ABCD:1111:8::/64 [110/11175] via FE80::20D:28FF:FE9E:F940, Serial0/0
O 3FFE:ABCD:1111:2::/64 [110/65] via FE80::20D:28FF:FE9E:F940, Serial0/0
OI 3FFE:ABCD:1111:3::/64 [110/11176] via FE80::20D:28FF:FE9E:F940, Serial0/0
R2#show ipv6 route ospf
IPv6 Routing Table – 12 entries
Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP
U – Per-user Static route
I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary
O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2
ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2
OI 2001:ABCD:1111:4::/64 [110/11892] via FE80::213:7FFF:FEAF:3E00, Tunnel0
OI 3FFE:ABCD:1111:3::/64 [110/11112] via FE80::213:7FFF:FEAF:3E00, Tunnel0
R3#show ipv6 route ospf
IPv6 Routing Table – 12 entries
Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP
U – Per-user Static route
I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary
O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2
ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2
O 2001:ABCD:1111:1::/64 [110/11175] via FE80::20D:28FF:FE9E:F940, Tunnel0
O 3FFE:ABCD:1111:2::/64 [110/11112] via FE80::20D:28FF:FE9E:F940, Tunnel0
R4#show ipv6 route ospf
IPv6 Routing Table – 11 entries
Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP
U – Per-user Static route
I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary
O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2
ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2
OI 2001:ABCD:1111:1::/64 [110/11239] via FE80::213:7FFF:FEAF:3E00, Serial0/0
OI 2001:ABCD:1111:3::/64 [110/845] via FE80::213:7FFF:FEAF:3E00, Serial0/0
OI 2001:ABCD:1111:8::/64 [110/11175] via FE80::213:7FFF:FEAF:3E00, Serial0/0
OI 3FFE:ABCD:1111:2::/64 [110/11176] via FE80::213:7FFF:FEAF:3E00, Serial0/0
O 3FFE:ABCD:1111:3::/64 [110/65] via FE80::213:7FFF:FEAF:3E00, Serial0/0

Task 4

The most simple solution that can be used to complete this task is to redistribute the connected RIPng subnet into OSPFv3 and then redistribute OSPFv3 into RIP. This negates the need to implement any filters preventing routes from being re-advertised back to into the same protocol and potentially causing a routing information loop. This task is completed as follows:

R1(config)#ipv6 router rip CCNP
R1(config-rtr)#redistribute connected metric 1
R1(config-rtr)#redistribute ospf 1 metric 1
R1(config-rtr)#exit
R1(config)#ipv6 router ospf 1
R1(config-rtr)#redistribute rip CCNP
R1(config-rtr)#redistribute connected
R1(config-rtr)#exit

 

R4(config)#ipv6 router rip CCNP
R4(config-rtr)#redistribute connected metric 1
R4(config-rtr)#redistribute ospf 4 metric 1
R4(config-rtr)#exit
R4(config)#ipv6 router ospf 4
R4(config-rtr)#redistribute connected
R4(config-rtr)#redistribute rip CCNP
R4(config-rtr)#exit

Verify RIPng redistributed routes by verifying the entries in the RIPng database:

R1#show ipv6 rip CCNP database
RIP process “CCNP”, local RIB
2001:ABCD:1111:1::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:F120, expires in 178 secs
2001:ABCD:1111:3::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:F120, expires in 178 secs
2001:ABCD:1111:4::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:F120, expires in 178 secs
2001:ABCD:1111:8::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:F120, expires in 178 secs
3FFE:ABCD:1111:1::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:F120, expires in 178 secs
3FFE:ABCD:1111:2::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:F120, expires in 178 secs
3FFE:ABCD:1111:3::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:F120, expires in 178 secs
R4#show ipv6 rip CCNP database
RIP process “CCNP”, local RIB
2001:ABCD:1111:1::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:EC80, expires in 162 secs
2001:ABCD:1111:3::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:EC80, expires in 162 secs
2001:ABCD:1111:4::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:EC80, expires in 162 secs
2001:ABCD:1111:8::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:EC80, expires in 162 secs
3FFE:ABCD:1111:1::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:EC80, expires in 162 secs
3FFE:ABCD:1111:2::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:EC80, expires in 162 secs
3FFE:ABCD:1111:3::/64, metric 2
FastEthernet0/0/FE80::20F:23FF:FE5E:EC80, expires in 162 secs

Verify OSPFv3 redistributed routes by verifying Type 5 LSAs in the LSDB:

R1#show ipv6 ospf database external

OSPFv3 Router with ID (1.1.1.1) (Process ID 1)

Type-5 AS External Link States

LS age: 158
LS Type: AS External Link
Link State ID: 0
Advertising Router: 1.1.1.1
LS Seq Number: 80000001
Checksum: 0xA934
Length: 36
Prefix Address: 3FFE:ABCD:1111:1::
Prefix Length: 64, Options: None
Metric Type: 2 (Larger than any link state path)
Metric: 20

Routing Bit Set on this LSA
LS age: 79
LS Type: AS External Link
Link State ID: 0
Advertising Router: 4.4.4.4
LS Seq Number: 80000001
Checksum: 0x4F82
Length: 36
Prefix Address: 3FFE:ABCD:1111:1::
Prefix Length: 64, Options: None
Metric Type: 2 (Larger than any link state path)
Metric: 20

R4#show ipv6 ospf database external

OSPFv3 Router with ID (4.4.4.4) (Process ID 4)

Type-5 AS External Link States

Routing Bit Set on this LSA
LS age: 168
LS Type: AS External Link
Link State ID: 0
Advertising Router: 1.1.1.1
LS Seq Number: 80000001
Checksum: 0xA934
Length: 36
Prefix Address: 3FFE:ABCD:1111:1::
Prefix Length: 64, Options: None
Metric Type: 2 (Larger than any link state path)
Metric: 20

LS age: 83
LS Type: AS External Link
Link State ID: 0
Advertising Router: 4.4.4.4
LS Seq Number: 80000001
Checksum: 0x4F82
Length: 36
Prefix Address: 3FFE:ABCD:1111:1::
Prefix Length: 64, Options: None
Metric Type: 2 (Larger than any link state path)
Metric: 20

Task 5

To complete this task, simply raise the default administrative distance for OSPF internal routes, since there are no external OSPF routes, to a value higher than 120, which is the RIPng default administrative distance. Any value between 1 and 254 can be used to complete this task. This task is completed as follows:

R4(config)#ipv6 router ospf 4
R4(config-rtr)#distance ospf intra-area 150 inter-area 150
R4(config-rtr)#exit

Following this configuration, verify the contents of the routing table on R4:

R4# Verify RIPng redistributed routes by verifying the entries in the RIPng database:

IPv6 Routing Table – 11 entries
Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP
U – Per-user Static route
I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary
O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2
ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2
R 2001:ABCD:1111:1::/64 [120/2]
via FE80::20F:23FF:FE5E:EC80, FastEthernet0/0
R 2001:ABCD:1111:3::/64 [120/2]
via FE80::20F:23FF:FE5E:EC80, FastEthernet0/0
C 2001:ABCD:1111:4::/64 [0/0] via ::, Serial0/0
L 2001:ABCD:1111:4::4/128 [0/0] via ::, Serial0/0
R 2001:ABCD:1111:8::/64 [120/2]
via FE80::20F:23FF:FE5E:EC80, FastEthernet0/0
C 3FFE:ABCD:1111:1::/64 [0/0] via ::, FastEthernet0/0
L 3FFE:ABCD:1111:1::4/128 [0/0] via ::, FastEthernet0/0
R 3FFE:ABCD:1111:2::/64 [120/2]
via FE80::20F:23FF:FE5E:EC80, FastEthernet0/0
R 3FFE:ABCD:1111:3::/64 [120/2]
via FE80::20F:23FF:FE5E:EC80, FastEthernet0/0
L FE80::/10 [0/0] via ::, Null0
L FF00::/8 [0/0] via ::, Null0

Task 6

OSPFv3 supports both authentication and encryption for security. To configure OSPFv3 area authentication, you need to use the area <area> authentication ipsec spi <size> [md5|sha1] <key> OSPFv3 configuration command. This task is completed as follows:

R1(config)#ipv6 router ospf 1
R1(config-rtr)#$ication ipsec spi 678 md5 1234567890abcdef1234567890abcdef
R2(config-rtr)#exit
R2(config)#ipv6 router ospf 2
R2(config-rtr)#$ication ipsec spi 678 md5 1234567890abcdef1234567890abcdef
R2(config-rtr)#exit
R3(config)#ipv6 router ospf 3
R3(config-rtr)#$ication ipsec spi 678 md5 1234567890abcdef1234567890abcdef
R3(config-rtr)#exit

Verify OSPFv3 area authentication using the show ipv6 ospf command:

R2#show ipv6 ospf
Routing Process “ospfv3 2” with ID 2.2.2.2
It is an area border router
SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 7. Checksum Sum 0x020EF4
Number of areas in this router is 2. 1 normal 1 stub 0 nssa
Reference bandwidth unit is 100 mbps
Area BACKBONE(0)
Number of interfaces in this area is 3
MD5 Authentication, SPI 678
SPF algorithm executed 17 times
Number of LSA 16. Checksum Sum 0x07AE65
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
Area 1
Number of interfaces in this area is 1
It is a stub area, no summary LSA in this area
generates stub default route with cost 1
SPF algorithm executed 15 times
Number of LSA 13. Checksum Sum 0x04EB52
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0

By default, because IPv6 uses built-in IPsec functions, Cisco IOS software automatically creates IPsec policies for the configured authentication. The policy can be viewed using the show crypto ipsec sa [interface <name>] command on the router(s). Authentication Header (AH) is used. If you configure encryption, then Encapsulating Security Payload (ESP) will be used instead. Check the relevant SA states based on your configuration:

R2#show crypto ipsec sa interface serial 0/0

interface: Serial0/0
Crypto map tag: (none), local addr FE80::20D:28FF:FE9E:F940

IPsecv6 policy name: OSPFv3-2-678
IPsecv6-created ACL name: Serial0/0-ipsecv6-ACL

protected vrf: (none)
local ident (addr/mask/prot/port): (FE80::/10/89/0)
remote ident (addr/mask/prot/port): (::/0/89/0)
current_peer :: port 500
PERMIT, flags={origin_is_acl,}
#pkts encaps: 20, #pkts encrypt: 0, #pkts digest: 20
#pkts decaps: 23, #pkts decrypt: 0, #pkts verify: 23
#pkts compressed: 0, #pkts decompressed: 0
#pkts not compressed: 0, #pkts compr. failed: 0
#pkts not decompressed: 0, #pkts decompress failed: 0
#send errors 0, #recv errors 0

local crypto endpt.: FE80::20D:28FF:FE9E:F940, remote crypto endpt.: ::
path mtu 1500, ip mtu 1500, ip mtu idb Serial0/0
current outbound spi: 0x2A6(678)

inbound esp sas:

inbound ah sas:
spi: 0x2A6(678)
transform: ah-md5-hmac ,
in use settings ={Transport, }
conn id: 2005, flow_id: SW:5, crypto map: (none)
no sa timing
replay detection support: N
Status: ACTIVE

inbound pcp sas:

outbound esp sas:

outbound ah sas:
spi: 0x2A6(678)
transform: ah-md5-hmac ,
in use settings ={Transport, }
conn id: 2006, flow_id: SW:6, crypto map: (none)
no sa timing
replay detection support: N
Status: ACTIVE

outbound pcp sas:

Additionally, you can also view the configuration parameters for the applied policy using the show crypto ipsec policy command on the router. The policy name, by default, will be OSPFv3-<process ID>-<SPI>. For example, on R1, the applied policy name will be OSPFv3-R1-678. This is validated and illustrated in the following output:

R1#show crypto ipsec policy
Crypto IPsec client security policy data

Policy name: OSPFv3-1-678
Policy refcount: 1
Inbound AH SPI: 678 (0x2A6)
Outbound AH SPI: 678 (0x2A6)
Inbound AH Key: 1234567890ABCDEF1234567890ABCDEF
Outbound AH Key: 1234567890ABCDEF1234567890ABCDEF
Transform set: ah-md5-hmac

Task 7

Interface authentication is applied at the interface using the ipv6 ospf authentication ipsec spi <spi> [md5|sha1] <key> interface configuration command. This task is completed by applying the specified configuration parameters on all interfaces within area 2:

R3(config)#interface serial 1/2
R3(config-if)#$ion ipsec spi 500 md5 1234567890abcdef1234567890abcdef 
R3(config-if)#exit
R4(config)#interface serial 0/0
R4(config-if)#$ion ipsec spi 500 md5 1234567890abcdef1234567890abcdef
R4(config-if)#exit

Verify OSPFv3 interface authentication using the show ipv6 ospf interface command:

R4#show ipv6 ospf interface serial 0/0
Serial0/0 is up, line protocol is up
Link Local Address FE80::20F:23FF:FE5E:F120, Interface ID 5
Area 2, Process ID 4, Instance ID 0, Router ID 4.4.4.4
Network Type POINT_TO_POINT, Cost: 64
MD5 Authentication SPI 500, secure socket state UP (errors: 0)
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:02
Index 1/1/1, flood queue length 0
Next 0x0(0)/0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 5
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 3.3.3.3
Suppress hello for 0 neighbor(s)

NOTE: You should have NO errors (as illustrated above). If you do, check the configuration.

As is the case with area authentication, a policy is dynamically created and applied by the Cisco IOS software. This can be viewed using the show crypto ipsec sa [interface <name>] command on the router on which interface authentication has been implemented. The policy name, by default, will be OSPFv3-<process ID>-<SPI> as illustrated below:

 

R4#show crypto ipsec sa interface serial 0/0

interface: Serial0/0
Crypto map tag: (none), local addr FE80::20F:23FF:FE5E:F120

IPsecv6 policy name: OSPFv3-4-500
IPsecv6-created ACL name: Serial0/0-ipsecv6-ACL

protected vrf: (none)
local ident (addr/mask/prot/port): (FE80::/10/89/0)
remote ident (addr/mask/prot/port): (::/0/89/0)
current_peer :: port 500
PERMIT, flags={origin_is_acl,}
#pkts encaps: 29, #pkts encrypt: 0, #pkts digest: 29
#pkts decaps: 31, #pkts decrypt: 0, #pkts verify: 31
#pkts compressed: 0, #pkts decompressed: 0
#pkts not compressed: 0, #pkts compr. failed: 0
#pkts not decompressed: 0, #pkts decompress failed: 0
#send errors 0, #recv errors 0

local crypto endpt.: FE80::20F:23FF:FE5E:F120, remote crypto endpt.: ::
path mtu 1500, ip mtu 1500, ip mtu idb Serial0/0
current outbound spi: 0x1F4(500)

inbound esp sas:

inbound ah sas:
spi: 0x1F4(500)
transform: ah-md5-hmac ,
in use settings ={Transport, }
conn id: 2001, flow_id: SW:1, crypto map: (none)
no sa timing
replay detection support: N
Status: ACTIVE

inbound pcp sas:

outbound esp sas:

outbound ah sas:
spi: 0x1F4(500)
transform: ah-md5-hmac ,
in use settings ={Transport, }
conn id: 2002, flow_id: SW:2, crypto map: (none)
no sa timing
replay detection support: N
Status: ACTIVE

outbound pcp sas:

Final Router Configurations

R1

 

R1#term len 0
R1#sh run
Building configuration…

Current configuration : 1185 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
no logging console
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
ipv6 unicast-routing
ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address 3FFE:ABCD:1111:1::1/64
ipv6 rip CCNP enable
!
interface Serial0/0
no ip address
ipv6 address 2001:ABCD:1111:1::1/64
ipv6 ospf 1 area 0
clock rate 2000000
!
interface Serial0/1
no ip address
shutdown
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
ipv6 router ospf 1
router-id 1.1.1.1
log-adjacency-changes
area 0 authentication ipsec spi 678 md5 1234567890ABCDEF1234567890ABCDEF
redistribute connected
redistribute rip CCNP
!
ipv6 router rip CCNP
redistribute connected metric 1
redistribute ospf 1 metric 1
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R1#

R2

 

R2#term len 0
R2#sh run
Building configuration…

Current configuration : 1315 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
no logging console
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
ipv6 unicast-routing
ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Tunnel0
no ip address
ipv6 address 2001:ABCD:1111:8::2/64
ipv6 ospf 2 area 0
tunnel source Serial0/1
tunnel destination 2001:ABCD:1111:3::3
tunnel mode gre ipv6
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address 3FFE:ABCD:1111:2::2/64
ipv6 ospf 2 area 0
!
interface Serial0/0
no ip address
ipv6 address 2001:ABCD:1111:1::2/64
ipv6 ospf 2 area 0
!
interface Serial0/1
no ip address
ipv6 address 2001:ABCD:1111:3::2/64
ipv6 ospf 2 area 1
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
ipv6 router ospf 2
router-id 2.2.2.2
log-adjacency-changes
area 0 authentication ipsec spi 678 md5 1234567890ABCDEF1234567890ABCDEF
area 1 stub no-summary
passive-interface FastEthernet0/0
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R2#

R3

 

R3#term len 0
R3#sh run
Building configuration…

Current configuration : 1720 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
no logging console
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
ipv6 unicast-routing
ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Tunnel0
no ip address
ipv6 address 2001:ABCD:1111:8::3/64
ipv6 ospf 3 area 0
tunnel source Serial1/1
tunnel destination 2001:ABCD:1111:3::2
tunnel mode gre ipv6
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address 3FFE:ABCD:1111:3::3/64
ipv6 ospf 3 area 2
!
interface Serial1/0
no ip address
shutdown
clock rate 128000
!
interface Serial1/1
no ip address
ipv6 address 2001:ABCD:1111:3::3/64
ipv6 ospf 3 area 1
clock rate 128000
!
interface Serial1/2
no ip address
ipv6 address 2001:ABCD:1111:4::3/64
ipv6 ospf 3 area 2
ipv6 ospf authentication ipsec spi 500 md5 1234567890ABCDEF1234567890ABCDEF
clock rate 128000
!
interface Serial1/3
no ip address
shutdown
!
interface Serial1/4
no ip address
shutdown
!
interface Serial1/5
no ip address
shutdown
!
interface Serial1/6
no ip address
shutdown
!
interface Serial1/7
no ip address
shutdown
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
ipv6 router ospf 3
router-id 3.3.3.3
log-adjacency-changes
area 0 authentication ipsec spi 678 md5 1234567890ABCDEF1234567890ABCDEF
area 1 stub
passive-interface FastEthernet0/0
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R3#

R4

 

R4#term len 0
R4#sh run
Building configuration…

Current configuration : 1214 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
no logging console
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
ipv6 unicast-routing
ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address 3FFE:ABCD:1111:1::4/64
ipv6 rip CCNP enable
!
interface Serial0/0
no ip address
ipv6 address 2001:ABCD:1111:4::4/64
ipv6 ospf 4 area 2
ipv6 ospf authentication ipsec spi 500 md5 1234567890ABCDEF1234567890ABCDEF
!
interface Serial0/1
no ip address
shutdown
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
ipv6 router ospf 4
router-id 4.4.4.4
log-adjacency-changes
distance ospf intra-area 150 inter-area 150
redistribute connected
redistribute rip CCNP
!
ipv6 router rip CCNP
redistribute connected metric 1
redistribute ospf 4 metric 1
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R4#

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.