Vous êtes sur la page 1sur 26

1 IPv6 Exercises

IPv6 Tutorial Exercises







Students Manual
October 16, 2006
IITC, Sri Lanka


2 IPv6 Exercises
Contents


Exercise 1 : IPv6 Host Configuration
1.01 Introduction to IPv6 auto-configuration
1.02 Configuration
1.02.1 Microsoft Windows XP
1.02.2 Mac OS X
1.02.3 Linux
1.03 Verifying the configuration

Exercise 2 : IPv6 Subnetting
2.01 Introduction IPv6 subnetting
2.02 Subnetting IPv6
2.03 Aggregating IPv6

Exercise 3 : IPv6 network topology
3.01 Identifying the segment
3.02 Distributing IPv6 address to each segment
3.03 Assigning IPv6 address to each networks devices

Exercise 4 : Configuring Router Interfaces with IPv6
4.01 Configuring router interfaces with IPv6
4.02 Verifying the IPv6 interface configuration
4.03 Creating a virtual IPv6 interface (Tunnel Interface)
4.04.1 Tunnel configuration
4.04.2 Verifying the Tunnel interface status

Exercise 5 : Configuring IPv6 static route
5.01 Configuring IPv6 static route
5.02 Verifying IPv6 route

Exercise 6 : Configuring IPv6 dynamic routing (OSPF)
6.01 OSPF Basics(OSPFv3)
6.0.2 Configuring OSPF
6.02.1 OSPF Process configuration
6.02.2 OSPF Area configuration
6.02.3 OSPF Interface configuration

Appendixes: Exercise 2 : Subnetting Answers

Exercise 3: Routers IPv4 Point-to-point addresses
Routers IPv6 Point-to-point addresses
3 IPv6 Exercises













Exercise 1

IPv6 Host Configuration

The following configurations are based on each operating system.

It contains the following sections:
IPv6 host auto configuration with Microsoft, Mac OS X, Linux
Step by step configuration
Verifying the configuration





4 IPv6 Exercises
About IPv6 Autoconfiguration

In IPv4 dynamic configuration is thru the use of Dynamic Host Configuration Protocol
(DHCP) which allows the host machine to obtain an IPv4 address which also
includes information of the default routers, WINS for Windows and so the Domain
Name Server (DNS) address if the DHCP is configured to issue such details once the
host obtain the address.

IPv6 has a similar protocol called DHCPv6, however IP6 also has a stateless
autoconfiguration protocol (RFC2462) that doesnt require or rely on any DHCP
server. Autoconfiguration requires no manual configuration from the host machine
and with only little configuration to the routers.


Step-by- step configurations for each operation system

Microsoft Windows XP
Source: http://www.microsoft.com/technet/itsolutions/network/ipv6/ipv6faq.mspx

To install the IPv6 protocol for Windows XP with SP2, do the following:

1. Log on to the computer with a user account that has privileges to change network
configuration.

2. Click Start, click Control Panel, and then double-click Network Connections.

3. Right-click any local area connection, and then click Properties.

4. Click Install.

5. In the Select Network Component Type, dialog box, click Protocol, and then
click Add.

6. In the Select Network Protocol dialog box, click Microsoft TCP/IP version 6,
and then click OK.

7. Click Close to save changes to your network connection.
Alternately, from the Windows XP desktop, click Start, point to Programs, point to
Accessories, and then click Command Prompt.
At the command prompt, type netsh interface ipv6 install.

For the IPv6 protocol for Windows XP with SP1, do the following:

1. Log on to the computer with a user account that has privileges to change network
configuration.

2. Click Start, click Control Panel, and then double-click Network Connections.

3. Right-click any local area connection, and then click Properties.

4. Click Install.
5 IPv6 Exercises

5. In the Select Network Component Type dialog box, click Protocol, and then
click Add.

6. In the Select Network Protocol dialog box, click Microsoft IPv6 Developer
Edition, and then click OK.

7. Click Close to save changes to your network connection.
Alternately, from the Windows XP desktop, click Start, point to Programs, point to
Accessories, and then click Command Prompt.

At the command prompt, type netsh interface ipv6 install.

To install the IPv6 protocol for Windows XP with no service packs installed:

1. Log on to the computer running Windows XP with a user account that has
privileges to change network configuration.

2. Open a command prompt. From the Windows XP desktop, click Start, point to
Programs, point to Accessories, and then click Command Prompt.

3. At the command prompt, type ipv6 install.

Regardless of the version of Windows XP, to use RPC applications over IPv6, you
must first restart the computer.


Verifying your configuration

For Windows Server 2003, Windows XP with SP2, and Windows XP with SP1, you
can use the ipconfig command to view your IPv6 addresses.

Here is an example:

c:\>ipconfig

Windows IP Configuration

Ethernet adapter Ethernet:

Connection-specific DNS Suffix . : wcoast.corp.example.com
IP Address. . . . . . . . . . . . : 157.54.139.57
Subnet Mask . . . . . . . . . . . : 255.255.252.0
IP Address. . . . . . . . . . . . : 2001:db8:8311:f282:1460:5260:c9b1:fda6
IP Address. . . . . . . . . . . . : 2001:db8:8311:f282:b973:4db8:97e2:e978
IP Address. . . . . . . . . . . . : 2001:db8:8311:f282:200:39ff:fe0e:fc35
IP Address. . . . . . . . . . . . : fec0::f282:200:39ff:fe0e:fc35%1
IP Address. . . . . . . . . . . . : fe80::200:39ff:fe0e:fc35%4

Default Gateway . . . . . . . . . : 157.54.136.1
fe80::210:ffff:fed6:58c0%4

Tunnel adapter 6to4 Tunneling Pseudo-Interface:
Connection-specific DNS Suffix . : wcoast.corp.example.com
IP Address. . . . . . . . . . . . : 2002:9d3b:8b39::9d3b:8b39
Default Gateway . . . . . . . . . :

6 IPv6 Exercises
Tunnel adapter Automatic Tunneling Pseudo-Interface:
Connection-specific DNS Suffix . : wcoast.corp.example.com
IP Address. . . . . . . . . . . . : fec0::f70f:0:5efe:157.54.139.57%1
IP Address. . . . . . . . . . . . : 2001:db8:8311:f70f:0:5efe:157.54.139.57
IP Address. . . . . . . . . . . . : fe80::5efe:157.54.139.57%2

Default Gateway . . . . . . . . . : fe80::5efe:157.56.253.8%2

For Windows Server 2003, Windows XP with SP2, and Windows XP with SP1, you
can also use the netsh interface ipv6 show address command to view your IPv6
addresses.

Here is an example:

Interface 4: Ethernet

Addr Type DAD State Valid Life Pref. Life Address

--------- ---------- ---------- ---------- -----------------------------------
Anonymous Preferred 596758 78191 2001:db8:8311:f282:1460:5260:c9b1:fda6
Anonymous Deprecated 510530 0 2001:db8:8311:f282:b973:4db8:97e2:e978
Public Preferred 2591874 604674 2001:db8:8311:f282:200:39ff:fe0e:fc35
Public Preferred 2591874 604674 fec0::f282:200:39ff:fe0e:fc35
Link Preferred 4294967295 4294967295 fe80::200:39ff:fe0e:fc35
Interface 3: 6to4 Tunneling Pseudo-Interface

Addr Type DAD State Valid Life Pref. Life Address

--------- ---------- ---------- ---------- -----------------------------------
Other Preferred 4294967295 4294967295 2002:9d3b:8b39::9d3b:8b39
Interface 2: Automatic Tunneling Pseudo-Interface
Addr Type DAD State Valid Life Pref. Life Address

--------- ---------- ---------- ---------- -----------------------------------
Public Preferred 2591700 604500 fec0::f70f:0:5efe:157.54.139.57
Public Preferred 2591700 604500 2001:db8:8311:f70f:0:5efe:157.54.139.57
Link Preferred 4294967295 4294967295 fe80::5efe:157.54.139.57
Interface 1: Loopback Pseudo-Interface

Addr Type DAD State Valid Life Pref. Life Address

--------- ---------- ---------- ---------- -----------------------------------
Loopback Preferred 4294967295 4294967295 ::1
Link Preferred 4294967295 4294967295 fe80::1


How to PING?

Windows Server 2003, Windows XP with SP2, and Windows XP with SP1 include an
IPv6-enabled version of the Ping.exe tool. When you ping a link-local address with
the Ping.exe tools, you must include a zone identifier (ID), which specifies the
interface over which the ICMPv6 Echo Request messages are sent. For link-local
addresses, the zone ID is typically equal to the interface index, as displayed in the
output of the netsh interface ipv6 show interface or command.

For site-local addresses, the zone ID is equal to the site number, as displayed in the
output of the netsh interface ipv6 show interface level=verbose command. If
multiple sites are not being used, a zone ID for site-local addresses is not required.

The zone ID is not needed when the destination is a global address.
For example, to send ICMPv6 Echo Request messages to the link-local address
7 IPv6 Exercises
fe80::260:97ff:fe02:6ea5 using zone ID 4 (the interface index of an installed Ethernet
adapter), use the following command:


ping fe80::260:97ff:fe02:6ea5%4


Red Hat Linux 7.1 to 9

Add NETWORKING_IPV6=yes to /etc/sysconfig/network.
Add IPV6INIT=yes to /etc/sysconfig/network-scripts/ifcfg-eth0.

NetBSD 1.5 to 1.6.1

Add ip6mode=autohost to /etc/rc.conf.

FreeBSD 5.0

Add ipv6_enable="YES" to /etc/rc.conf.

Mac OS X 10.2

Add IPV6=-YES- to /etc/hostconfig.


Verifying your configuration (sample from MacOSX)

Mants# ifconfig

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 2001:db8:c18:1::123 prefixlen 64
inet6 fe80::214:51ff:fe2e:eee6%en0 prefixlen 64 scopeid 0x4
inet 202.12.29.207 netmask 0xffffff80 broadcast 202.12.29.255
inet6 2001:dc0:2001:6:214:51ff:fe2e:eee6 prefixlen 64 autoconf
ether 00:14:51:2e:ee:e6
media: autoselect (100baseTX <full-duplex>) status: active
supported media: none autoselect 10baseT/UTP <half-duplex> 10baseT/UTP
<full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 100baseTX <half-duplex>
100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 1000baseT <full-duplex>
1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control> 1000baseT
<full-duplex,flow-control,hw-loopback>
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::214:51ff:fe86:5706%en1 prefixlen 64 scopeid 0x5
inet 203.119.0.8 netmask 0xffffffe0 broadcast 203.119.0.31
inet6 2001:dc0:2001:5:214:51ff:fe86:5706 prefixlen 64 autoconf
ether 00:14:51:86:57:06
media: autoselect status: active
supported media: autoselect
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
lladdr 00:14:51:ff:fe:2e:ee:e6
media: autoselect <full-duplex> status: inactive
supported media: autoselect <full-duplex>


8 IPv6 Exercises

PING and Traceroute?


Ping

Ping6 fe80::260:97ff:fe02:6ea5%4


Traceroute

Traceroute6 fe80::260:97ff:fe02:6ea5%4

9 IPv6 Exercises













Exercise 2

IPv6 Subnetting

Below are ways on how to subnet an IPv6 address

It contains the following sections:
Introduction to IPv6 subnetting
Subnetting IPv6
Aggregating IPv6

Exercise Scenario
Scenario 1 = Create a subnet of /35 from the /32 IPv6 address
Scenario 2 = Create a subnet of /48 from the sub-subnet of each /35 IPv6
address
Scenario 3 = Create a subnet of /64 from the sub-subnet or each /48 IPv6
address













10 IPv6 Exercises
Introduction to IPv6 subnetting

IPv6 address subnetting works the same way on how we subnet our IPv4 addresses
by bits except that IPv6 looks more complicated because it has 128 bits and the
fact that it uses a HEX digit to present the address. IPv6 address area broken into
eight columns separated by a colon :. Each column contains a HEX digit and each
HEX digit has 4 bit (16 bits per column) which is equivalent to a 4 bytes hexadecimal
value per column.

In the past IPv6 Global Unicast address uses the TLA/NLA/SLA format. That format
has been replaced already by the coordinated policy defined by the Regional Internet
Registry (RIRs). The format we are using to date is the IPV6 Addressing Architecture
(ARCH ) format (RRC3587).


| n bits | m bits | 128-n-m bits |
+-------------------------+-----------+----------------------------+
| global routing prefix | subnet ID | interface ID |
+-------------------------+-----------+----------------------------+


Subnetting an IPv6 Address

Given Scenario:

An ISP network contains 5 segments were each segments has 4 router each. The
IPv6 address prefix allocated by the RIR is 2001:00AA::/32. Create a smaller
subnet of the allocated block space based on each scenario requirements.


Scenario 1 :

Create a smaller subnet of /35 IPv6 address block from the /32 allocated address.

2001:00AA::/32

Prefix
1 2001:00AA::/35 (bonus answer)
2
3
4
5
6
7
8
9
10








11 IPv6 Exercises
Scenario 2 :

Create a smaller subnet of /48 IPv6 address block from each of the sub-subnet of
/35.

2001:00AA:0000:/35 or 2001:AA::/35

Prefix
1 2001:00AA:0001/48 (bonus answer)
2
3
4
5
6
7
8
9
10


2001:00AA:2000::/35 or 2001:AA:2000::/35

Prefix
1 2001:00AA:2001:/48 (bonus answer)
2
3
4
5
6
7
8
9
10


Scenario 3 :

Create a smaller subnet of /64 IPv6 address block from each of the sub-subnet of
/48.

2001:00AA:0001::/48 or 2001:AA:1::/48

Prefix
1 2001:00AA:0000:0001/64 (bonus answer)
2
3
4
5
6
7
8
9
10
12 IPv6 Exercises













Exercise 3

IPv6 Network Topology

The exercise is based on an ISP IGP topology.

It contains the following sections:
Identifying the segment
Distributing IPv6 address space to each segment
Assigning IPv6 address to each network devices

Exercise Scenarios
Scenario 1 = IP address for each segments
Scenario 2 = IP address for each network routers











13 IPv6 Exercises

IPv6 network topology

IPv4 address : 192.168.0.0/19
IPv6 Address : 2001:00AA::/32

R3
R4
R2
R1
R8
R5
R6 R7 R11 R10
R12
R9
R15 R16
R13
R14 R20
R17
R19 R18


Segment
2


Segment
1


Segment
4


Segment
3




Core
14 IPv6 Exercises
Sub-allocate the possible subnet youve created in Exercise 2 for each scenario
requirements.


Scenario 1

Sub-allocate the /35 subnet to each network segments.

Segment no. Segment sub prefix (/35)
Core 2001:00AA::/35 (bonus answer)
1
2
3
4


Scenario 2

Assign the /48 subnet to each network routers.

Router
no.
Router
no.
Segment sub prefix (/48)
R 1 2001:00AA:1:/48 (bonus ans) R 11
R 2 R 12
R 3 R 13
R 4 R 14
R 5 R 15
R 6 R 16
R 7 R 17
R 8 R 18
R 9 R 19
R 10 R 20


Scenario 3

Assign the /64 subnet to each network router interfaces.

Router
no.
Router
no.
Segment sub prefix (/48)
R 1 2001:00AA:1:1/64 R1-R2 R 11
R 2 R 12
R 3 R 13
R 4 R 14
R 5 R 15
R 6 R 16
R 7 R 17
R 8 R 18
R 9 R 19
R 10 R 20



15 IPv6 Exercises













Exercise 4

Configuring Router Interfaces with IPv6

The configurations are based on Cisco and Quagga

Exercise contains:

Configuring router interfaces with IPv6
Verifying the IPv6 interface configuration
Creating a virtual IPv6 interface

Scenario exercises:
Scenario 1 : Configure Routers (R1 - R4) point-to-point address
using only IPv4 /30 prefix
Scenario 2 : Configure Routers (R5, R9, R13, R17) interface to run
dual-stack, IPv4 and IPv6 point-to-point address with /30
for IPv4 and /64 for IPv6
Scenario 3 : Configure Routers (R6, R7, R8, R10, R11, R12, R14,
R15, R16, R18, R19, R20) with IPv6 only using /64 prefix
for the point-to-point















16 IPv6 Exercises
Configuring router interfaces with IPv6 address

Configuring router interfaces with IPv6 addresses are almost similar to how IPv4
address is configured. In some vendors it may require additional parameters to
enable IPv6 processing on the interface.


Cisco Router IPv6 configuration

Configuring Interfaces

The router has several different interfaces, which are required to be configured lets
assume we are configuring the eth0.

1. Select the appropriate interface required prior to configuration.
2. Once selected ensure that the interface is up. Issue the command show
interface

Myrouter # show interface eth0

3. Choose the interface to be configured and provide the IP Address to it.

Example: Eth0 configuration

Myrouter # configure terminal
Myrouter(config) # interface eth0
Myrouter(config-if) #


4. Configure the IP address for the interface selected.

Example: Eth0 configuration with a /64 subnet

Myrouter(config-if) # ipv6 address ipv6 address/prefix size in CIDR

Myrouter(config-if) # ipv6 address 2001:AA::1/64


5. To configure dual stack with IPv4 address for the interface selected.

Example: Eth0 configuration with a /30 subnet

Myrouter(config-if) # ip address ipv4 address subnet mask in CIDR

Myrouter(config-if) # ip address 192.168.0.1 255.255.255.252

6. Enable IPv6 on the interface selected.

Example: Eth0

Myrouter(config-if) # ipv6 enable


7. Exit from the interface configuration and enable IPv6 Unicast datagram
17 IPv6 Exercises
forwarding by typing the command below.

Myrouter(config) # ipv6 unicast-routing


8. Save the configuration by issuing the command: write


Quagga Router IPv6 configuration

Configuring Interfaces

The router has several different interfaces, which are required to be configured lets
assume we are configuring the eth0.

1. Select the appropriate interface required prior to configuration.
2. Once selected ensure that the interface is up. Issue the command show
interface

Myrouter # show interface eth0

3. Choose the interface to be configured and provide the IP Address to it.

Example: Eth0 configuration

Myrouter # configure terminal
Myrouter(config) # interface eth0
Myrouter(config-if) #


4. Configure the IP address for the interface selected.

Example: Eth0 configuration with a /64 subnet

Myrouter(config-if) # ipv6 address ipv6 address/prefix size in CIDR

Myrouter(config-if) # ipv6 address 2001:AA::1/64


5. To configure dual stack with IPv4 address for the interface selected.

Example: Eth0 configuration with a /30 subnet

Myrouter(config-if) # ip address ipv4 address subnet mask in CIDR

Myrouter(config-if) # ip address 192.168.0.1 255.255.255.252


6. Exit from the interface configuration and enable IPv6 Unicast datagram
forwarding by typing the command below.

Myrouter(config) # ipv6 fowarding

7. Save the configuration by issuing the command: write
18 IPv6 Exercises


Verify router interfaces with IPv6 address

For Cisco and Quagga

Simply type show interface

Sample output (Quagga)

Interface en1 is up, line protocol detection is disabled
index 5 metric 1 mtu 1500
<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST>
HWaddr: 00:14:51:86:57:06
inet6 fe80::214:51ff:fe86:5706/64
inet6 2001:dc0:2001:5:214:51ff:fe86:5706/64
inet 203.119.0.8/27 broadcast 203.119.0.31
input packets 680238, bytes 581266166, dropped 0, multicast packets 50719
input errors 0
output packets 526122, bytes 85543661, multicast packets 0
output errors 0
collisions 0


Creating/configuring router virtual interfaces for IPv6 tunnel

NOTE: only applies to Cisco routers

1. Choose your tunnel interface number.
2. Once selected create the interface by Issuing the command below:

Example: Tunnel Interface 0

Myrouter # configure terminal
Myrouter(config) # interface tunnel0
Myrouter(config-if) #


3. Configure the IPv6 address for the interface created.

Example: Interface Tunnel 0 configuration with a /64 subnet

Myrouter(config-if) # ipv6 address ipv6 address/prefix size in CIDR

Myrouter(config-if) # ipv6 address 2001:AA::1/64


4. Enable IPv6 for the interface created.

Example: Interface Tunnel 0

Myrouter(config-if) # ipv6 enable

5. Select and define the tunnel source interface for the IPv6 traffic tunnel to an
IPv4 network.

19 IPv6 Exercises
Example: Interface Tunnel 0

Myrouter(config-if) # tunnel source eth0
Note: (eth0 must have an IPv4 address)

6. Define the tunnel destination IPv4 address.

Example: Interface Tunnel 0

Myrouter(config-if) # tunnel destination 192.168.1.2
Note: (destination address must accessible from the IPv4
network)

7. Define the tunnel mode.

Example: Interface Tunnel 0

Myrouter(config-if) # tunnel mode ipv6ip
Note: (ipv6ip tunnel mode is for manual IPv6 tunnel to an
IPv4 network)

8. Save the configuration by issuing the command: write



Scenario 1

Note: Replace the IP address with the designated IP addresses of the point-to-point

Cisco Router

Myrouter(config)interface Eth0
Myrouter(config-if) ip address 192.168.0.1 255.255.255.252


Quagga Router

Myrouter(config)interface Eth0
Myrouter(config-if) ip address 192.168.0.1 255.255.255.252

Enable IP forwarding
Myrouter(config)ip forwarding


Scenario 2

Note: Replace the IP address with the designated IP addresses of the point-to-point

Cisco Router

Myrouter(config)interface Eth0
Myrouter(config-if) ip address 192.168.0.1 255.255.255.252
Myrouter(config-if) ipv6 address 2001:AA::1/64
Myrouter(config-if) ipv6 enable
20 IPv6 Exercises
interface Tunnel0
no ip address
ipv6 address 3FF3:B00:C18:1::3/64
ipv6 enable
tunnel source Eth0/1
tunnel destination 192.168.1.2
tunnel mode ipv6ip


Quagga Router

Myrouter(config)interface Eth0
Myrouter(config-if) ip address 192.168.0.1 255.255.255.252
Myrouter(config-if) ipv6 address 2001:AA::1/64

Enable IPv6 forwarding
Myrouter(config)ipv6 forwarding



Scenario 3

Note: Replace the IP address with the designated IP addresses of the point-to-point

Cisco Router

Myrouter(config)interface Eth0
Myrouter(config-if) ipv6 address 2001:AA::1/64
Myrouter(config-if) ipv6 enable


Quagga Router

Myrouter(config)interface Eth0
Myrouter(config-if) ipv6 address 2001:AA::1/64

Enable IPv6 forwarding
Myrouter(config)ipv6 forwarding





21 IPv6 Exercises













Exercise 5

Configuring IPv6 static route

The following configurations are based on Cisco and Quagga.

It contains the following sections:
Configuring Static route

Exercise Scenario
Scenario 1 = Configure static route for Routers (R5, R9, R13, R17) for the tunnel
interface










22 IPv6 Exercises
Configuring static route

To be able to reach a certain destination network a route must be available. The
route is required by the router to forward the packet to its destination. Static route in
IPv6 is similar on how you create the static route in IPv4.


Router static route configuration


Cisco Router

Myrouter(config)ipv6 route destination network/prefix outbound interface or
next hop IP address

Myrouter(config)ipv6 route 2001:AA::/35 tunnel0

Or

Myrouter(config)ipv6 route 2001:AA::/35 2001:AA::1



Quagga Router

Myrouter(config)ipv6 route destination network/prefix outbound interface or
next hop IP address

Myrouter(config)ipv6 route 2001:AA::/35 tun0

Or

Myrouter(config)ipv6 route 2001:AA::/35 2001:AA::1



Verifying the static route configuration

Cisco Router

Myrouter# show ipv6 route



Quagga Router

Myrouter# show ipv6 route

23 IPv6 Exercises













Exercise 6

Configuring IPv6 Dynamic Routing on IGP
(OSPF)

The following configurations are based on Cisco and Quagga.

It contains the following sections:
OSPF Basics
Configuring OSPF with IPv6
OSPF Process configuration
OSPF Area configuration
OSPF Interface configuration
Verifying OSPF IPv6 configuration

Exercise Scenarios
Scenario 2 = Configuring OSPF with IPv6

















24 IPv6 Exercises
OSPF Basic

Open Shortest Path First (OSPF) is a link-state routing protocol that sends link-state
advertisements (LSAs) to all other routers within the same hierarchical area to make
an update. Information on attached interfaces, metrics used, and other variables is
included in OSPF LSAs. OSPF speaking routers uses the Shortest Path First (SPF)
algorithm (Dijkstra) to calculate the shortest path to each node to gather accurate
link-state information.

OSPF currently has two versions. Version 2 for is use IPv4, while version 3 is
created support IPv6. Both versions can co-exist in the router configuration.


OSPF Process configuration

Cisco router

1. Type ipv6 router ospf and the process IP number in command prompt of the
IPv6 ospf exec mode to configure the ospf protocol.

router#configure terminal
router(config)#ipv6 router ospf [Process-id]

2. Define the network that needs to be included in the OSPF.

router(config-rtr)#area [Area-id] range [IPv6-
prefix/prefix-length] on CIDR

3. Enable OSPF on an Interface that will join the IPv6 OSPF network.

router(config-if)#ipv6 ospf [Process-id] area
[Area-id]


Sample Configuration
====================

router#configure terminal
router(config)#ipv6 router ospf 10
router(config-rtr)# area 0 range 2001:AA::/64(for
point-to-point)
router(config-rtr)# area 0 range 2001:AA::1/48 (for
LAN network)

Interface configuration
=======================
router(config-if)# ipv6 ospf 10 area 0


4. Save the configuration by typing write





25 IPv6 Exercises
Quagga router

1. Type ipv6 router ospf in command prompt of the IPv6 ospf exec mode to
configure the ospf protocol.

router#configure terminal
router(config)#ipv6 router ospf

2. Define the network that needs to be included in the OSPF.

router(config-rtr)#area [Area-id] range [IPv6-
prefix/prefix-length] on CIDR

3. Enable OSPF on an Interface that will join the IPv6 OSPF network.

router(config-router)#interface [interface number]
area [Area-id]

Sample Configuration
====================

router#configure terminal
router(config)#ipv6 router ospf 10
router(config-router)# area 0.0.0.0 range
2001:AA::/64(for point-to-point)
router(config-router)# area 0.0.0.0 range
2001:AA::1/48 (for LAN network)
router(config-router)#interface eth10 area 0


4. Save the configuration by typing write



Verifying OSPF process


1. Verify the configuration if the routing process is working properly by typing the
commands below:

show ipv6 route (to check the routing table)
sh ipv6 ospf interface (to check interface participating OSPF)
sh ipv6 ospf neighbor (to check neighbor list)
sh ipv6 ospf database (to check database summary list)


26 IPv6 Exercises

Vous aimerez peut-être aussi