Basic IPv6 Routing Setup – Example
This is a simple example and step-by-step configuration of two LAN segments connecting over a Frame Relay WAN link. IPv6 Addressing is used.
Before configuring IPv6, use Cisco CDP to see the current interface used to connect from R1 to R2 over the WAN Link (Frame Relay):
R1#sh cdp nei
Capability Codes: R – Router, T – Trans Bridge, B – Source Route Bridge
S – Switch, H – Host, I – IGMP, r – RepeaterDevice ID Local Intrfce Holdtme Capability Platform Port ID
2924-XL-EN Fas 1/1 179 T S WS-C2924-XFas 0/6
R2 Ser 1/0.102 141 R S 2611 Ser 0/0.201
R1#sh run int s1/0.102
Building configuration…Current configuration : 118 bytes
!
interface Serial1/0.102 point-to-point
ip address 10.1.2.1 255.255.255.252
frame-relay interface-dlci 102
end
NOW configure IPv6 addresses on WAN
and then configure LAN interfaces (loopbacks used in this example):
R1#
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int s0/1.102
R1(config-subif)#ipv6 address ?
X:X:X:X::X IPv6 link-local address
X:X:X:X::X/<0-128> IPv6 prefix
autoconfig Obtain address using autoconfigurationR1(config-subif)#ipv6 add 2001:210:10:1::1/64
R1(config-subif)#descr Global IANA Delegated Address – One end of WAN
R1(config-subif)#ipv6 enable
R1(config-subif)#^Z
R1#wrR1(config)#int lo 6
R1(config-if)#ipv6 add 1fe:1111::1/16
R1(config)#description subnet 1111 – Global (Unformatted Prefix) Address
R1(config-if)#^Z
R1#wr
NOW verify. Notice the interfaces have more than one address. The Link Local has been configured
R1#sh ipv6 int br
Serial0/0 [administratively down/down]
unassigned
Serial0/1 [administratively down/down]
unassigned
Serial0/1.102 [administratively down/down]
FE80::210:7BFF:FE32:6CF1
2001:210:10:1::1
Serial0/2 [administratively down/down]
unassigned
Serial0/3 [administratively down/down]
unassigned
FastEthernet1/0 [administratively down/down]
unassigned
Serial1/0 [up/up]
unassigned
Serial1/0.102 [up/up]
unassigned
Serial1/0.103 [up/up]
unassigned
Serial1/0.104 [up/up]
unassigned
FastEthernet1/1 [up/up]
unassigned
Serial1/3 [administratively down/down]
unassigned
Loopback6 [up/up]
FE80::210:7BFF:FE32:6CF1
1FE:1111::1
NOW connect to the other end of the WAN and configure the LAN and WAN interfaces:
R1#10.1.2.2
Trying 10.1.2.2 … OpenR2>en
Password:
R2#
R2#sh cdp nei
Capability Codes: R – Router, T – Trans Bridge, B – Source Route Bridge
S – Switch, H – Host, I – IGMP, r – RepeaterDevice ID Local Intrfce Holdtme Capability Platform Port ID
R1 Ser 0/0.201 170 R S 3620 Ser 1/0.102
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int s0/0.201
R2(config-subif)#ipv6 add 2001:210:10:1::2/64
R1(config-subif)#descr Global IANA Delegated Address – One end of WAN
R2(config-subif)#int lo 6
R2(config-if)#ipv6 en
R2(config-if)#ipv6 add 1fe0:2222::1/16
R1(config)#description subnet 2222 – Global (Unformatted Prefix) Address
R2(config-if)#^Z
R2#wr
Building configuration…
[OK]
R2#R2#sh ipv6 int br
Ethernet0/0 [up/down]
unassigned
Serial0/0 [up/up]
unassigned
Serial0/0.201 [up/up]
FE80::209:43FF:FE6C:F0E0
2001:210:10:1::2
Ethernet0/1 [administratively down/down]
unassigned
Serial0/1 [administratively down/down]
unassigned
Virtual-Access1 [up/up]
unassigned
Loopback6 [up/up]
FE80::209:43FF:FE6C:F0E0
1FE0:2222::1
R2#
NOW show the routing table to see the directly connected networks. Note that a static route or OSPFv3 / RIPNG will need to be configured.
R2#sh ipv6 rou
IPv6 Routing Table – 6 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
O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2
C 1FE0::/16 [0/0]
via ::, Loopback6
L 1FE0:2222::1/128 [0/0]
via ::, Loopback6
C 2001:210:10:1::/64 [0/0]
via ::, Serial0/0.201
L 2001:210:10:1::2/128 [0/0]
via ::, Serial0/0.201
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
R2#
TO configure dynamic routing using RIP NG:
R1(config-subif)#ipv6 rip RIPNG metric-offset 2
and
R2(config-subif)#ipv6 rip RIPNG metric-offset 2
TO configure OSPFv3:
under each interface:
ipv6 ospf 1 area 0
Configure OSPF router:
ipv6 router ospf 1
router-id 1.1.1.1
default-metric 25