Ipv6 Lab Guide
Ipv6 Lab Guide
Ipv6 Lab Guide
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 62
Network Diagram—IPv6 Lab
Sample Topology for a Single Pod
Network A Network B
g0/0
G0/0
g0/1 g0/2 g0/3 H2
H1
R2 R3 R4
R1 g0/1 g0/2 g0/3 g0/0
g0/0
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 63
All Routers/Hosts Basic Configuration
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 64
Lab 1: IPv6 Addressing
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 64
Lab 1: Task Summary
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 65
Lab 1: Configuring IPv6 Interfaces (1)
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 66
Lab 1: Configuring IPv6 Interfaces (2)
Task: Configuring the IPv6 Ethernet Interface
On routers R1 and R2, go to global configuration mode
#configure terminal
Enable IPv6 unicast routing on the router
(config)#ipv6 unicast-routing
Configure the g0/0 interface
(config)#interface g0/0
Enable IPv6 on the interface
(config-if)#ipv6 enable
(config-if)#no shutdown
Quit the configure mode
(config-if)#end
Verify that the Ethernet interface is configured
#show ipv6 interface g0/0
Identify the type of addresses that are configured
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 67
Lab 1: Configuring IPv6 Interfaces (3)
Task: Finding the Link-Local Address of a Host
On hosts H1 and H2, go to global configuration mode
#configure terminal
Configure the host g0/0 interface
(config)#interface g0/0
Enable IPv6 on the interface
(config-if)#ipv6 enable
(config-if)#ipv6 address autoconfig
(config-if)#no shutdown
Quit the configure mode
(config-if)#end
Verify that the interface is configured
#show ipv6 interface g0/0
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 68
Lab 1: Configuring IPv6 Interfaces (4)
Task: Verifying IPv6 Link-Local Connectivity
On routers R1 and R4, enable console debugging of ICMP
and Neighbor Discovery (ND) IPv6 packets
#debug ipv6 icmp
#debug ipv6 nd
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 69
Lab 1: Configuring IPv6 Interfaces (5)
Task: Configuring a Static IPv6 Address with EUI-64
On routers R1 and R4, configure a global IPv6 address on
g0/0 interface using the /64 prefix of your subnet and the
EUI-64 format
Subnet = router number, e.g., R1 = 2001:DB8:1234:1::/64 &
R4 = 2001:DB8:1234:4::/64)
#configure terminal
(config)#interface
g0/0
(config-if)#ipv6 address 2001:DB8:1234:<router #>::/64 eui-64
(config)#end
Verify the configuration
On the routers, disable all console debugging
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 70
Lab 1: Configuring IPv6 Interfaces (5)
#undebug all
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 71
Lab 1: Configuring IPv6 Interfaces (6)
Task: Configuring IPv6 addresses.
On all four routers, configure a global and unique-local address on
other interfaces by using the IPv6 prefix assigned. Use the router
number for the host part. (Refer to table 1 for details)
For example, on R1:
#configure terminal
(config)#interface g
0/1 (config-if)#ipv6
enable
(config-if)#ipv6 address fc00:1:2:12::<router #>/64
(config-if)#ipv6 address 2001:DB8:1122:12::<router #>/64
(config-if)#no shutdown
Verify connectivity by using ping to next-hop router
#ping <global or unique-local address of next-hop router>
#show ipv6 neighbors
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 71
Lab 2: Using
Neighbor Discovery
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 72
Lab 2: Task Summary
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 73
Lab 2: Using Neighbor Discovery (1)
Task: Configuring Router Advertisements for Global Addresses
Look at the configuration of hosts H1 and H2 and determine if they have received a
global address?
#show ipv6 interface g0/0
Enable the debugging mode for IPv6 Neighbor Discovery (ND)
#debug ipv6 nd
On routers R1 and R4, go to configuration mode and then under Ethernet
0/0 interface
#configure terminal
(config)#interface g0/0
Enable RAs by using the ND command with the subnet prefix assigned to your
LAN. Because infinite lifetime is not desired, use five minutes (120 seconds) for
lifetime (both preferred and valid).
(config-if)#ipv6 nd prefix 2001:DB8:1234:<router #>::/64 120 120
Verify that the hosts now have an IPv6 address that was automatically configured
with this subnet prefix. Note that the previously configured link-local address is still
present and valid. Also look at the valid and preferred lifetimes, are they
decrementing?
#show ipv6 interface g0/0
Verify connectivity using the ping command on the router to the host using the
newly assigned address of the host as the ping destination
#ping <global address of Host>
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 74
Lab 2: Using Neighbor Discovery (2)
Task: Configuring Router Advertisements for Unique-Local Addresses
Configure a unique-local address on g0/0 interface of Routers R1 and
R4 by using the subnet prefix for your LAN. Use EUI-64 format.
#configure terminal
(config)#interface g0/0
(config-if)#ipv6 address fc00:0:0:<router #>::/64 eui-64
Enable RAs by using the ND command with subnet prefix assigned to
your LAN for unique-local addresses. Use five minutes (120 seconds)
for the lifetime.
(config-if)# ipv6 nd prefix fc00:0:0:<router #>::/64 120 120
Change the RA interval to 30 seconds
(config-if)# ipv6 nd ra interval 30
Verify that hosts H1 and H2 now have an IPv6 address configured with
this subnet prefix
#show ipv6 interface g0/0
Verify connectivity to the host using the ping command on the router to
the host using the newly assigned address of the host as the ping
destination address
#ping <unique-local address of Host>
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 75
Lab 2: Using Neighbor Discovery (3)
Task: Renumbering the Local Network on the Router
On routers R1 and R2, configure the new address of
workgroup g0/0 interface by using the new global
subnet prefix assigned to your LAN. Use EUI-64 format.
#configure terminal
(config)#interface g0/0
(config-if)#ipv6 address 2003:DB8:ffff:<router #>::/64 eui-64
Enable RAs by using the ND command with the new subnet
prefix assigned to your LAN. Use five minutes (240 seconds)
for the lifetime.
(config-if)# ipv6 nd prefix 2003:DB8:ffff:<router #>::/64 240 240
Verify that hosts H1 and H2 have a new address with the
new prefix
#show ipv6 interface g0/0
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 76
Lab 2: Using Neighbor Discovery (4)
Modify the Neighbor Advertisement (NAs) for
2001:DB8:1234:<router #>::/64 (the old prefix) by making
the valid and preferred lifetimes equal to 60 and 0
respectively
#configure terminal
(config)#interface g0/0
(config-if)# ipv6 nd prefix 2001:DB8:1234:<router #>::/64 20 0
Verify that the hosts deprecate the use of the “old” prefix and
prefers the “new” one
#show ipv6 interface g0/0
Verify connectivity to the host by using the ping command on
the router using the new assigned address of host
#ping <new global address of Host>
#undebug all
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 77
Lab 3: IPv6
Static Routing
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 78
Lab 3: Task Summary
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 79
Lab 3: IPv6 Static Routing (1)
Task: Configuring IPv6 Static Routing on Routers
Configure static default routes on R1 and R4 pointing to R2
and R3 respectively (see table 1 for addressing details)
On R1:
(config)#ipv6 route ::/0 2001:DB8:1122:12::2
On R4:
(config)#ipv6 route ::/0 2001:DB8:3344:34::3
Configure static routes on R2 pointing to R4’s network; R3 pointing
to R1’s network. (see table 1 for addressing details)
On R2:
(config)#ipv6 route 2001:DB8:3344:34::/64 2004:DB8:2233:23::3
On R3:
(config)#ipv6 route 2001:DB8:1122:12::/64 2004:DB8:2233:23::2
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 80
Lab 3: IPv6 Static Routing (2)
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 81
Lab 4: Routing
with OSPFv3
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 82
Lab 4: Task Summary
Enable debugs for IPv6 routing and IPv6 OSPFv3
#debug ipv6 routing
#debug ipv6 ospf event
Configure OSPFv3 on all four routers
Look at topology diagram for details
Use 192.168.30.xx for router-id (where xx is the router number)
Remove all IPv6 static and default routes on all routers
Use ping to verify IPv6 connectivity between H1 and H2
Use show commands to view IPv6 routing table
#show ipv6 route
#show ipv6 ospf neighbor
#show ipv6 ospf database
Answer review questions at the end of this section
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 83
OSPFv3 Configuration Example
Network A Network B
g/0
g0/0
g0/1 g0/2 g03 H2
H1
R2 R3 R4
R1 g0/1 g0/2 g0/3 g/0
g0/0 …
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 84
Lab 4: Routing with OSPFv3 (1)
Task: Configuring OSPFv3
Enable the debugging mode for IPv6 routing and
IPv6 OSPFv3
#debug ipv6 routing
#debug ipv6 ospf event
ipv6 unicast-routing
interface g0/0
no ip address
ipv6 ospf 1 area 10
interface g0/1
no ip address
ipv6 ospf 1 area 10
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 86
OSPFv3 Configuration—Router R2 (3)
Router R2
ipv6 unicast-routing
interface g0/1
no ip address
ipv6 ospf 1 area 10
interface g0/2
no ip address
ipv6 ospf 1 area 0
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 87
Lab 4: Routing with OSPFv3 (4)
Task: Configuring OSPFv3
Verify that the routing table is updated by entries coming from the other workgroup
routers, OSPFv3 Neighbor, OSPFv3 database
#show ipv6 route
#show ipv6 ospf neighbor
#show ipv6 ospf database
Do you see the OSPFv3 routes in the routing table on R2 and R3? Why or why not?
Remove the static routes on all 4 routers
#no ipv6 route <network> <next hop>
Verify IPv6 connectivity using the ping command on Host. Use the remote host’s
global IPv6 address as the destination address of the ping command
#ping <Global IPv6 address of the remote host>
#undebug all
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 89
Lab 5: Task Summary
Enable debugging for BGP
#debug bgp ipv6 unicast
Configure BGP AS number and router-id on all four routers using table 2
Activate iBGP peering between R1 and R2 and R3 and R4 using the
interface global IPv6 address. Announce the global prefix and unique-local
prefix.
Activate eBGP peering between R2 and R3 using their global
IPv6 addresses
On R2 and R3, filter the unique-local prefix (fc00::/10) so that you do not
receive them from the peers
Use show commands to view the BGP configuration
#show bgp ipv6 unicast summary
#show bgp ipv6 unicast neighbors <IP address> advertised-routes
#show bgp ipv6 unicast neighbors <IP address> routes
#show ipv6 route bgp
Use show bgp ipv6 unicast to see the routes in the BGP table
Answer review questions at the end of this section
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 90
BGP Configuration Example
iBGP iBGP
Network A Network B
g0/0
g0/0
g0/1 g0/2 g0/3 H2
H1
R2 R3 R4
R1 g0/1 g0/2 g0/3 g0/0
g0/0
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 91
Lab 5: Routing with BGP (1)
Task: Configuring BGP
Refer to table 2 for the router address and autonomous system
(AS) number
Enable the debugging of BGP
#debug bgp ipv6
Define your router as a BGP router with your AS number
(config)#router bgp <AS number>
Because IPv4 has not been configured yet and BGP protocol uses
the IPv4 address as an identifier, a specific command to identify
the router-id is needed. Use table 2 to find the router-id. Then
configure the router BGP router-id.
(config-router)#bgp router-id <your router-id>
Deactivate the IPv4 default peering
(config-router)#no bgp default ipv4-unicast
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 92
Lab 5: Routing with BGP (2)
R1 65012 192.168.60.1
R2 65012 192.168.60.2
R3 65034 192.168.60.3
R4 65034 192.168.60.4
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 93
Lab 5: Routing with BGP (3)
Activate iBGP peering between R1 and R2 and R3 and R4 using the
Ethernet 1/0 global IPv6 address. Announce your global prefix and
your unique-local prefix.
(config-router)#neighbor <peer’s global IPv6 address > remote-as <AS number>
(config-router)#neighbor <peer’s global IPv6 address > update-source
(config-router)#address-family ipv6
(config-router-af)#neighbor <peer’s global IPv6 address> activate
(config-router-af)#network global network prefix>/64 R1 and R4
(config-router-af)#network < unique local prefix>/64 only
(config-router-af)#exit
Look at the BGP routing table to determine if you received BGP routes
from your neighbor
#show bgp ipv6 unicast summary
#show bgp ipv6 unicast neighbors <IP address> advertised-routes
#show bgp ipv6 unicast neighbors <IP address> routes
#show ipv6 route bgp
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 94
Lab 5: Routing with BGP (4)
Activate eBGP peering between R2 and R3 using their global
IPv6 addresses
(config-router)#neighbor <peer’s global IPv6 address> remote-as <AS number>
(config-router)#neighbor <peer’s global IPv6 address>
(config-router)#address-family ipv6
(config-router-af)#neighbor <peer’s global IPv6 address> activate
(config-router-af)#end
Look at the BGP routing table to determine if you received BGP routes
from your neighbor
#show bgp ipv6 unicast summary
#show bgp ipv6 unicast neighbors <IP address> advertised-routes
#show bgp ipv6 unicast neighbors <IP address> routes
#show ipv6 route bgp
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 95
Lab 5: Routing with BGP (5)
Task: Filtering BGP Routes
On R2 and R3, filter the unique-local prefix (fc00::/10) so that you do not
receive them from the peers
(config)#ipv6 prefix-list lab5 deny fc00::/10 le 128
(config)#ipv6 prefix-list lab5 permit ::/0 le 64
(config)#router bgp <your AS number>
(config-router)#address-family ipv6
(config-router-af)#neighbor <peer’s global IPv6 address> prefix-list lab5 in
(config-router-af)#exit
On R1 and R4, verify that you do not receive any unique-local routes via
BGP from the remote peer. Only the global IPv6 prefixes should
be received.
#clear bgp ipv6 unicast <peer AS number> in
#show bgp ipv6 unicast
#show bgp ipv6 unicast neighbors <IP address> advertised-routes
#show bgp ipv6 unicast neighbors <IP address> routes
#show ipv6 route bgp
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 96
Lab 6: Manual
Tunneling in IPv6
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 97
Lab 6: Task Summary
Disable IPv6 routing protocols on all routers
Remove the IPv6 addresses on g0/2 interface of R2 and R3
Configure IPv4 address on g0/2 interface of R2 and R3, use
192.168.30.<router xx>/24
Configure tunnel interfaces on R2 and R3 and configure them for
manual tunneling
Enable RIPng on both tunnel endpoints and other relevant
interfaces on all four routers
Enable EIGRPv6 over the tunnel
Enable mutual redistribution between EIGRPv6 and RIPng on
R2 and R3
Use show commands to view the IPv6 routing table and tunnel
interface statistics
Use ping to verify IPv6 connectivity between H1 and H2
Answer review questions at the end of section 7
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 98
Manual Tunnel Configuration Example
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 99
Lab 6: Using Tunnels (Manual-1)
Task: Configuring the Tunnel
First disable both OSPFv3 and BGP on all routers
Remove the IPv6 address on g0/2 interface between R2
and R3
(config)#no ipv6 router ospf 1
(config)#no router bgp <your AS>
(config)#interface gxx
(config-if)#no ipv6 address
(config-if)#no ipv6 enable
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 101
Lab 6: Using Tunnels (Manual-3)
Configure OSPFv3 on the routers R2 and R3 with a
Router-ID
(config)#ipv6 router ospf 1
(config-rtr)#router-id 192.168.30.xx (where xx is your router #)
Enable OSPFv3 on tunnel interfaces on R2 and R3
(config)#interface tunnel 0
(config-if)#ipv6 ospf 1 are 0
Enable mutual redistribution on R2 and R3 between
RIPng and OSPFv3
(config)#ipv6 router ospf 1
(config)#redistribute rip lab
(config)#ipv6 router rip lab
(config)#redistribute ospf 1
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 102
Lab 6: Using Tunnels (Manual-4)
Verify that RIPng updates are carried over the tunnel
#show ipv6 route
Look at Tunnel 0 debugs and statistics
#debug tunnel
#show interface tunnel 0 accounting
Verify connectivity between R1 & R4 using the
ping command
#ping <global IPv6 address of peer>
Verify connectivity between H1 and H2 using the
ping command
#ping <global IPv6 address of peer Host>
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 103
Lab 7:Prefix Delegation
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 104
CONFIG : ISP ROUTER(R2)
ipv6 unicast-routing
ipv6 local pool PREFIX 2002:10:10::/48 56……………PREFIX USED BY CUSTOMER
ipv6 dhcp pool PREFIX
prefix-delegation pool PREFIX……………………..ANNOUCE IT CREATING DHCP POOL
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
media-type rj45
ipv6 address 2001:DB8:1122:12::2/64
ipv6 dhcp server PREFIX…………………….APPLY THE DHCP POOL.
no shut
R1 CONFIG: THIS IS ACT AS COUSTOMER:
ipv6 unicast-routing
ipv6 cef
ipv6 dhcp pool CLIENT
address prefix 2002:10:10:10::/64
interface GigabitEthernet0/0
no ip address
duplex auto
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 105
speed auto
media-type rj45
ipv6 address OK ::10:0:0:0:1/64……………………..IT GETTING /56 FROM ISP….10 IS SUBNET ID.
ipv6 dhcp server CLIENT
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
media-type rj45
ipv6 address autoconfig default
ipv6 dhcp client pd OK…………………HERE OK IS LOCAL TAG USED BY THIS ROUTER LINK FACING INTERNAL(G0/0)
NO SHUT
H1 CONFIG:……….THIS IS ACT AS END POINT.
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
media-type rj45
ipv6 address dhcp
ipv6 enable
VERIFY: HOW ISP SENDING PREFIXES:
ISP#SHOw IPV6 DHcp BInding
Client: FE80::5209:FF:FE03:1
DUID: 00030001500900030000
Username : unassigned
VRF : default
Interface : GigabitEthernet0/1
IA PD: IA ID 0x00030001, T1 302400, T2 483840
Prefix: 2002:10:10::/56
preferred lifetime 604800, valid lifetime 2592000
expires at Mar 13 2021 04:20 AM (2590579 seconds)
VERIFY HOW R1 IS GETTING THIS:
R1#show ipv6 route
IPv6 Routing Table - default - 7 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 106
RL - RPL, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
la - LISP alt, lr - LISP site-registrations, ld - LISP dyn-eid
lA - LISP away, a - Application
ND ::/0 [2/0]
via FE80::5209:FF:FE04:1, GigabitEthernet0/1
NDp 2001:DB8:1122:12::/64 [2/0]
via GigabitEthernet0/1, directly connected
L 2001:DB8:1122:12:5209:FF:FE03:1/128 [0/0]
via GigabitEthernet0/1, receive
S 2002:10:10::/56 [1/0]…………….prefix allocate by isp
via Null0, directly connected
C 2002:10:10:10::/64 [0/0]
via GigabitEthernet0/0, directly connected
L 2002:10:10:10::1/128 [0/0]………………..ip config on internal interfaces.
via GigabitEthernet0/0, receive
L FF00::/8 [0/0]
via Null0, receive
verify how client is getting ip: H1:
Client#show ipv6 rou
Client#show ipv6 route
IPv6 Routing Table - default - 3 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
RL - RPL, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
la - LISP alt, lr - LISP site-registrations, ld - LISP dyn-eid
lA - LISP away, a - Application
ND ::/0 [2/0]
via FE80::5209:FF:FE03:0, GigabitEthernet0/0
LC 2002:10:10:10:4D05:8E15:275A:4898/128 [0/0]…………..prefix from dhcp server.
via GigabitEthernet0/0, receive
L FF00::/8 [0/0]
via Null0, receive
H1#show ipv6 interface g0/0
GigabitEthernet0/0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::5209:FF:FE01:0
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 107
No Virtual link-local address(es):
Global unicast address(es):
2002:10:10:10:4D05:8E15:275A:4898, subnet is 2002:10:10:10:4D05:8E15:275A:4898/128
Joined group address(es):
FF02::1
FF02::1:FF01:0
FF02::1:FF5A:4898
MTU is 1500 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ICMP unreachables are sent
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds (using 30000)
ND NS retransmit interval is 1000 milliseconds
Default router is FE80::5209:FF:FE03:0 on GigabitEthernet0/0
PING FROM H1 TO ISP ROUTER.
H1#PING 2001:DB8:1122:12::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:DB8:1122:12::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/12/19 ms
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 108
Lab 8:IPV6 MULTICAST
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 109
IPV6 MULTICAST WITH EMMBEDED RP
IF RP ADDRESS IS : 2001:DB8:33:3::3/64
THEN ERP IS : FF7E:0340:2001:DB8:33:3:10:10
FF = MULTICAST START
7= FLAG FOR ERP
E= GLOBAL SCOPE
0= FIX
3 IS RP ADDRESS LAST NUMBER:
40 IS /64 HEX NOTATION
2001:DB8:33:3/64 NETWORK PREFIX
10:10 LAST 32 BIT IS GROUP ADDRESSS
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 110
R1 ,R2,R3,R4 IS CONFIG WITH IP ADDRESS GIVEN IN TABLE AND OSPF 1 AREA 0 IS ENABLE
ENABLE THE IPV6 MULTICAST -ROUTING IN ALL THE DEVICES IN THE TOPOLOGY
ipv6 multicast-routing……………….config in all router and host.in global mode.
R3 IS ACT AS RP:
interface Loopback0
no ip address
ipv6 address 2001:DB8:33:3::3/64
ipv6 ospf 1 area 0
ipv6 pim rp-address 2001:DB8:33:3::3…………………….command to config rp.
He re H1 is receiver and H2 IS SENDER
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
media-type rj45
ipv6 address dhcp
ipv6 address autoconfig default
ipv6 enable
ipv6 mld join-group FF7E:340:2001:DB8:33:3:10:10
end
verification: on R3:
R3#show ipv6 pim range-list
Static SSM Exp: never Learnt from : ::
FF33::/32 Up: 00:31:18
FF34::/32 Up: 00:31:18
FF35::/32 Up: 00:31:18
FF36::/32 Up: 00:31:18
FF37::/32 Up: 00:31:18
FF38::/32 Up: 00:31:18
FF39::/32 Up: 00:31:18
FF3A::/32 Up: 00:31:18
FF3B::/32 Up: 00:31:18
FF3C::/32 Up: 00:31:18
FF3D::/32 Up: 00:31:18
FF3E::/32 Up: 00:31:18
FF3F::/32 Up: 00:31:18
Static SM RP: 2001:DB8:33:3::3 Exp: never Learnt from : ::
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 111
FF00::/8 Up: 00:28:53
verify on R4:
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 112
Lab 9:IPV6 Zone Based FW
Introduction
The Cisco IOS Zone Based Firewall is one of the most advanced forms of stateful firewall used in the Cisco IOS devices. The zone based
firewall (ZFW) is the successor of Classic IOS firewall or CBAC (Context-Based Access Control). In Zone-Based Policy Firewall, multiple
security zones are defined. Each router interface is configured to be part of one of the zones. The traffic flow is unrestricted between
interfaces belonging to same zone, but traffic flow between two different zones is blocked unless an access policy is defined between
them. In traditional firewall, the policies are applied on the interface itself, whereas in zone-based firewall they are applied between the
zones. Cisco IOS Zone-Based Firewall for IPv6 coexists with Cisco IOS Zone-Based Firewall for IPv4 in order to support IPv6 traffic.
Configuration Example:
The below topology brings a simple network containing two security zones. Host H1 (Client) and H2 (Admin) are connected to inside
interface Gigabit Ethernet 0/1 accessing web server connected to outside interface Gigabit Ethernet 0/0. We will have the goal of allowing
1) Only HTTP and HTTPS traffic for H1 (Client) from the inside to the outside
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 113
2) HTTP, HTTPS and ICMP for H2 (Admin) from the inside to the outside
All other traffic should drop from inside to outside.
Topology Diagram:
Configuration Steps:
Configuration of Zone based firewall on router consists of 5 steps shown as follows:
ZFW(config-sec-zone)#description inside_zone
ZFW(config-sec-zone)#exit
ZFW(config-sec-zone)#description outside_zone
ZFW(config-sec-zone)#exit
ZFW(config)#interface gig0/1
ZFW(config-if)#exit
ZFW(config-if)#interface gig0/0
ZFW(config-if)#exit
By default, traffic between interfaces in different zones cannot talk to each other while these in the same zone can.
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 115
Step 3: Configure the class-maps:
Class maps provide traffic classification and that will reference the traffic to inspect. It is based on one or more match conditions. It can
match based on ACL, protocol or another class map. Conditions can use OR (default), AND, or NOT.
Step 4: Define the policy for this traffic with a policy map:
Policy maps associate actions with traffic classes. Policy maps determine the firewall policy applied to a class, that can be Pass, drop,
Inspect, Log, Reset. There is always an implicit class-default as the last class in each policy-map. The default action of class-default is
drop.
ZFW(config-pmap-c)#inspect
ZFW(config-pmap-c)#exit
ZFW(config-pmap)#class class-default
ZFW(config-pmap-c)#drop
ZFW(config-pmap-c)#exit
You can also configure Parameter maps for connecting thresholds, timeouts, and other parameters pertaining to the inspect action.
ZFW(config-profile)#exit
ZFW(config)#
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 117
ZFW(config)#zone-pair security IN-TO-OUT source INSIDE destination OUTSIDE
ZFW(config-sec-zone-pair)#exit
ZFW(config)#
Verification:
1) To display zones, descriptions, and interfaces zones are applied to use "show zone security" command.
2) To display zone pairs and service policy associated with each zone pair use "show zone-pair security" command.
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 118
3) Use "sh policy-map type inspect zone-pair sessions" to displays Cisco stateful packet inspection sessions created because a
policy map is applied on the specified zone pair.
The below output display, when session established by Host H2 (2001::2/128) to Server for HTTP and HTTPS.
4) The default action of class-default is drop and it is configured with log option. From the below output you can see, when Host
H1(2001::3) try to ping S1, firewall drops these packets and display log message on the terminal.
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 119
Lab 10:IPV6 PE&VPE
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 120
CONFIG IPV4 ADDRESS AND OSPF AREA 0
AND LDP IN MPLS CLOUD FROM R1 TO R4.
CONFIG BGP BEETWEEN R1 TO R5 AND R4
TO R6.
CONFIG INT LO0 WITH /32 ON R1 TO R4 SEE THE IP GIVEN IN TOPOLOGY
R1 BGP CONFIG :
router bgp 1234
bgp log-neighbor-changes
no bgp default ipv4-unicast
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 121
neighbor 2001:DB8:1234:1::5 remote-as 5
neighbor 192.168.60.4 remote-as 1234
neighbor 192.168.60.4 update-source Loopback0
!
address-family ipv4
exit-address-family
!
address-family ipv6
neighbor 2001:DB8:1234:1::5 activate
neighbor 192.168.60.4 activate
neighbor 192.168.60.4 next-hop-self
neighbor 192.168.60.4 send-label
exit-address-family
R4 BGP CONFIG:
router bgp 1234
bgp router-id 192.168.60.4
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 2001:DB8:1234:4::6 remote-as 6
neighbor 192.168.60.1 remote-as 1234
neighbor 192.168.60.1 update-source Loopback0
!
address-family ipv4
exit-address-family
!
address-family ipv6
neighbor 2001:DB8:1234:4::6 activate
neighbor 192.168.60.1 activate
neighbor 192.168.60.1 next-hop-self
neighbor 192.168.60.1 send-label
exit-address-family
VERIFY BGP TABLE ON R5
R5#show bgp ipv6 unicast
BGP table version is 9, local router ID is 5.5.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 122
Network Next Hop Metric LocPrf Weight Path
*> 2001:DB8:1234:1::/64
:: 0 32768 ?
*> 2001:DB8:1234:4::/64
2001:DB8:1234:1::1
0 1234 6 ?
*> 2005::/64 :: 0 32768 ?
*> 2006::/64 2001:DB8:1234:1::1
0 1234 6 ?
VERIFY BGP TABLE ON R6
R6#show bgp ipv6 unicast
BGP table version is 9, local router ID is 6.6.6.6
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 126
TECRST-2300
14448_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public