Routing Part 9 Ipv6
Routing Part 9 Ipv6
Routing Part 9 Ipv6
OSPFv3:
Comparing OSPFv2 and OSPFv3
Feature
OSPFv2
IP protocol type
89
Supports VLSM
Yes
Router-ID criteria, compared to v2
Same
LSA flooding, compared to version 2
Same
Area structure, compared to version 2
Same
Packet types, compared to version 2
Same
32bit LS-ID
Yes
Use cost, derived from interface BW
Yes
Metric meaning infinity
232-1
Support route tags
Yes
Elected DR based on highest interface
Yes
priority, then based on highest Router-ID
Periodic Re-flooding
30 minutes
Multicast All-SPF routers
224.0.0.5
Multicast All-DRs
224.0.0.6
Multiple instances per interface
No
Address used as next-hope IP-Address
InterfaceAddress
Authentication
OSPF Specific
OSPFv3
89
Yes
Same
Same
Same
Yes
Yes
Yes
232-1
Yes
Yes
30 minutes
FF02::5
FF02::6
Yes
Link Local Address
Use IPv6 AH/ESP
AH=Authentication
Header of IPSec
-Configuration:
Note:
While configuring IPV6, order of commands does matter. So, configure IPv6
addresses first and enable IPv6 routing on routers or else most of commands might
get rejected.
Step 1: Create OSPFv3 process on router.
Router(config)# ipv6 ospf Process-ID
Step 2: Enable OSPFv3 on the interface.
Router(config-if)# ipv6 ospf Process-ID area Area-ID
-Unlike EIGRP, OSPF starts initially in ENABLED state by default.
-To manually start/stop the OSPF process
Router(config-router)# [no] shutdown
Step 3: Configure Router-ID.
Router(config-router)# router-id IP-Address
Important Points:
-Beyond basic configuration, many of option features match when comparing OSPFv2
and OSPFv3.
Concept & commands related to stub-areas are identical.
Like OSPFv2, OSPFv3 can only summarize on ABRs and ASBRs, using similar
commands.
Router(config-router)# area Area-ID range ipv6-prefix/prefix-length
Like OSPFv2, OSPFv3 uses the concept of interface types.
Router(config-if)# ipv6 ospf network type
These types dictate whether OSPFv4 attempts to elect a DR/BDR & whether
needs to configure neighbors with following command.
Router(config-if)# ipv6 ospf neighbor Neighbor-IP
-Verification:
Function
Show all routes
Show all OSPF learned
routes
Details on route for specific
prefix
Router-ID , Timers, ABR ,
SPF states
List of routing information
sources
Interfaces assigned to each
area
OSPF interface-costs,
state, area , number of
neighbors
Detailed information about
interfaces
OSPF Database
Hello-Interval
Hold-Interval
IPv4 command
Show ip route
Show ip route ospf
IPv6 command
Show ipv6 route
Show ipv6 route rip
Show ip route
subnet-mask
Show ip ospf
Show ip protocol
C. Tunneling:
-It refers to a process by which one router/host encapsulates an IPv6 packet inside IPv4
packet. Networking devices forward the IPv4 packet. Ignoring the fact that packets
payload is IPv6 packet. Some later device/host decapsulate the original IPv6 packet
and forwards it to the final destination.
-Tunneling IPv6 over IPv4 results in fewer configurations as lesser number of routers is
needed.
-Types of Tunneling:
a) Point to Point Tunneling:
-Works best when IPv6 traffic occurs regularly.
-Static-tunnels are configured in point-to-point topology.
-For point to point tunneling, two devices (and only two) sit at the end of tunnel.
Step 1: R1 receives an IPv6 packet in its LAN interface & decides that packet
should be forwarded out its multipoint tunnel interface.
Step 2: R1 analyses the destination IPv6 address (listed as Y), deriving the
tunnel endpoints IPv4 address (in this case R9s IPv4 address).
Step 3: R1 builds an IPv4 packet header, with its own address as source
Step 4: R1 puts original IPv6 packet into new IPv4 packet.
Method
Manually Created
Tunnel (MCT)
Generic Routing
Encapsulation
(GRE)
Static/
Notes
Dynamic
Static -Supports IPv6 IGPs.
-Default Passenger MTU is 1480Bytes.
-Supports IPv6 IGPs.
Static -Default Passenger MTU is 1476Bytes.
-Cisco Proprietary.
-Do not support IPv6 IGPs.
Automatic 6to4
Intra Site
Automatic
-Do not support. IPv6 IGPs.
Tunneling Address Dynamic -Uses 7th/8th quartets to store IPv4 addresses.
Protocol
(ISATAP)
Other tunneling techniques : Teredo, 6PE, 6VPE, and mGRE v6 over v4
-Verification:
-Show running-config
-Show interface tunnel number
Note:
IPv6 must be enabled on routers that create tunnel.
If no tunnel mode is defined, Tunnel mode defaults to GRE since GRE is cisco
proprietary.
For MCT/GRE tunnel to be up between two routers, tunnel interfaces must be in
same subnet.
If two router tunnel modes do not match, the tunnel interfaces can stay up/up, but
routers cannot forward packets due to mismatched encapsulation.
-Example:
-Multipoint IPv6 tunnels do not support IGPs, but to trigger dynamic encapsulation
process for tunnel, routers must route IPv6 traffic out of tunnel interface.
Solution:
Since all the IPv6 address 2002::/16, engineer plans a static route for prefix
2002::/16 , forwarding all these packets destined for special 2002::/16
addresses out multipoint tunnel interface.
-So what happens when IPv6 packet now arrives at one of routers?
Step 1: Packets destination IPv6 address begins with 2002, so router tries to
forward the packet out its tunnel interface, triggering the process.
Step 2: The router notices the tunnel type (automatic 6to4) which tells IOS to
encapsulate and send the IPv6 packet to destination IPv4 address found in 2nd/3rd
quartet.
Step 4: Define the source IPv4 address of the tunnel using the tunnel source
(This address must be an IPv4 address configured on the local router.)
Router(config-if)# tunnel source {interface-id | IPv4-address}
Step 5: Do NOT define a tunnel destination.
Step 6: Define the Tunnel mode (it tells the router to look 2 nd/3rd quartet to find
destination IPv4 & perform tunneling.)
Router(config-if)# tunnel mode ipv6ip 6to4
Step 7: Define the Tunnel IPv6 address.
Router(config-if)# ipv6 address address/prefix-length
Step 8: Define a static route for 2002::16, with outgoing interface of the tunnel interface.
Router(config)# ipv6 route 2002::/16 tunnel tunnel-number
Note:
-To find IPv6 equivalent of IPv4(acquired via 6to4)
Step 1: Configure IPv4 address of interface.
Step 2: Following command converts IPv4 IPv6.
Router(config)# ipv6 general-prefix prefix-name 6to4 interface-type mod/num
Step 3: Following command displays the converted IPv6 address.
Show ipv6 general-prefix
-Verification:
-
Show running-config
Show ipv6 route
Show ipv6 interface brief
Show interface tunnel number
-Example:
The first static route is used to tell routers how to reach loopback 0 interfaces of
other sides. The routers will have to do recursive routing to an entry for
2002::/16,which is why we need the second static route.
Step 6: Verifying.
Futura# ping 2001::3 source loopback 0
automatic6to4:
Step 1: Plan the prefixes & addresses for LANs using global unicast range
assigned to enterprise.
Step 2: Configure an additional static route for each remote subnet, configuring
tunnel as outgoing interface and configuring next-hop IPv6 address. The
next hop address, which embeds the destination IPv4 address as 2 nd/3rd
octet. You can also configure MBGP to learn the routes.
For R1 to forward IPv6 traffic to IPv6 hosts PC3 & PC4, R1 would need following two
additional routes.
R1(config)# ipv6 route 2000:0:1:3::/64 tunnel0 2002:0A09:0903::
R1(config)# ipv6 route 2000:0:1:4::/64 tunnel0 2002:0A09:0904::
-When a router is added to multipoint tunnel, each router already on tunnel needs to
add an additional static route or alternate BGP configuration.
-Consider the 4 prefixes; one each for 3 LAN segments and 1 for tunnel interface.
-When R1 receives the IPv6 packet destined for R3s LAN (2000:0:1:3::/64), R1s
routing table lists a static route for R3s LAN(2000:0:1:9:5EFE:0A09:0903).When R1
receives an IPv6 packet destined for R3s LAN,R1 matches the static route and also
notices that outgoing interface is an ISATAP tunnel, so R1 derives tunnels destination
IPv4 address from last 2 quartets of next-hop address of their
route(10.9.9.30A09:0903).These values convert to 10.9.9.3.R1 can then encapsulate
and send IPv4 packet to 10.9.9.3.
-Configuring ISATAP:
Note:
IGPs cannot be configured on dynamic tunnels but static routing and MBGP can still
be configured.
IPv6 addresses of ISATAP are in same subnet.
Step 1: Enable IPv6 routing on a router.
Router(config)# ipv6 unicast-routing
Step 2: Configure the planned loopback interface. (Ensure that the IPv4 IGP
advertises a route for this address.)
Router(config)# interface loopback number
Router(config-if)# ip address IP-Address Subnet-Mask
Step 3: Create a tunnel interface using the interface tunnel number command, selecting
a locally significant integer as the tunnel interface number.
Router(config)# interface tunnel Number
Step 4: Define the source IPv4 address of the tunnel using the tunnel source
(This address must be an IPv4 address configured on the local router.)
Router(config-if)# tunnel source {interface-id | IPv4-address}
Step 5: Do NOT define a tunnel destination.
Step 6: Define the Tunnel mode (it tells the router to look 7 th/8th quartet to find
destination IPv4 & perform tunneling.)
Router(config-if)# tunnel mode ipv6ip isatap
Step 7: Define the Tunnel IPv6 address using EUI-64.
Router(config-if)# ipv6 address prefix/prefix-length eui-64
Step 8: Define static IPv6 routes (using the ipv6 route global command) for each
destination IPv6 prefix, with an outgoing interface and next-hop address. (The
next-hop should be the destination routers IPv6 address that embeds the IPv4
address as the last two octets.)
-Verification:
-
Show running-config
Show ipv6 route
Show ipv6 interface brief
Show interface tunnel number
Automatic6to4 v/s ISATAP
Tunnel
Automatic 6to4
Uses reserved IPv6 address prefix
Yes (2002::/16)
Supports use of global-unicast addresses.
Yes
Quartets holding IPv4 addresses
2nd/3rd
ISATAP
No
Yes
7th/8th
Sometimes
Sometimes
No
No
Yes
Yes