0 évaluation0% ont trouvé ce document utile (0 vote)
80 vues26 pages
This document provides instructions for configuring IPv6 on various operating systems and validating the configuration. It includes steps for enabling IPv6 on Windows XP, Mac OS X, Linux distributions and verifying the configuration using commands like ipconfig and ifconfig. The document also describes IPv6 autoconfiguration and how to ping IPv6 addresses, specifying the zone identifier for link-local addresses.
This document provides instructions for configuring IPv6 on various operating systems and validating the configuration. It includes steps for enabling IPv6 on Windows XP, Mac OS X, Linux distributions and verifying the configuration using commands like ipconfig and ifconfig. The document also describes IPv6 autoconfiguration and how to ping IPv6 addresses, specifying the zone identifier for link-local addresses.
This document provides instructions for configuring IPv6 on various operating systems and validating the configuration. It includes steps for enabling IPv6 on Windows XP, Mac OS X, Linux distributions and verifying the configuration using commands like ipconfig and ifconfig. The document also describes IPv6 autoconfiguration and how to ping IPv6 addresses, specifying the zone identifier for link-local addresses.
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 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
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.
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.
--------- ---------- ---------- ---------- ----------------------------------- 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
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.
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.
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
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.
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.
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
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.
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.
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)