3 Ipv6 Routing
3 Ipv6 Routing
3 Ipv6 Routing
ISP Workshops
2
IPv6 Configuration on Cisco IOS
p To
enable IPv6 the following global
commands are required:
Router(config)# ipv6 unicast-routing
n Also enable IPv6 CEF (not on by default):
Router(config)# ipv6 cef
n Also disable IPv6 Source Routing (enabled by
default):
Router(config)# no ipv6 source-routing
3
IPv6 Configuration
p To configure a global or unique-local IPv6 address
the following interface command should be
entered:
5
IPv6 Configuration
Router1# conf t
Router1(config)# ipv6 unicast-routing
Router1(config)# ipv6 cef
Router1(config)# int fast 0/0
Router1(config-int)# ipv6 enable
Router1(config-int)# ^Z
10
Static Routing
p Syntax is:
n ipv6 route ipv6-prefix/prefix-length {ipv6-address |
interface-type interface-number} [administrative-
distance]
p Static Route
11
Default Routing Example
IPv6
Internet Router2
:e
:a Ethernet0
LAN1:
2001:db8:2:1::/64 Router1
:a Ethernet1
LAN2:
2001:db8:2:2::/64
ipv6 unicast-routing
!
interface Ethernet0
ipv6 address 2001:db8:2:1::a/64
!
interface Ethernet1
ipv6 address 2001:db8:2:2::a/64
! Default Route
ipv6 route ::/0 2001:db8:2:1::e to Router2 12
Dynamic Routing Protocols in IPv6
p Dynamic Routing in IPv6 is unchanged from IPv4:
n IPv6 has 2 types of routing protocols: IGP and EGP
n IPv6 still uses the longest-prefix match routing
algorithm
p IGP
n RIPng (RFC 2080)
n Cisco EIGRP for IPv6
n OSPFv3 (RFC 5340)
n Integrated IS-ISv6 (RFC 5308)
p EGP
n MP-BGP4 (RFC 4760 and RFC 2545)
13
Configuring Routing Protocols
p Dynamic routing protocols require router-id
n Router-id is a 32 bit integer
n IOS auto-generates these from loopback interface
address if configured, else highest IPv4 address on the
router
n Most ISPs will deploy IPv6 dual stack – so router-id will
be automatically created
p Early adopters choosing to deploy IPv6 in the
total absence of any IPv4 addressing need to be
aware:
n Router-id needs to be manually configured:
ipv6 router ospf 100
router-id 10.1.1.4
14
RIPng
p For the ISP industry, simply don’t go here
p ISPs do not use RIP in any form unless
there is absolutely no alternative
n And there usually is
p RIPngwas used in the early days of the
IPv6 test network
n Sensible routing protocols such as OSPF and
BGP rapidly replaced RIPng when they became
available
15
EIGRP for IPv6
p Cisco EIGRP has had IPv6 protocol support added
n Just another protocol module (IP, IPX, AppleTalk) with
three new TLVs:
p IPv6_REQUEST_TYPE (0X0401)
p IPv6_METRIC_TYPE (0X0402)
p IPv6_EXTERIOR_TYPE (0X0403)
n Router-ID is still 32-bit, protocol is still 88
p Uses similar CLI to existing IPv4 protocol support
p Easy deployment path for existing IPv4 EIGRP
users
p In Cisco IOS Release 12.4 onwards
16
EIGRP for IPv6
p Some differences:
n Hellos are sourced from the link-local address and
destined to FF02::A (all EIGRP routers). This means that
neighbors do not have to share the same global prefix
(with the exception of explicitly specified neighbours
where traffic is unicasted).
n Automatic summarisation is disabled by default for IPv6
(unlike IPv4)
n No split-horizon in the case of EIGRP for IPv6 (because
IPv6 supports multiple prefixes per interface)
17
EIGRP for IPv6—Configuration &
Display
Router 2
Ethernet0 = 2001:db8:2:1:245:21ff:fe00:feed
19
Differences from OSPFv2
p Runs over a link, not a subnet
n Multiple instances per link
p Topology not IPv6 specific
n Router ID
n Link ID
20
OSPFv3 configuration example
Router1# Area 0
interface Ethernet0
ipv6 address 2001:db8:1:1::1/64 Router2
ipv6 ospf 1 area 0
LAN1: 2001:db8:1:1::/64
interface Ethernet1 Eth0
ipv6 address 2001:db8:2:2::2/64
ipv6 ospf 1 area 1 Router1
Eth1
ipv6 router ospf 1
router-id 1.1.1.1 LAN2: 2001:db8:2:2::/64
21
ISIS Standards History
p ISO 10589 specifies the OSI IS-IS routing
protocol for CLNS traffic
p RFC 1195 added IPv4 support
n Also known as Integrated IS-IS (I/IS-IS)
n I/IS-IS runs on top of the Data Link Layer
p RFC5308 adds IPv6 address family support
p RFC5120 defines Multi-Topology concept
n Permits IPv4 and IPv6 topologies which are not identical
n Permits roll out of IPv6 without impacting IPv4
operations
22
Cisco IOS IS-IS dual stack
configuration
Router1#
interface ethernet 1
ip address 10.1.1.1 255.255.255.0
ipv6 address 2001:db8:1::a/64
LAN1: 2001:db8:1::a/64 ip router isis
ipv6 router isis
Ethernet 1
interface ethernet 2
Router1 ip address 10.2.1.1 255.255.255.0
Ethernet 2 ipv6 address 2001:db8:2::a/64
ip router isis
LAN2: 2001:db8:2::a/64 ipv6 router isis
router isis
net 42.0001.0000.0000.072c.00
metric-style wide
Dual IPv4/IPv6 configuration.
Redistributing both IPv6 static routes
and IPv4 static routes. 23
Multi-Protocol BGP for IPv6 –
RFC2545
p IPv6 specific extensions
n Scoped addresses: Next-hop contains a global
IPv6 address and/or potentially a link-local
address
n NEXT_HOP and NLRI are expressed as IPv6
addresses and prefix
n Address Family Information (AFI) = 2 (IPv6)
p Sub-AFI = 1 (NLRI is used for unicast)
p Sub-AFI = 2 (NLRI is used for multicast RPF check)
Router1#
interface Ethernet0
ipv6 address 2001:db8:2:1::f/64
!
router bgp 65001
bgp router-id 10.10.10.1
no bgp default ipv4-unicast
neighbor 2001:db8:2:1::1 remote-as 65002
address-family ipv6
neighbor 2001:db8:2:1::1 activate
neighbor 2001:db8:2:1::1 prefix-list bgp65002in in
neighbor 2001:db8:2:1::1 prefix-list bgp65002out out
exit-address-family
25
Routing Protocols for IPv6
Summary
p Support for IPv6 in the major routing
protocols
p More details for OSPF, ISIS and BGP in
separate presentations
26
IPv6 Routing Protocols
ISP Workshops
27