47
How to Note How To | C613-16171-00 REV B Configure IPv6 on AlliedWare Plus Products Introduction Internet Protocol version 6, or IPv6, is an improved version of the current and most widely used Internet Protocol, IPv4. IPv6 was also known as IPng (Next Generation). Address depletion is the primary driver behind the need for IPv6. Commercial opportunities have rapidly increased the need for IP addresses with the demand for wireless devices, peer-to-peer networking and the ‘smart home’ which, because they access the Internet, require their own IP address. There are more devices connected to the Internet than IP addresses, as NAT has allowed many addresses to ‘hide’ behind a single public address. IPv6 provides an enormous amount of extra address space over IPv4. From IPv4’s 32 bits to IPv6’s 128 bits, the number of available IP addresses increases from 4 billion to over 340 trillion trillion trillion. IPv6 also improves on IPv4 by adding enhancements for security, multimedia traffic management, and simplified network configuration. The transition from IPv4 to IPv6 will be gradual and both IPv4 and IPv6 will coexist for some period of time yet. This How to Note describes the IPv6 addressing format, and the differences between IPv4 and IPv6 headers. We look at auto-configuration and neighbor discovery, network management, and provide some basic IPv6 configuration examples such as adding an IPv6 static neighbor. List of terms: Stateless Address Auto Configuration (SLAAC) A process whereby an enabled IPv6 host can work out its own IPv6 address. Solicited Node Address A special multicast address, used in neighbor discovery, that narrows down the number of hosts that need to process the request. Extension headers Option fields that can be chained onto the end of an IPv6 header. EUI-64 An algorithm for calculating an IPv6 interface ID from a MAC address. Anycast A method of IP addressing in which several hosts share the same address, and packets are directed to the nearest of these hosts. NAT Network Address Translation enables multiple hosts on a private network to access the Internet using a single public IP address.

How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Embed Size (px)

Citation preview

Page 1: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

How to Note

How To |

C613-16171-00 REV B

Configure IPv6 on AlliedWare Plus™ Products

IntroductionInternet Protocol version 6, or IPv6, is an improved version of the current and most widely used Internet Protocol, IPv4. IPv6 was also known as IPng (Next Generation).

Address depletion is the primary driver behind the need for IPv6. Commercial opportunities have rapidly increased the need for IP addresses with the demand for wireless devices, peer-to-peer networking and the ‘smart home’ which, because they access the Internet, require their own IP address.

There are more devices connected to the Internet than IP addresses, as NAT has allowed many addresses to ‘hide’ behind a single public address.

IPv6 provides an enormous amount of extra address space over IPv4. From IPv4’s 32 bits to IPv6’s 128 bits, the number of available IP addresses increases from 4 billion to over 340 trillion trillion trillion.

IPv6 also improves on IPv4 by adding enhancements for security, multimedia traffic management, and simplified network configuration.

The transition from IPv4 to IPv6 will be gradual and both IPv4 and IPv6 will coexist for some period of time yet.

This How to Note describes the IPv6 addressing format, and the differences between IPv4 and IPv6 headers. We look at auto-configuration and neighbor discovery, network management, and provide some basic IPv6 configuration examples such as adding an IPv6 static neighbor.

List of terms:Stateless Address Auto Configuration (SLAAC)A process whereby an enabled IPv6 host can work out its own IPv6 address.

Solicited Node AddressA special multicast address, used in neighbor discovery, that narrows down the number of hosts that need to process the request.

Extension headersOption fields that can be chained onto the end of an IPv6 header.

EUI-64An algorithm for calculating an IPv6 interface ID from a MAC address.

AnycastA method of IP addressing in which several hosts share the same address, and packets are directed to the nearest of these hosts.

NATNetwork Address Translation enables multiple hosts on a private network to access the Internet using a single public IP address.

Page 2: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Introduction

How to Configure IPv6 on AlliedWare Plus Products | Page 2

What software version and products does this document apply to?This document applies to AlliedWare Plus software version: 5.4.2 and above, and the following AlliedWare Plus products:

� x600, x610, and x900 family of switches

� SwitchBlade x8100 switches

� SwitchBlade x908 switches

Note: When configuring IPv6 on the x600 series switches, currently it is only supported on a stand alone device. If the x600 switches are configured in a VCStack topology, then IPv6 is not supported.

Additional readingMoving a network from IPv4 addressing to IPv6 addressing cannot be performed in a single step. Allied Telesis provides robust solutions for IPv4-to-IPv6 network transitioning, using IPv6 tunnelling and dual IPv4/IPv6 network management.

With dual stacking, IPv4 and IPv6 can co-exist seamlessly on the same equipment, using equivalent routing protocols, within the same topology. An organization can be confident that the network will support their transition from IPv4 to IPv6 at a pace that suitsthem. Their IPv6 network can be overlaid on the same equipment, in the same physical and logical layout, as their original IPv4 network.

The equipment can be managed equally by IPv4 or IPv6, enabling a smooth transition of the network management infrastructure as well.

Many parts of the IPv4 Internet will continue to be important, where previously content needed to be available over both IPv4 and IPv6, in the future areas of IPv6 only network will need ‘migration strategies’ to be able to access legacy IPv4 services.

For more information on IPv6 transition technologies please refer to the Allied Telesis website: alliedtelesis.com and the document titled: Tested Solution: IPv6 Transition Technologies

The following organisation may also be of interest: The Internet Society

Page 3: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Introduction

How to Configure IPv6 on AlliedWare Plus Products | Page 3

ContentsIntroduction ..................................................................................................................................................................1

What software version and products does this document apply to? ...................................................2

Additional reading...................................................................................................................................................2

Addressing .....................................................................................................................................................................4

IPv6 address formats .............................................................................................................................................4

Configuring an IPv6 interface on an AlliedWare Plus Switch ...................................................................5

Types of IPv6 Address ...........................................................................................................................................6

Auto-configuration and Neighbor Discovery ...................................................................................................9

Stateless Address Auto-Configuration ...........................................................................................................9

Setting up an IPv6 interface using the EUI-64 algorithm .........................................................................10

Neighbor Discovery ...........................................................................................................................................11

RA Guard ................................................................................................................................................................14

IPv6 Header Structure ............................................................................................................................................15

Basic IPv6 header ..................................................................................................................................................15

What are the differences between IPv4 and IPv6 headers? ...................................................................16

IPv6 Extension Headers ..........................................................................................................................................16

The basic structure of Extension Headers ..................................................................................................17

Encryption and Authentication in IPv6 ..........................................................................................................20

The QoS Flow Label ............................................................................................................................................21

Routing .........................................................................................................................................................................22

Static routes............................................................................................................................................................22

Routing Information Protocol (RIPng) ...........................................................................................................22

DHCP Relay ...........................................................................................................................................................23

Management ..............................................................................................................................................................24

Network Time Protocol v6 ...............................................................................................................................24

DNS Client and DNS Relay over IPv6 ..........................................................................................................24

Full IPv6 Configuration Examples ........................................................................................................................26

Example 1: Verifying IPv6 functionality ............................................................................................................26

Example 2: Adding an IPv6 static neighbor ...................................................................................................29

Example 3: Stateless Address Autoconfiguration .......................................................................................30

Example 4: Acquiring an IPv6 address from another switch .................................................................33

Example 5: Relaying DHCP ...............................................................................................................................34

Routing Examples......................................................................................................................................................36

Example 1: Static routing ....................................................................................................................................36

Example 2: RIPng ...................................................................................................................................................41

Page 4: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Addressing

How to Configure IPv6 on AlliedWare Plus Products | Page 4

AddressingThis section briefly touches on IPv6 addressing and how IPv6 addresses are represented.

IPv6 address formatsIPv6 addresses are 128 bits long whereas IPv4 addresses are only 32 bits long. The new 128 bit IPv6 addresses are written as eight hexadecimal groups. Each hexadecimal group is separated by a colon ( : ) and consists of a 16 bit hexadecimal value.

A complete IPv6 address could look like this:

xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx

A group of xxxx represents a 16 bit hexadecimal value with each individual x representing a 4 bit hexadecimal value. The following is an example of a possible IPv6 address:

2001:0340:0000:0000:0000:F673:0029:0564

The IPv6 prefixIPv4 utilizes a subnet mask to define the network prefix and host portions of an address. The subnet mask can also be represented in ‘mask length’ format.

For example: 192.168.128.1.255.255.255.0 or it can also be written as 192.168.128.1/24

IP addresses combine, in a single address, a network identifier (called the prefix) and a device identifier (the interface ID). The point at which to split the address into these two portions is given by the prefix length.

IPv6 always uses the mask length notation to determine what bits compromise the prefix of an address.

If we take the IPv6 address 2001:0DB8:0000:0000:0000:F673:0029:0564, we can break it down to the prefix and the host portions of that address:

The prefix length is written as /xx at the end of the address: e.g. 64 or 48 in our example below:

:

:

0000:F673:0029:0564/642001:0DB8:0000:0000:

Prefix – 64 bits Interface ID – 64 bits

Interface ID – 80 bits

/480000:0000:F673:0029:05642001:0DB8:0000:

Prefix – 48 bits

LAN subnets are almost always/64 and routeaggregation to a site useslarger masks like /48

Address optimizationTo make IPv6 addresses easier to write, the leading zeros in a 4-digit block can be removed.

Also, contiguous sets of 4 zeros, and their separating colons, can be completely removed, and replaced by : :.

To avoid ambiguity, it is only possible to have one place in the address where a continuous set of 0s is replaced by : :. Therefore, 2001:0DB8:0000:0000:F673:0000:0000:0564

can be written as:

2001:0DB8: :F673:0000:0000:564 or 2001:0:0000:0000:F673: :0564

But not as: 2001:0DB8::F673::564

Page 5: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Addressing

How to Configure IPv6 on AlliedWare Plus Products | Page 5

Configuring an IPv6 interface on an AlliedWare Plus SwitchUse the following commands to configure an IPv6 address on VLAN1:

awplus#conf t

awplus(config)#int vlan1

awplus(config-if)#ipv6 address 2003:78:ab34:9e43::1/64

 

You can configure multiple addresses on one interface, as shown in the example below:

awplus(config)#int vlan1

awplus(config-if)#ipv6 address 2003:42c:ab34:9e43::1/64

awplus(config-if)#ipv6 address 2003:af0e:ab34:9e43::1/64

Checking the configurationTo check your IPv6 configuration use the show ipv6 interface command, as shown in the example output below:

awplus#show ipv6 interfaceInterface IPv6-Address Status Protocolvlan1 2003:78:ab34:9e43::1/64 admin up running 2003:42c:ab34:9e43::1/ 2003:af0e:ab34:9e43::1/64 fe80::215:77ff:fead:fbcd/64

Note the link-local address: fe80::215:77ff:fead:fbcd/64,we will discuss link-local addresses in the section titled: “Unicast” on page 6

Page 6: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Addressing

How to Configure IPv6 on AlliedWare Plus Products | Page 6

Types of IPv6 AddressThere are three methods of IP addressing that are supported in IPv6:

1. Unicast

2. Multicast

3. Anycast

UnicastA single host possesses the unicast address and irrespective of where the packet comes from, it will go to the same host.

Reserved or special unicast IPv6 addresses

The first field of a reserved or special IPv6 address will always begin with 00xx. Reserved addresses represent 1/256th of the available IPv6 address space. Various reserved addresses exist, including:

� 0:0:0:0:0:0:0:0 (or ::)—an unspecified or unknown address.

This address is the equivalent of the IPv4 0.0.0.0 address, which indicates the absence of a configured or assigned address. In routing tables, the unspecified address is used to identify all or any possible hosts or networks.

� 0:0:0:0:0:0:0:1 (or ::1)—the loopback or local host address.

This is the equivalent of the IPv4 127.0.0.1 address.

Unicast addresses can be grouped into 3 subcategories:

1. Link-local

2. Unique-local

3. Global

Link-local—these addresses start with FE8x: and are used in a single link or subnet. Any packets that are transmitted with a link local source/destination address are never routed out of that subnet.

Unique-local—originally called site-local, these are the equivalent of IPv4 private addresses (RFC1918), that are used within a local organisation. Unique-local addresses cannot be routed across the global Internet IPv6 address space. L3 devices will not forward any packets with unique-local source or destination addresses outside of the private enterprise or customer site. IPv6 routing between multiple Unique-local subnets within a private enterprise is allowed.

There is a bit of history to which address ranges have become used for local addresses. Originally it was the range FEC0 : : /10 (RFC 1884). But the term ‘site-local’ was not well defined in the original definition of site-local addresses. The use of FEC0 : : /10 was deprecated in RFC3879. Shortly later, a new range was defined - FC00 : : /7 (RFC 4193 ) for Unique-local address ranges.

Page 7: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Addressing

How to Configure IPv6 on AlliedWare Plus Products | Page 7

Global—these addresses start with either a 2xxx: or 3xxx: they are the equivalent of public IPv4 addresses. Global addresses can be routed publicly in the Internet. Any device or site that wishes to transmit packets to another site must be uniquely identified with a global address. Some global addresses are allocated to special purposes:

Reserved for documentation:

� 3FFF:FFFF::/32

� 2001:ODBB:/32

Used for 6 to 4 tunnelling:

� 2002::/16

Used for IPv4 mapped IPv6 addresses:

� ::ffff:0:0/96

MulticastMulticast addresses start with FFxx: and they operate the same as the IPv4 multicast addresses. Interfaces can belong to one or more multicast groups and will accept a multicast packet only if they belong to the group corresponding to the packet’s destination address. There are no broadcast packets in IPv6, instead the IPv6 protocol uses IPv6 multicast packets to do the job of an IPv4 broadcast packet. Multicasting provides a much more efficient mechanism than broadcasting, which requires that every host on a link accept and process each broadcast packet.

Multicast Address Scopes

The scope of a multicast address is indicated by the fourth hex digit in the address, i.e. The digit ‘S’ in FF0S::

VAlUe SCoPe MeAnIng

FF01:: node-local Contained within a single device*

FF02:: link-local Forwarded only within a subnet on an Ethernet segment

FF04:: admin-local Forwarded within a small administratively- defined topology

FF05:: site-local Forwarded only within a single site

FF08:: organisational-local Forwarding can span multiple sites of a single organization

FF0E:: global Can be sent across the Internet

* Node-local means that the scope for the address is within the node itself, e.g. a PC streams multicast data with node-local scope, thus only other applications in your PC can join/see the stream, and the stream never goes out of the PC on any of the interfaces.

Page 8: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Addressing

How to Configure IPv6 on AlliedWare Plus Products | Page 8

Reserved IPv6 multicast addresses

The following is a list of common, well-known IPv6 multicast addresses:.

node-loCAl SCoPe

FF01::1 All listeners within the node

lInk-loCAl SCoPe

eqUIVAlenT IPV4 AddReSS

FF02::1 All-nodes address 224.0.0.1

FF02::2 All-routers address 224.0.0.2

FF02::5 OSPFv3 (OSPFv6) All SPF Routers 224.0.0.5

FF02::6 OSPFv3 Designated Routers 224.0.0.6

FF02::9 RIPng Routers 224.0.0.9

FF02::13 PIM Routers 224.0.0.13

FF02::16 MLDv2 Reports 224.0.0.22

SITe-loCAl SCoPe

eqUIVAlenT IPV4 AddReSS

FF05::2 All-routers address

Multicast MAC address

The MAC address for a multicast packet is created by adding the last 4 bytes of the IPv6 address to 3333.0000.0000.

For example if the IPv6 group address is: FF02:0000:0000:0000:0001:FF28:9C5A, then the MAC address for the group is: 3333:FF28:95A

AnycastIn the anycast addressing mode, multiple hosts are configured with an identical address. Packets sent to an anycast address are sent to the nearest (least number of hops) host that possesses the address. Anycast addresses are indistinguishable from any other IPv6 unicast address. Anycast does not define a class of addresses; it defines how the addresses are used.

One possible application would be a server farm in which all servers provide an identical service or function, in which case anycast addressing would allow clients to connect to the nearest Server.

Like multicast, multiple nodes may be listening on an anycast address. Like unicast, a packet sent to an anycast address will be delivered to one (and only one) of those nodes. The exact node to which it is delivered is based on the IP routing tables in the network.

Anycast is therefore as a cross between unicast and multicast.

Page 9: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Auto-configuration and Neighbor Discovery

How to Configure IPv6 on AlliedWare Plus Products | Page 9

Auto-configuration and Neighbor DiscoveryWhen an IPv6 host has been installed in a device, the device can automatically configure itself with an IPv6 address by using ICMPv6 router discovery messages. This is known as Stateless Address Auto-Configuration (SLAAC). SLAAC occurs when a host configures its own address—the address is generated, not allocated.

The major benefit for IPv6 devices is that they can be plugged in, switched on, and they are globally routable.

Stateless Address Auto-Configuration � Allows an IPv6 aware device to be plugged into a network without manual configuration

of an IP address.

� Has plug and play functionality which makes networks much easier to set up.

� Simplifies the process of moving to a new Internet Service Provider (ISP).

This process is described below in the section: “Setting up an IPv6 interface using the EUI-64 algorithm” on page 10.

There are two halves to the SLAAC process—the client side and the router side.

Client side of stateless address autoconfiguration – when an AlliedWare Plus switch is performing as the client, a VLAN interface hasn’t been configured with an IPv6 address but instead learns an IPv6 address by SLAAC. To configure this mode on an interface, use the command:

awplus(config-if)#ipv6 address autoconfig

Router side of stateless address autoconfiguration – when a client is attached to the router and hasn’t been configured with an IPv6 address, the router can be configured to send out the network information in an RA (Router Advertisement) so the client is able to get an address and communicate on the LAN.

For example, on a router’s VLAN interface which has the client attached, the following configuration could be used to send the Prefix:

awplus(config)#int vlan10

awplus(config-if)#ipv6 address 2001:1db9:1:2::/64 eui64

awplus(config-if)#ipv6 nd ra-interval 10

awplus(config-if)#ipv6 nd prefix 2001:1db9:1:2::/64

awplus(config-if)#no ipv6 ndsuppress_ra

Note: AlliedWare Plus supports both the client and the router side of stateless address autoconfiguration.

Page 10: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Auto-configuration and Neighbor Discovery

How to Configure IPv6 on AlliedWare Plus Products | Page 10

Setting up an IPv6 interface using the EUI-64 algorithmHere is an overview of the steps that occur when a switch performs SLAAC using the EUI-64 algorithm:

1. Generate a 64 bit interface identifier using the EUI-64 algorithm.

The host has to create its own host portion of its IPv6 address. It can create a unique address from its MAC address by using the EUI-64 algorithm, here is how it works:

STeP AddReSS

1. Start with the MAC address 0012.7FEB.6B40

2. Split the MAC address in half 0012:7F EB:6B40

3. Insert FF:EE into the MAC address 0012:7FFF:FEEB:6B40

4. Change the 7th bit to ‘1’ 0212:7FFF:FEEB:6B40

2. Create a Link-local node address.

When IPv6 has been configured on an interface, the switch will automatically assign a link-local address to that interface. Link-local addresses are used as the source address for packets that stay within the subnet, for example:

� automatic address configuration

� neighbor discovery

� OSPF exchanges etc.

Any packets that are transmitted with a link-local source/destination address are never routed out of that subnet and are assigned the fe80::/10 prefix , equivalent to the IPv4 address block 169.x.x.x.

The link-local address for an interface is created by combining the EUI-64 host address to the network address FF80::64

FF80:0000:0000:0000: + 0212: 7FFF:FEEB:6B40= FF80 : : 0212: 7FFF:FEEB:6B40

3. Send router solicitation messages to all routers on the local link multicast address. If there is no response, SLAAC ends with only a link-local address generated.

Note: If a periodic RA containing the appropriate information is received at any time, SLAAC will use it immediately. Also, if an RA is received that reduces the lifetime of a prefix to zero, SLAAC will immediately deprecate the address (the system will then cease using it for new connections, but existing ones will continue).

4. Once a prefix is learnt by RA, prepend the prefix to the EUI-64 interface ID, to create the full IPv6 address.

2001:639A:1234:5678:: + 0212: 7FFF:FEEB:6B40

=

2001:639A:1234:5678:0212:7FFF:FEEB:6B40

Page 11: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Auto-configuration and Neighbor Discovery

How to Configure IPv6 on AlliedWare Plus Products | Page 11

5. Find default gateway (default routers). On receipt of a valid Router Advertisement, a host extracts the source address of the packet and does the following:

� If the address is not already present in the host’s Default Router List, and the advertisement’s Router Lifetime is non-zero, it creates a new entry in the list and initializes its invalidation timer value from the advertisement’s Router Lifetime field.

� If the address is already present in the host’s Default Router List as a result of a previously received advertisement, it resets its invalidation timer to the Router Lifetime value in the newly received advertisement.

� If the address is already present in the host’s Default Router List and the received Router Lifetime value is zero, it immediately times-out the entry as specified.

To limit the storage needed for the Default Router List, a host may choose not to store all of the router addresses discovered via advertisements. However, a host must retain at least two router addresses and should retain more. Default router selections are made whenever communication to a destination appears to be failing. Thus, the more routers on the list, the more likely an alternative working router can be found quickly (without having to wait for the next advertisement to arrive).

Neighbor Discovery Neighbor discovery is an ICMPv6 function that allows a router or host to identify other devices on its links. Neighbor discovery messages are used:

� In address auto-configuration, for duplicate address detection

� To redirect a node to use a more appropriate router if necessary

� To maintain reachability information with its neighbors

There are five IPv6 Neighbor DiscovWery messages that replace existing IPv4 messages:

IPV6 dISCoVeRy MeSSAgeS ICMPV6 TyPe RePlACe TheSe IPV4 MeSSAgeS

Router Solicitation 133ICMPv4 Router Discovery

Router Advertisement 134

Neighbor Solicitation 135ARP

Neighbor Advertisement 136

Redirect 137 ICMPv4 Redirect

The three processes under the umbrella of neighbor discovery are:

1. neighbor solicitation – finding out entities of neighbor devices.

2. Router solicitation – finding out where routers are, possibly the local network prefix.

3. Redirect – directing a host to a better gateway for a given destination.

Page 12: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Auto-configuration and Neighbor Discovery

How to Configure IPv6 on AlliedWare Plus Products | Page 12

neighbor solicitationIPv6’s replacement for ARP is Neighbor solicitation, which uses two ICMP messages:

� Neighbor Solicitation (ICMPv6 Type 135)

� Neighbor Advertisement (ICMPv6 Type 136)

Neighbor solicitation messages perform the following functionality:

� They allow IPv6 nodes (IPv6 hosts and IPv6 routers) to resolve the Link Layer address of a neighboring node (a node on the same physical or logical link).

� When the Link Layer address of a neighboring node has changed, Neighbor discovery messages allow the other IPv6 nodes to learn that this address has changed.

� They enable IPv6 nodes to determine whether neighboring nodes are still reachable.

In the diagram below, Host A sends a multicast packet (Neighbor solicitation), and if Host C is operational it will respond to this packet with a Neighbor advertisement packet.

Router A

Router B

What is neighbourC’s link address?

Here’s my linkaddress...

Neighbour Advertisement

Neighbour Solicitation

A

B

C

Solicited-node multicast address When requesting the identity of the host that possesses a given IPv6 address, it is more efficient to multicast the request to potential candidates, rather than broadcast to all hosts.

This means that hosts that cannot possibly possess the address do not have to process unnecessary broadcast packets. Solicited Node addresses are often flooded by switches and filtered by NIC cards drivers.

The multicast address used is called the solicited-node multicast address. It is created by attaching the last 3 bytes of the requested address to FF02::1:FF00:0

For example:

Address being requested : 2001: : 2AA:FF:F28:9C5A

1. Begin with FF02:0000:0000:0000:0000:0001:FF00:0000

2. Take the last 3 bytes of the requested address: 28:9C5A

3. Attached them to the address FF02: :1:FF00 :0

This is the solicited-node multicast address: FF02:0000:0000:0000:0000:0001:FF28:9C5A

Page 13: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Auto-configuration and Neighbor Discovery

How to Configure IPv6 on AlliedWare Plus Products | Page 13

Router discovery IPv4 hosts need either an administrator to manually configure the default gateway or DHCP to provide this information. When IPv6 is being used, the host themselves can automatically locate routers on the LAN. The host achieves this by using two different ICMPv6 messages. They are:

� Router Solicitation (ICMPv6 Type 133)

� Router Advertisement (ICMPv6 Type 134)

When a host is first connected to a LAN, it will send an IPv6 Router Solicitation packet to request information about routers on the network. Each router which is active on the LAN will respond to this packet by sending a Router Advertisement (RA) with its address to all nodes in the group. It informs the host what network address(es) is(are) in use on the subnet. It also informs the host if it is a default gateway.

Router A

Router B

Any routerson the link?

Router Advertisement

Router Solicitation

A

B

C

I’m a router!

I’m a router!

As well as responding to router solicitation events, a router will also send out router advertisements packets at regular intervals.

Configuring router advertisements on AlliedWare PlusRouter Advertisements are configured on AlliedWare Plus on a per-interface basis.

To enable RA advertisements use the command:

awplus(config-if)#no ipv6 ndsuppress_ra

The options available are:

� IPv6 nd prefix<x:x.../N> which sets the prefix to advertise

� IPv6 nd ra-interval <seconds> which sets the period of periodic advertisements

� IPv6 nd ra-lifetime <seconds> which sets the time for which the router will act as a default router, set this to zero to inform hosts that this is not a default router.

RedirectRedirect uses ICMP type 137 to inform a host of a better router to use as the gateway to a given destination. If a router receives a packet and has to forward that packet to another router in the same subnet, it will also send a redirect back to the sender, telling it to send directly to the other router.

Page 14: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Auto-configuration and Neighbor Discovery

How to Configure IPv6 on AlliedWare Plus Products | Page 14

RA GuardRouter Advertisements (RA) and Router Redirects are key to the Network Discovery Protocol (NDP) used to manage IPv6 networks. RA messages advertise a router’s presence and specify network parameters that are used by hosts as part of address auto-configuration and next hop routers for particular destinations.

Subverting this process can severely disrupt the operation of an IPv6 network. RA Guard is a feature that protects the RA process from being subverted.

RA Guard is positioned in between routers and hosts, and acts as an authorisation proxy. RA Guard drops bad RAs before they reach hosts.

RA Guard operates on all AlliedWare Plus Layer 3 switches, including stacked environments.

Rouge RAsA rogue RA is an RA that contains invalid information that could cause unwanted changes in the network configuration. These could be generated unintentionally through misconfiguration or maliciously by someone wanting to disrupt or gain access to the network.

A switch can be configured to be selective about the RA and redirect packets it will accept. Ports are configured to trust or not trust the RA and redirect packets they receive.

RA guard on AlliedWare Plus switchesPorts can be configured to be RA untrusted ports, i.e. RA Guard is applied to ports on a per-interface basis and can be enabled on the following:

� Standalone ports.

� Individual ports in a dynamic (LACP) aggregator, but is not supported on the dynamic aggregator itself.

� A static aggregator, but is not supported on individual ports in a static aggregator

RA Guard is enabled on an interface as follows:

awplus#conf t

awplus(config)#int port1.0.2

awplus(config-if)#ipv6 nd raguard

Note: This feature is disabled by default.

RA guard ClassifiersThe actual security enforcement of RA Guard is handled through hardware classifiers, which are dynamically added when a port is marked as trusted or untrusted.

RA Guard blocks RAs and router redirects on untrusted ports with filters for ICMPv6 type 134 and 137.

Page 15: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

IPv6 Header Structure

How to Configure IPv6 on AlliedWare Plus Products | Page 15

IPv6 Header Structure

Basic IPv6 headerAn IPv6 data packet comprises of two main parts: the header and the payload. The header is the first 40 bytes/octets (40 x 8 = 320 bits) and contains the following fields:

FIeld SIze (bITS)

deSCRIPTIon

Source address 128 The IPv6 address of the originating node of the packet.

Destination 128 The address of the intended recipient of the IPv6 packet.

Version/IP version 4 Indicates the version of the IPv6 protocol

Packet priority/Traffic class 8 Identifies the data packets that belong to the same traffic class and distinguishes between packets with different priorities.

Flow label/QoS management 20 Identifies a set of packets belonging to the same flow.

Payload length in bytes 16 The length of the data field in octets/bits following the IPv6 packet header.

Next header 8 Usually specifies the Transport Layer protocol used by a packet’s payload, e.g. TCP (6) and UDP(17).

Time to Live 8The main function of this field is to identify and to discard packets that are stuck in an indefinite loop due to any routing information errors.

Page 16: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

IPv6 Extension Headers

How to Configure IPv6 on AlliedWare Plus Products | Page 16

In brief, the changes between the IPv4 and IPv6 headers are as follows:

� The IPv6 header is 40 bytes long (IPv4 header is 20 bytes).

� Each IPv6 address is four times the length of an IPv4 address.

� The IPv6 header no longer contains the header length, identification, flags, fragment offset and header checksum fields. Some of these options have been placed in extension headers.

� The Time To Live field has been replaced with the Hop Limit field.

� The IPv4 Type of Service field is now replaced with a Traffic Class field.

� A Flow Label field has been added.

� The Options field has been replaced by Extension Headers.

For further details on IPv6 address formats, please see RFC 2460 Internet Protocol, Version 6 (IPv6).

What are the differences between IPv4 and IPv6 headers?The differences between IPv4 and IPv6 headers are illustrated in the diagram below:

IPv6 Extension HeadersIn IPv6, the Options field has been replaced with a set of Headers called Extension Headers.

The Options field in IPv4 was too limited, so in IPv6 it has been replaced by the more flexible and extendable concept of Extension Headers. The idea is that Extension headers each carry information about some aspect of the packet. There is no fixed size to the headers and no limit to how many there are. Customised Extension headers are added as required.

Field’s name kept from IPv4 to IPv6

Field not kept in IPv6

Names and position changed in IPv6

New or changed�eld in IPv6

Total Length

Identi�cation FlagsFragmentOffset

Source Address

Destination Address

Options Padding

Type ofService

Header ChecksumTime to Live Protocol

Version

IPv4 Header

IHL

Hop Limit

Version Traf�c Class Flow Label

Payload Length

Source Address

Destination Address

IPv6 Header

Next Header = EH2 Extension Header EH 1

Extension Header EH 2

Next Header=EH1

Page 17: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

IPv6 Extension Headers

How to Configure IPv6 on AlliedWare Plus Products | Page 17

The basic structure of Extension HeadersTo enable routers to efficiently parse the IPv6 packet, each Next Header field gives a pointer to the next Extension Header, further in the packet, so the processing required to move from one header to the next is simple.

The first Next Header field is the Main IPv6 Header, as illustrated in the diagram above, see “What are the differences between IPv4 and IPv6 headers?” on page 16. In that example, the first Next Header field tells us that the next Extension Header is Extension Header 1 (EH1). The Next Header field in Extension Header 1 tells us that the next Extension header is Extension Header 2 (EH2).

Now let us look at a specific example. We can see the structure of the Extension Headers in the IPv6 section of the packet decode below:

Version 0110 .... = Version: 6

Traffic Class8 bits 6 for DSCP2 for ECN

1110 0000 .... ... = Traffic class: 0x000000e0.... 1110 00.. ....= Differentiated Services Field: Class Selector 7..0. = ECN-Capable Transport(ECT):Not Set..0 = ECN-CE: Not set

Flow Label 0000 0000 0000 0000 0000 = Flowlabel: 0x00000000

Payload length Payload length: 52

In the Main IPv6 Header the Next Header is AH – Authentication Header

Next header Next header: AH (0x33)0x33 Hex,(51 Decimal)

Hop Limit Hop limit: 1

Source IPv6 address Source: fe80::1 (fe80::1)

Dest. IPv6 address Destination: fe80::2 (fe80::2)

Authentication Header

And in the AH Header we see that the Next header is OSPF

AH Extension Header Next Header: OSPF IGP (0x59)0x59 Hex, which is 89 DecimalLength: 24AH SPI: 0x00000100AH Sequence: 22AH ICV: d0883638d39101562e836679

There is no Next Header field in the OSPF Header, so we know that this is the last Header in this IPv6 packet

OSPF Extension Header OSPF HeaderOSPF Version: 3Message Type: DB Description (2)Packet Length: 28Source OSPF Router: 1.1.1.1 (1.1.1.1)Area ID: 0.0.0.1Packet Checksum: 0xe471 [correct]Instance ID: 0 (IPv6 unicast AF)Reserved: 0OSPF DB Description

Page 18: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

IPv6 Extension Headers

How to Configure IPv6 on AlliedWare Plus Products | Page 18

Possible values for the next header field

deCIMAl VAlUe keyWoRd PRoToCol

0 Reserved (Ipv4)

0 HBH Hop-by-Hop option (IPv6)

1 ICMP Internet Control Message (IPv4)

2 IGMP Internet Group Management (IPv4)

3 GGP Gateway-to-Gateway Protocol

4 IP IP in IP (IPv4 encapsulation)

5 ST Stream

6 TCP Transmission Control

8 EGP Exterior Gateway Protocol

9 IGP Any private interior gateway

16 CHAOS Chaos

17 UDP User Datagram

29 ISO-TP4 ISO Transport Protocol Class 4

36 XTP XTP

43 RH Routing header (IPv6)

44 FH Fragmentation header (IPv6)

45 IDRP Inter-Domain Routing Protocol

46 RSVP Reservation Protocol

50 ESP Encapsulating Security Payload

51 AH Authentication header (IPv6)

54 NHRP NBMA Next Hop Resolution Protocol

58 ICMP Internet Control Message (IPv6)

59 Null No next header (IPv6)

60 DOH Destination Options header (IPv6)

80 ISO-IP ISO Internet Protocol (CLNP)

83 VINES VINES

88 IGRP IGRP

89 OSPF OSPF (Open Shortest Path First)

93 AX.25 AX.25 Frames

Page 19: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

IPv6 Extension Headers

How to Configure IPv6 on AlliedWare Plus Products | Page 19

RFC 2460 recommends the order in which the Headers should be chained in an IPv6 packet:

oRdeR heAdeR TyPe

1 Basic IPv6 Header

2 Hop-by-hop options

3 Destination options (with routing options)

4 Routing header

5 Fragment header

6 Authentication header

7 Encapsulation security payload header

8 Destination options

9 Mobility header

No next header

Upper Layer TCP

Upper Layer UDP

Upper Layer ICMP v6

However, this is only a recommendation, the only absolute requirement is that the Hop-by-Hop Extension Header has to be the first one.

The Hop-by-Hop Extension Header is the only Extension Header that must be fully processed by all network devices. This is why this Extension Header must be the first in a sequence of extension headers.

The purpose of the Hop-by-Hop option (also called the CSI option) purpose is to store status information of nodes along the packet’s path. New IPv6 ICMP messages Status Request, Status Reply and Status Report use the Hop-by-Hop option to gather network information that can be used to determine the best path through a network, as well as detect network problems.

Network devices are not required to process any of the other IPv6 extension headers when simply forwarding the traffic.

Each extension header should occur at most once, with the only exception being the Destination Options header, which can occur twice in different positions.

The Hop-by-Hop and Destination Headers carry variable numbers of Options (other Extension Headers do not) – these are carried in a TLV format:

� Option Type

� Option Data Length

� Option Data

Page 20: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

IPv6 Extension Headers

How to Configure IPv6 on AlliedWare Plus Products | Page 20

Encryption and Authentication in IPv6IPv4 protocols such as OSPFv2, have authentication incorporated into their own protocol header.

In IPv6, authentication and encryption are performed by separate IP headers, completely independent to the enclosed protocol.

Ah – Authentication header – commonly Md5 or ShAThe authentication information for the Authentication Header is calculated using all the fields of the datagram that do not change in transit.

This header can be used as part of IPSec to authenticate end point to end point packets. This can be used to protect protocols like OSPFv3, IPv6 BGP, RADIUS, TACACS+, and RIPng.

eSP – encapsulated Security Payload – commonly 3deS or AeSESP is used to convey the encrypted data of the IP datagram. The encrypted data is obtained by applying a specified encryption transform to the data and requires the use of a key in order to return to plaintext.

There are two modes used for ESP:

� Tunnel Mode

� Transport mode

Tunnel Mode, where the entire IP packet is encrypted and/or authenticated. It is then encapsulated into a new IP packet with a new IP header.

ESP Tunnel mode encrypts the whole IP datagram:

In ESP Tunnel mode, the Authentication Header appears as an extension header of the new IP datagram that encapsulates the original one being tunnelled.

New IPHeader

AHHeader

ESPHeader

IPHeader

TCP/UDP

Header

UpperLayer

HeadersIP Sec

Layer 2Layer 2Header

Layer 2Footer

Upper Layer(Application)

Data

Encapsulating IP/IPSec Datagram

Layer 2 Frame

New IPHeader

AHHeader

ESPHeader

IPHeader

TCP/UDP

Header

UpperLayer

Headers

Upper Layer(Application)

Data

Page 21: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

IPv6 Extension Headers

How to Configure IPv6 on AlliedWare Plus Products | Page 21

Transport Mode, where only the payload of the IP packet is encrypted and/or authenticated – not the original IPv6 Header.

ESP Transport mode encrypts only the payload (the Transport Layer message of the IPv6 datagram).

In ESP transport mode, the Authentication Header is placed into the main IP Header before any Destination Options header and before an ESP header.

The extension headers used to secure the IP communication between two hosts, Authentication and Encapsulating Security Payload Headers, are ignored by the intermediary network devices while forwarding traffic. These Extension Headers are relevant only to the source and destination of the IP packet.

All information following the ESP Header is encrypted and not available for inspection by an intermediary device.

The QoS Flow LabelThe QoS Flow label is a 20 bit field in the IPv6 packet header which provides an efficient way for packet marking, flow identification, and flow state lookup.

This field can be used by a source to label a set of packets belonging to the same flow.

The switch must process the packets in the same flow in the same manner.

When a flow-label aware router receives the first packet of a new flow, it sets up a new flow entry using the information carried by the IPv6 header, Routing header, and Hop-by-Hop extension headers, and stores the result.

It then uses the flow entry to route all other packets belonging to the same flow – which will have the same source address and the same Flow Label.

IP/IPSec

Header

AHHeader

ESPHeader

TCP/UDP

Header

UpperLayer

Headers

IP/IPSec

Layer 2Layer 2Header

Layer 2Footer

Upper Layer(Application)

Data

IP/IPSec Datagram

Layer 2 Frame

AHHeader

ESPHeader

TCP/UDP

Header

UpperLayer

Headers

Upper Layer(Application)

Data

IP/IPSec

Header

Page 22: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Routing

How to Configure IPv6 on AlliedWare Plus Products | Page 22

Routing

Static routesIPv6 forwarding must be enabled before AlliedWare Plus will route IPv6 data packets:

awplus#conf t

awplus(config)#ipv6 forwarding

This is how you add a static route to a switch:

awplus#conf t

awplus(config)#ipv6 route 2003:3333::/64 2002: 1111::1

This is how you add a default route:

awplus#conf t

awplus(config)#ipv6 route ::/0 2002:4444::2

Routing Information Protocol (RIPng)RIPng is the IPv6 version of IPv4 and RIPv2 routing protocol. The basic operation of the protocol is mostly the same, but there are also some notable differences between them, especially in terms of the format of messages sent.

RIPng is a fairly simple distance vector protocol which defines networks based on how many hops they are from the router. Once a network is more than 15 hops away (one hop is one link) it is not included in the routing table. Because of the use of IPv6 addresses there are no subnets that are passed as in RIPv2, instead RIPng uses a prefix length.

Let us now look at some of the differences between RIPng and RIP (IPv4)

RIPng RIP (IPV4)

128-bit address length 32-bit address length

Packet length - depends on the IPv6 MTU of the sending inter-face, so not limited to a specific number of route entries.

A RIPv2 message carries up to 25 route entries.

Uses UDP to send updates on port 521 Uses port 520

Sends and requests updates using multicast address: FF02: :9 Sends and requests updates using multicast address: 224.0.0.9

Prefix length Subnet masks

Uses authentication mechanism available within the IPv6 header

Page 23: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Routing

How to Configure IPv6 on AlliedWare Plus Products | Page 23

Configuring RIPng on an Alliedware Plus switchEnter the following commands to configure RIPng on an AlliedWare Plus switch:

First, enable RIP:

awplus#conf t

awplus(config)#router ipv6 rip

Then enable RIPng on a specific interfaces: 

awplus(config)#int vlan2

awplus(config-if)#ipv6 router rip

DHCP RelayWhile stateless address autoconfiguration is the IPv6 way of automatically configuring hosts’ network information, it is not fully supported by some vendors, so Dynamic Host Configuration Protocol (DHCP) is still commonly used.

Where the DHCPv6 server does not reside on the same IP subnet as its clients, a relay agent can act as an intermediate device between the two subnets.

� AlliedWare Plus DHCP Relay supports IPv6 addresses, in addition to existing support for IPv4 addresses.

To enable the DHCP relay agent on your device to relay DHCP packets on interface VLAN 1 to the DHCP server with the IPv6 address 2001:0db8:010d::1 reachable via interface VLAN 2, use the following command sequence:

awplus#conf t

awplus(config)#service dhcp-relay

awplus(config)#interface vlan1

awplus(config-if)#ip dhcp-relay server-address 2001:0db8:010d::1 vlan2

You can configure up to five servers per interface that DHCP requests can be relayed to.

Note: A DHCP relay configured with an IPv6 server address will relay only IPv6 DHCP packets. To relay IPv4 DHCP packets, a separate relay instance, using an IPv4 server address, is required.

Example

Page 24: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Management

How to Configure IPv6 on AlliedWare Plus Products | Page 24

Management

Network Time Protocol v6Network Time Protocol (NTP) is a service that allows networked devices to solicit their system time from a central source. This can either be internal to a company or derived from one of a handful of atomic clocks who provide this time as a service to the Internet community. NTP on AlliedWare Plus can accept time from upstream devices, synchronize with peers, and pass the time on to downstream devices. NTP over IPv6 is identical to NTP over IPv4, with IPv6 as the network protocol.

Adding an nTP peerawplus#conf t

awplus#ntp peer 2001:0db8:010d::1

Once a NTP peer has been configured we can use the show ntp associations command to see the current list of NTPv6 associations to the switch:

To see this output in more detail on the NTPv6 peer associations, use the following command: show ntp associations detail.

DNS Client and DNS Relay over IPv6The Domain Name System (DNS) allows you to access remote systems by entering human-readable device host names rather than IP addresses. DNS works by creating a mapping between a device name, such as “www.alliedtelesis.com”, and its IP address. These mappings are held on DNS servers. DNS translates meaningful domain names into IP addresses for networking equipment to locate and address these devices.

The benefits of DNS are that domain names:

� can map to a new IP address if the host’s IP address changes

� are easier to remember than an IP address

� allow organizations to use a domain name hierarchy that is independent of any IP address assignment

Alliedware Plus now supports Domain Name translation for internal switch applications using remote DNS servers over an IPv6 network via the following modified commands:

� ip name server

� show ip name-server

The existing command ip dns forwarding has been enhanced and now inherently supports the ability for connected hosts to resolve domain names via a remote DNS server over an IPv6 network.

The ip name-server command is required in addition to the ip dns forwarding command to ensure DNS requests from connected hosts can be relayed to the DNS server.

When your device is using its DHCP client for an interface, it can receive Option 6 from the DHCP server. This option appends the name server list with more DNS servers. The DNS client on your device sends DNS queries to devices on this list when trying to resolve a

Page 25: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Management

How to Configure IPv6 on AlliedWare Plus Products | Page 25

hostname. Your device cannot resolve a hostname until you have added at least one server to this list. There is no limit on the number of servers you can add to the list.

To allow your device to send DNS queries to a DNS server with the IPv6 address 2001:0db8:010d::1, use the commands:

awplus#configure terminal

awplus(config)#ip name-server 2001:0db8:010d::1

awplus#show ip name-server Nameservers: 10.10.0.123 10.10.0.124 2001:0db8:010d::1

Example

Page 26: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Full IPv6 Configuration Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 26

Full IPv6 Configuration Examples

Example 1: Verifying IPv6 functionalityIn this example, IPv6 addresses have been configured on two different switches.

Both devices ping each other’s IPv6 address which has been configured on the VLAN2 interface of both switches.

Switch B configuration awplus#conf tawplus(config)#vlan database awplus(config-vlan)#vlan 2 name vlan2 awplus(config-vlan)#exit awplus(config)#ipv6 forwarding awplus(config)#int vlan2awplus(config-if)#ipv6 address 2002:1111::1/64awplus(config)#int port1.0.1 awplus(config-if)#switchport access vlan 2 awplus(config-if)#exit awplus(config)#exit

Switch A configurationawplus#conf tawplus(config)#vlan databaseawplus(config-vlan)#vlan 2 name vlan2awplus(config)#int port1.0.1 awplus(config-if)#switchport access vlan 2awplus(config-if)#exit awplus(config)#int vlan2 awplus(config-if)#ipv6 address 2002:1111::2/64awplus(config-if)#exit awplus(config)#ipv6 forwarding awplus(config)#exit

awplus#ping ipv6 2002:1111::2PING 2002:1111::2(2002:1111::2) 56 data bytes64 bytes from 2002:1111::2: icmp_seq=1 ttl=64 time=6.40 ms64 bytes from 2002:1111::2: icmp_seq=2 ttl=64 time=2.26 ms64 bytes from 2002:1111::2: icmp_seq=3 ttl=64 time=1.73 ms64 bytes from 2002:1111::2: icmp_seq=4 ttl=64 time=1.65 ms

--- 2002:1111::2 ping statistics ---4 packets transmitted, 4 received, 0% packet loss, time 3002ms rtt min/avg/max/mdev = 1.652/3.014/6.408/1.974 ms

Page 27: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Full IPv6 Configuration Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 27

awplus#show ipv6 forwarding IPv6 forwarding is on

� IPv6 forwarding has been enabled, this needs to be configured, by default the switches implementation of L3 IPv6 forwarding is disabled

awplus#show ipv6 interfaceInterface IPv6-Address Status Protocoleth0 unassigned admin up down lo unassigned admin up runningvlan1 unassigned admin up down vlan2 2002:1111::1/64 admin up running fe80::200:cdff:fe2a:e571/64

� Both the configured and the link-local addresses are displayed for the IPv6 interface. You can see that the host part of the link-local address has been created by performing the EUI-64 transformation on the MAC address 00c0.cd2a.e571.

� The IPv6 neighbor table is the equivalent to the IPv4 ARP table. It lists the addresses of

the IPv6 devices that are known to exist in the subnets attached to the switch.awplus#show ipv6 neighborsIPv6 Address MAC Address Interface Port Type sta = static dyn = dynamic 2002:1111::2 eccd.6d18.224b vlan2 port1.0.1 dynfe80::eecd:6dff:fe18:224b eccd.6d18.224b vlan2 port1.0.1 dyn

� There may be two IPv6 addresses present in all the tables for the same device. The reason for this is that the first entry is the unicast IPv6 address configured by the user:

2002:1111::2 eccd.6d18.224b vlan2 port1.0.1 dyn

� The second address is the Link Local address that the device created automatically.fe80::eecd:6dff:fe18:224b eccd.6d18.224b vlan2 port1.0.1 dyn

awplus#sh ipv6 routeIPv6 Routing TableCodes: C - connected, S - static, R - RIP, O - OSPF, B - BGPTimers: Uptime C 2002:1111::/64 via ::, vlan2, 00:36:39C fe80::/64 via ::, vlan2, 00:36:39

� Both types of the interface unicast addresses are present in the routing table.

Page 28: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Full IPv6 Configuration Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 28

awplus#sh platform table ipv6

[Instance 0]IPv6 Unicast Route Table:--------------------------------------------------------------------RE-Idx IP address/prefLen Route-Entry EnCap Dev Port Tr VID --------------------------------------------------------------------1 ::/ 0 * trap to cpu * - - - - - 3 2002:1111::/ 64 * trap to cpu * - - - - - 4 2002:1111::0002/128 eccd.6d18.224b LL 0 4 - 2 3 fe80::0002/ 64 * trap to cpu * - - - - 4 fe80::eecd:6dff:fe18:224b/128 eccd.6d18.224b LL 0 4 - 2 [Instance 2]IPv6 Unicast Route Table:--------------------------------------------------------------------RE-Idx IP address/prefLen Route-Entry EnCap Dev Port Tr VID--------------------------------------------------------------------1 ::/ 0 * trap to cpu * - - - - - 3 2002:1111::/ 64 * trap to cpu * - - - - - 4 2002:1111::0002/128 eccd.6d18.224b LL 0 4 - 2 3 fe80::0002/ 64 * trap to cpu * - - - - - 4 fe80::eecd:6dff:fe18:224b/128 eccd.6d18.224b LL 0 4 - 2

Looking at the entries in the switche’s IPv6 hardware table, we can see that the IPv6 address that has been configured on VlAN 2 is present, and below that entry is the link-local address that is created automatically by the switch. Both of these entries have the same MAC address as the Route-Entry. The LL in the output after the IPv6 addresses lets the user know that the entry refers to it as a Link-Layer interface as opposed to the other option it can be which is tunnel (“TNL”).

Page 29: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Full IPv6 Configuration Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 29

Example 2: Adding an IPv6 static neighborThis example demonstrates an IPv6 neighbor being statically configured on interface port1.0.19.

Initially, the VLAN interface has the following IPv6 configuration:interface vlan10 ipv6 address 2003:1111::1/64

Then, port1.0.19 is added to VLAN 10 :int port1.0.19switchport access vlan 10

Now, add the static neighbor entry:

The IPv6 address is 2003:1111::20. The VLAN we are associating with this entry is VLAN 10 with a MAC address of 0000.cd28.0880. This device is attached through int port1.0.19.

awplus(config)#ipv6 neighbor 2003:1111::20 vlan10 0000.cd38.9009 port1.0.19

awplus(config)#exit

Note that the neighbor 2003:1111::20 has Type ‘sta’ in the output below:

awplus#sh ipv6 neighbors IPv6 Address MAC Address Interface Port Type sta =static dyn=dynamic 2002:1111::1 0000.cd2a.e571 vlan2 port1.0.1 dyn 2003:1111::2 0000.cd27.c4bf vlan10 port1.0.10 dyn 2003:1111::20 0000.cd38.9009 vlan10 port1.0.19 sta fe80::200:cdff:fe27:c4bf 0000.cd27.c4bf vlan10 port1.0.10 dyn fe80::200:cdff:fe2a:e571 0000.cd2a.e571 vlan2 port1.0.1 dyn

Page 30: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Full IPv6 Configuration Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 30

Example 3: Stateless Address Autoconfiguration

This example will demonstrate a PC connected to an x900 obtaining an IPv6 address automatically. To configure the switch for operation with a PC with IPv6 enabled follow these steps:

1. Enable IPv6 forwarding.

awplus(config)#ipv6 forwarding

2. Configure an IPv6 address on the VLAN in which the PC is connected.

awplus(config-if)#ipv6 address 2001:1111::1/6

3. Enable Router Advertisement for IPv6 stateless configuration.

awplus(config-if)#no ipv6 nd suppress-ra

4. Specify the IPv6 prefix that is advertised for IPv6 auto-configuration.

awplus(config-if)#ipv6 nd prefix 2001:1111::/64

Note: The router will not automatically advertise the prefix in the address on the interface, so you need to perform steps 3 and 4.

If you execute the command show ipv6 neighbors on the switch, you will see the PC connected – in this case on port1.0.1 in VLAN 1:

On Windows XP the PC’s IPv6 information can be viewed with the ipv6 if command. This will display IPv6 information for all network interfaces on the PC. Note that IPv6 is not enabled by default in Microsoft Windows XP SP2, it has to be explicitly installed and enabled. Proper IPv6 support was added with the “Advanced Networking Pack” and updated in the Service Pack 2.

Once you know the interface index number you can just specify it to view IPv6 information for that interface only:

x900Port1.0.1 Vlan 1

IPv6 address 2001:1111::1/64Windows

Client

Page 31: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Full IPv6 Configuration Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 31

To test that the PC can access to another IPv6 network, configure a second VLAN on the switch with an IPv6 address.

awplus(config-if)#ipv6 address 2002:2222::1/64

A ping to this address from the PC confirms that the routing is working:

Next, we test learning an IPv6 route (2005:5555::/64) via OSPFv3 on the switch and check connectivity to this from the PC:

awplus#show ipv6 routeIPv6 Routing TableCodes: C - connected,S - static,R - RIP,O - OSPF,B - BGPTimers: UptimeC 2001:1111::/64 via ::, vlan1, 01:20:48C 2002:2222::/64 via ::, vlan2, 00:00:45O 2005:5555::/64 [110/20]via fe80::eecd:6dff:fe20:c0e1,vlan2,00:00:0C fe80::/64 via ::,vlan2,00:00:45C fe80::/64 via ::,vlan1,01:20:48

Page 32: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Full IPv6 Configuration Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 32

Authenticator#show userLine User Host(s) Idle Location Priv Idletime Timeoutvty 1 manager idle00:00:002001:1111::8f:3845:23e9:6fc515 10

A telnet connection from the PC to the switch at 2005:5555::1/64 was also successful:

!vlan database vlan v2-3 state enable!interface port1.0.2 switchport switchport mode access switchport access vlan 2!interface vlan1 ip address 192.168.1.2/24 ipv6 address 2001:1111::1/64 no ipv6 nd suppress-ra ipv6 nd prefix 2001:1111::/64!interface vlan2 ip address 192.168.2.1/24 ipv6 address 2002:2222::1/64router ipv6 ospf area 0 tag process1!ipv6 forwarding!router ipv6 ospf process1 router-id 192.168.1.2

Complete switch configuration

Page 33: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Full IPv6 Configuration Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 33

Example 4: Acquiring an IPv6 address from another switch

In this example, the x600 switch is acting as a router, and transmitting Router Advertisements. The x900 switch is configured to create its own IPv6 address using SLAAC.

Configuration of the x600 switchVLAN 10 is created on the x600 and interface port1.0.1 is added to VLAN 10 as an untagged interface.

awplus#conf t

awplus(config)#vlan database

awplus(config-vlan)#vlan 10 name vlan10v

awplus(config)#int port1.0.1

awplus(config-if)#switchport mode access

awplus(config-if)#switchport access vlan 10

IPv6 Forwarding is enabled and an IPv6 address is configured on the interface. In this example, the eui64 parameter has been configured so this uses eui64 to fill in the bottom 64 bits of the address:

awplus(config)#ipv6 forwarding

awplus(config)#int vlan10

awplus(config-if)#ipv6 address 2001:1db9:1:2::/64 eui64

Set the specific IPv6 prefix information that you want advertised by the router for the IPv6 address auto configuration. Set the RA interval to be 1 message every 10 seconds.

awplus(config-if)#ipv6 nd ra-interval 10

awplus(config-if)#ipv6 nd prefix 2001:1db9:1:2::/64

This command enables the switch to send RA’s out this interface. Without this command RA’s are never generated, so this command turns on the RA sending process.

awplus(config-if)#no ipv6 nd suppress-ra.

The configuration on the x900:

awplus#conf t

awplus(config)#int vlan1

awplus(config-if)#ipv6 address autoconfig

awplus(config-if)#exit

port1.0.1 Vlan 10

IPv6 address 2001:1db9:1:2::/64

x600 x900Port1.0.1

Page 34: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Full IPv6 Configuration Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 34

Show commands from the x900 acting as the client

awplus#sh ipv6 intInterface IPv6-Address Status Protocoleth0 unassigned admin up downlo unassigned admin up runningvlan1 2001:1db9:1:2:200:cdff:fe2a:e571/64 admin up running fe80::200:cdff:fe2a:e571/64 admin up running

The default route has been created.awplus#sh ipv6 routeIPv6 Routing TableCodes: C - connected, S - static, R - RIP, O - OSPF, B - BGPTimers: Uptime

C ::/0 via fe80::eecd:6dff:fe18:224b, vlan1, 00:01:14C 2001:1db9:1:2::/64 via ::, vlan1, 00:01:12C fe80::/64 via ::, vlan1, 01w2d00hC fe80::/64 via ::, vlan1, 01w2d00h

DHCPserver Vlan 1

x600P1 P2

Vlan 2

DHCPclient

Example 5: Relaying DHCP

Create a second VLAN on the switch:

awplus#conf t

awplus(config)#vlan database

awplus(config-vlan)#vlan 2 name vlan2

awplus(config)#int port1.0.21

awplus(config-if)#switchport mode access

awplus(config-if)#switchport access vlan 2

Page 35: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Full IPv6 Configuration Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 35

Add IPv6 addresses to both VLAN 1 and VLAN2:

awplus#conf t

awplus(config)#int vlan1

awplus(config-if)#ipv6 address 2003:db8:1:2::1/64

awplus(config)#exit

awplus(config)#int vlan2

awplus(config-if)#ipv6 address fc00:3462:175:1::10/64

Enable IPv6 forwarding:

awplus(config)#ipv6 forwarding

Now enable DHCP relay on the switch

awplus#conf t

awplus(config)#service dhcp-relay

With DHCP Relay enabled globally on the switch, VLAN 1 needs to be configured with a DHCP definition:

awplus(config)#interface vlan1

awplus(config-if)#ip dhcp-relay server-address fc00:3462:175:1::1 vlan2

In this example, the client is an AR-Router, configured as follows:IPv6 configurationenable ipv6create ipv6 int=eth0add ipv6 int=eth0 ip=dhcp

Once this client has learnt an IPv6 address by DHCP, a show command on the client will display the address:

Page 36: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Routing Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 36

awplus#show ipv6 int=eth0

IPV6 Interface Configuration-------------------------------------------------------------Interface ...................eth0Ipv6 Interface Index ........1Link-layer address ... ..00-00-cd-1d-bc-c4Link-layer state ... ..UpEUI-64 Interface Identifier ..0200CDFFFE1DBCC4IPSec ........................NoTrue MTU/Link MTU ............1500/1500Multicast status .............EnabledSend Router Advertisements ? NoIpv6 Interface Addresses : Int Addresses PLen Decrement Type Scope State Enabled Valid Preferred Publish------------------------------------------------------------- 0 fe80::0200:cdff:fe1d:bcc4 /64 No unicast link preferred Yes infinite infinite No 1 2001:0db8:0001::0100 /64 Yes unicast global preferred Yes 259 259 No

Routing Examples

Example 1: Static routingThis example demonstrates how an IPv6 static route is configured and represented in the show/platform commands. We have configured a default route in each of the switches on the end and then a static route on each of the x900 and the x600 for the remote networks.

p10x900 A

x900 C

x900 B

x600

p10

p10

p1

p1 p10VLAN 10

VLAN 20VLAN 2

DHCP client with IPv6 address

Page 37: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Routing Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 37

Configurations of the switches, x600 and x900A:

x600 switchvlan database vlan 2 name vlan2 vlan 20 name vlan20 vlan 2,20 state enable!interface port1.0.1 switchport switchport mode access switchport access vlan 2!interface port1.0.10 switchport switchport mode access switchport access vlan 20!interface vlan2 ipv6 address 2002:1111::2/64!interface vlan20 ipv6 address 2002:4444::2/64

!ipv6 forwarding!ipv6 route 2003:3333::/64 2002:1111::1

x900A switch!vlan database vlan 2 name vlan2 vlan 10 name vlan10 vlan 2,10 state enable!interface port1.0.1 switchport switchport mode access switchport access vlan 2!interface port1.0.10 switchport switchport mode access switchport access vlan 10!interface vlan2 ipv6 address 2002:1111::1/64!interface vlan10 ipv6 address 2003:3333::1/64!ipv6 forwarding!ipv6 route 2002:4444::/64 2002:1111::2

Page 38: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Routing Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 38

Looking at the routing and hardware tables on x900C which only has the default route configured.

[Instance 0]IPv6 Unicast Route Table:---------------------------------------------------------------RE-IdxI IPaddress/prefLen Route-Entry EnCap Dev Port Tr VID---------------------------------------------------------------4 ::/ 0 eccd.6d18.224b LL 0 4 - 203 2002:4444::/ 64 * trap to cpu * - - - - -4 2002:4444::0002/128 eccd.6d18.224b L 0 4 - 203 fe80::0002/ 64 * trap to cpu * - - - - -4 fe80::eecd:6dff:fe18:224b/128 eccd.6d18.224b LL 0 4 - 20

[Instance 2]IPv6 Unicast Route Table:----------------------------------------------------------------RE-Idx IP address/prefLen Route-Entry EnCap Dev Port Tr VID----------------------------------------------------------------4 ::/ 0 eccd.6d18.224b LL 0 4 - 203 2002:4444::/ 64 * trap to cpu * - - - - -4 2002:4444::0002/128 eccd.6d18.224b LL 0 4 - 203 fe80::0002/ 64 * trap to cpu * - - - -4 fe80::eecd:6dff:fe18:224b/128 eccd.6d18.224b LL 0 4 - 20

awplus#sh ipv6 routeIPv6 Routing TableCodes: C - connected, S - static, R - RIP, O - OSPF, B - BGPTimers: Uptime

C 2002:1111::/64 via ::, vlan2, 1d20h29mS 2002:4444::/64 [1/0] via 2002:1111::2, vlan2, 1d21h55mC 2003:3333::/64 via ::, vlan10, 1d21h43mC fe80::/64 via ::, vlan2, 1d20h29mC fe80::/64 via ::, vlan10, 1d21h43m

Captures from x900A

awplus#sh ipv6 routeIPv6 Routing TableCodes: C - connected, S - static, R - RIP, O - OSPF, B -

BGPTimers: Uptime

S ::/0 [1/0] via 2002:4444::2, vlan20, 00:00:09C 2002:4444::/64 via ::, vlan20, 1d20h02mC fe80::/64 via ::, vlan20, 1d20h02m

Page 39: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Routing Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 39

[Instance 0]IPv6 Unicast Route Table:-----------------------------------------------------------------RE-Idx IPaddress/prefLen Route-Entry EnCap Dev Port Tr VID-----------------------------------------------------------------4 ::/ 0 eccd.6d18.224b LL 0 4 - 203 2002:4444::/ 64 * trap to cpu * - - - - -4 2002:4444::0002/128 eccd.6d18.224b LL 0 4 - 203 fe80::0002/ 64 * trap to cpu* - - - - -4 fe80::eecd:6dff:fe18:224b/128 eccd.6d18.224b LL 0 4 - 20

[Instance 2]vIPv6 Unicast Route Table:-----------------------------------------------------------------RE-Idx IP address/prefLen Route-Entry EnCap Dev Port Tr VID-----------------------------------------------------------------4 ::/ 0 eccd.6d18.224b LL 0 4 - 203 2002:4444::/ 64 * trap to cpu * - - - - -4 2002:4444::0002/128 eccd.6d18.224b LL 0 4 - 203 fe80::0002/ 64 * trap to cpu * - - - - -4 fe80::eecd:6dff:fe18:224b/128 eccd.6d18.224b LL 0 4 - 20

awplus#sh platform table ipv6

[Instance 0]IPv6 Unicast Route Table:------------------------------------------------------------RE-Idx IPaddress/prefLen Route-Entry EnCap Dev Port Tr VID-------------------------------------------------------------------1 ::/ 0 * trap to cpu * - - - - -3 2002:1111::/ 64 * trap to cpu * - - - - -4 2002:1111::0002/128 eccd.6d18.224b LL 0 4 - 24 2002:4444::0002/ 64 eccd.6d18.224b LL 0 4 - 23 2003:3333::0002/ 64 * trap to cpu * - - - - -5 2003:3333::0002/128 0000.cd24.0232 LL 0 8 - 103 fe80::0002/ 64 * trap to cpu * - - - - -4 fe80::eecd:6dff:fe18:224b/128 eccd.6d18.224b LL 0 4 - 2

[Instance 2]IPv6 Unicast Route Table:------------------------------------------------------------------RE-IdxIP address/prefLen Route-Entry EnCap Dev Port Tr VID------------------------------------------------------------------1 ::/ 0 * trap to cpu * - - - - -3 2002:1111::/ 64 *trap to cpu * - - - - -4 2002:1111::0002/128 eccd.6d18.224b LL 0 4 - 24 2002:4444::0002/ 64 eccd.6d18.224b LL 0 4 - 23 2003:3333::0002/ 64 * trap to cpu * - - - - -5 2003:3333::0002/128 0000.cd24.0232 LL 0 8 - 103 fe80::0002/ 64 * trap to cpu * - - - - -4 fe80::eecd:6dff:fe18:224b/128 eccd.6d18.224b LL 0 4 - 2

Page 40: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Routing Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 40

Captures from x600

awplus#sh ipv6 routeIPv6 Routing TableCodes: C - connected, S - static, R - RIP, O - OSPF, B - BGP Timers: Uptime C 2002:1111::/64 via ::, vlan2, 01:03:58 C 2002:4444::/64 via ::, vlan20, 00:46:00S 2003:3333::/64 [1/0] via 2002:1111::1, vlan2, 00:52:14C fe80::/64 via ::, vlan20, 00:46:00 C fe80::/64 via ::, vlan20, 00:46:54 C fe80::/64 via ::, vlan2, 01:03:58C fe80::/64 via ::, vlan2, 01:16:11C fe80::/64 via ::, vlan1 inactive, 02:48:40

awplus#sh platform table ip

[Instance 4]

IP Host Table: free L3 table entries: 8182

--------------------------------------------------------------Index IP address/prefLenNextHop Vlan Vrf Mod Port Tr Hit--------------------------------------------------------------1fe80::eecd:6dff:fe18:224b ** trap to cpu ** 0 0 4 CPU 0 y2 2002:4444::2 ** trap to cpu ** 0 0 4 CPU 0 y3 2002:1111::2 ** trap to cpu ** 0 0 4 CPU 0 y4 2002:1111::1 0000.cd2a.e571 2 0 4 0 0 y5 2002:4444::1 0000.cd27.c4bf 20 0 4 9 0 y

IP Unicast Route Table: Total number of DEFIP entries: 12288 Free DEFIP entries: 12277 Max number of ECMP paths: 32

Index IP address/prefLen NextHop Intf Vrf Mod Port Tr Pr Hit Loc Ec D--------------------------------------------------------------------------------3072 0.0.0.0 0 ** trap to cpu ** 4095 0 4 CPU 0 0 n 1 0 0768 2002:1111:: 64 ** trap to cpu ** 4095 0 4 CPU 0 0 n 1 0 0769 fe80:: 64 ** trap to cpu ** 4095 0 4 CPU 0 0 n 1 0 1770 2002:4444:: 64 ** trap to cpu ** 4095 0 4 CPU 0 0 n 1 0 0771 2003:3333:: 64 0000.cd2a.e571 1 0 4 0 0 0 y 0 0 01536 :: 0 ** trap to cpu ** 4095 0 4 CPU 0 0 n 1 0 0

Page 41: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Routing Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 41

Example 2: RIPng � The first part of this example will demonstrate how to configure RIPng for basic

operation, see “Part 1” on page 42.

� The second part will demonstrate how to redistribute static routes/connected routes into RIPng, see “Part 2” on page 43.

Configurations for the x600 and x900 A are as follows:

x600 switchvlan database vlan 2 name vlan2 vlan 20 name vlan20 vlan 2,20 state enable!interface port1.0.1 switchport switchport mode access switchport access vlan 2!interface port1.0.10 switchport switchport mode access switchport access vlan 20!interface vlan2 ipv6 address 2002:1111::2/64 ipv6 router rip!interface vlan20 ipv6 address 2002:4444::2/64!ipv6 forwarding!router ipv6 rip

p10x900 A

x900 C

x900 B

x600

p10

p10

p1

p1 p10VLAN 10

VLAN 20VLAN 2

Page 42: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Routing Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 42

Part 1

Configuring RIP on the x600 and the x900 switches:This command enables RIPng on the switch:

awplus#conf t

awplus(config)#router ipv6 rip

This command enables RIPng routing on the interface VLAN2

awplus(config)#int vlan2

awplus(config-if)#ipv6 router rip

awplus#sh ipv6 int vlan2Interface IPv6-Address Status Protocolvlan2 2002:1111::2/64 admin up running fe80::eecd:6dff:fe18:224b/64

x900Avlan database vlan 2 name vlan2 vlan 10 name vlan10 vlan 2,10 state enable!interface port1.0.1 switchport switchport mode access switchport access vlan 2!interface port1.0.10 switchport switchport mode access switchport access vlan 10!interface vlan2 ipv6 address 2002:1111::1/64 ipv6 router rip!interface vlan10 ipv6 address 2003:3333::1/64!ipv6 forwarding!router ipv6 rip

Page 43: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Routing Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 43

awplus#sh ipv6 rip int vlan2vlan2 is up, line protocol is up Routing Protocol: RIPng Passive interface: Disabled Split horizon: Enabled with Poisoned Reversed IPv6 interface address: 2002:1111::1/64

fe80::200:cdff:fe2a:e571/64

awplus#sh ipv6 rip int vlan2vlan2 is up, line protocol is up Routing Protocol: RIPng Passive interface: Disabled Split horizon: Enabled with Poisoned Reversed IPv6 interface address: 2002:1111::1/64

fe80::200:cdff:fe2a:e571/64

Part 2

The second part to this example is to demonstrate how to redistribute static routes/connected routes into RIPng.

In this example, we add another static route to the x900.

awplus#conf t

awplus(config)#ipv6 route 2002:5656::/64 2003:3333::2

Now we need to specify to RIPng that we want static routes to be redistributed into the RIPng updates:

awplus#conf t

awplus(config)#router ipv6 rip

On the x900

Enabling IPv6 RIPng globally on the switch.

awplus#conf t

Enter configuration commands, one per line. End with CNTL/Z.

awplus(config)#router ipv6 rip

Enabling IPv6 RIPng on VLAN 2

awplus(config)#int vlan2

awplus(config-if)#ipv6 router rip

Verifying that IPv6 has been enabled globally and on the specific interface.

Now to see if RIP is operating on the interface:

Page 44: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Routing Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 44

We can see the static route that was configured on the x900 now appears as a RIP route in the x600’s routing database. awplus#sh ipv6 routeIPv6 Routing TableCodes: C - connected, S - static, R - RIP, O - OSPF, B - BGPTimers: Uptime

C 2002:1111::/64 via ::, vlan2, 05:05:48C 2002:4444::/64 via ::, vlan20, 04:47:50R 2002:5656::/64 [120/2] via fe80::200:cdff:fe2a:e571, vlan2, 00:00:25C fe80::/64 via ::, vlan20, 04:47:50C fe80::/64 via ::, vlan20, 04:48:44C fe80::/64 via ::, vlan2, 05:05:48C fe80::/64 via ::, vlan2, 05:18:01C fe80::/64 via ::, vlan1 inactive, 06:50:30

Check the RIPng database on the x600:

awplus#sh ipv6 rip databaseCodes: R - RIP, Rc - RIP connected, Rs - RIP static,

Ra - RIP aggregated,Rcx - RIP connect suppressed, Rsx - RIP static suppressed,C - Connected, S - Static, O - OSPF, B - BGP

Network Next Hop If Met Tag TimeRc 2002:1111::/64 :: vlan2 1 0R 2002:5656::/64 fe80::200:cdff:fe2a:e571 vlan2 2 0 02:30

Looking at the x900’s route table and RIPng database: awplus#sh ipv6 routeIPv6 Routing TableCodes: C - connected, S - static, R - RIP, O - OSPF, B - BGPTimers: Uptime

C 2002:1111::/64 via ::, vlan2, 05:06:04S 2002:5656::/64 [1/0] via 2003:3333::2, vlan10, 00:07:23C 2003:3333::/64 via ::, vlan10, 05:05:18C fe80::/64 via ::, vlan2, 05:06:04C fe80::/64 via ::, vlan10, 05:06:22C fe80::/64 via ::, vlan2, 05:06:45C fe80::/64 via ::, vlan1 inactive, 06:41:41Codes: R - RIP, Rc - RIP connected, Rs - RIP static, Ra - RIP aggregated,Rcx - RIP connect suppressed, Rsx - RIP static sup-pressed,C - Connected, S - Static, O - OSPF, B - BGP Network Next Hop If Met Tag TimeRc 2002:1111::/64 :: vlan2 1 0S 2002:5656::/64 2003:3333::2 vlan10 1 0

Page 45: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Routing Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 45

Configure the x600 to redistribute connected routes:

awplus#conf t

awplus(config)#router ipv6 rip

awplus(config-router)#redistribute connected

awplus#sh ipv6 routeIPv6 Routing TableCodes: C - connected, S - static, R - RIP, O - OSPF, B - BGPTimers: Uptime

C 2002:1111::/64 via ::, vlan2, 05:13:51C 2002:4444::/64 via ::, vlan20, 04:55:53R 2002:5656::/64 [120/2] via fe80::200:cdff:fe2a:e571, vlan2,00:08:28C fe80::/64 via ::, vlan20, 04:55:53C fe80::/64 via ::, vlan20, 04:56:47C fe80::/64 via ::, vlan2, 05:13:51C fe80::/64 via ::, vlan2, 05:26:04C fe80::/64 via ::, vlan1 inactive, 06:58:33

awplus#sh ipv6 rip databaseCodes: R - RIP, Rc - RIP connected, Rs - RIP static, Ra - RIP aggregated,Rcx - RIP connect suppressed, Rsx - RIP static sup-pressed,C - Connected, S - Static, O - OSPF, B - BGP

Network Next Hop If Met Tag TimeRc 2002:1111::/64 :: vlan2 1 0C 2002:4444::/64 :: vlan20 1 0R 2002:5656::/64 fe80::200:cdff:fe2a:e571 vlan2 2 0 02:58

Looking at the x900's route table and RIP database:

awplus#sh ipv6 routeIPv6 Routing TableCodes: C - connected, S - static, R - RIP, O - OSPF, B - BGPTimers: Uptime

C 2002:1111::/64 via ::, vlan2, 05:09:22R 2002:4444::/64 [120/2] via fe80::eecd:6dff:fe18:224b, vlan2,

00:02:08S 2002:5656::/64 [1/0] via 2003:3333::2, vlan10, 00:10:41C 2003:3333::/64 via ::, vlan10, 05:08:36C fe80::/64 via ::, vlan2, 05:09:22C fe80::/64 via ::, vlan10, 05:09:40C fe80::/64 via ::, vlan2, 05:10:03C fe80::/64 via ::, vlan1 inactive, 06:44:59

Page 46: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Routing Examples

How to Configure IPv6 on AlliedWare Plus Products | Page 46

awplus#sh ipv6 rip database

Codes: R - RIP, Rc - RIP connected, Rs - RIP static, Ra - RIP aggregated,Rcx - RIP connect suppressed, Rsx - RIP static sup-pressed,

C - Connected, S - Static, O - OSPF, B - BGP

Network NextHop If Met Tag TimeRc 2002:1111::/64 :: vlan2 1 0R 2002:4444::/64 fe80::eecd:6dff:fe18:224b vlan2 2 0 02:28S 2002:5656::/64 2003:3333::2 vlan10 1 0

The final configurations of the switches looked like:

x600vlan database vlan 2 name vlan2 vlan 20 name vlan20 vlan 2,20 state enable!interface port1.0.1 switchport switchport mode access switchport access vlan 2!interface port1.0.10 switchport switchport mode access switchport access vlan 20!interface vlan2 ipv6 address 2002:1111::2/64 ipv6 router rip!interface vlan20 ipv6 address 2002:4444::2/64!ipv6 forwarding!router ipv6 rip redistribute connected

Page 47: How to Configure IPv6 on AlliedWare Plus Products DB8 0:0 F 6732 9 5 /4 8 Pref ix 48 b ts LAN subnets are almost always/64 and route aggregation to a site uses larger masks like /48

Routing Examples

North America Headquarters | 19800 North Creek Parkway | Suite 100 | Bothell | WA 98011 | USA | T: +1 800 424 4284 | F: +1 425 481 3895Asia-Pacific Headquarters | 11 Tai Seng Link | Singapore | 534182 | T: +65 6383 3832 | F: +65 6383 3830EMEA & CSA Operations | Antareslaan 18 | 2132 JE Hoofddorp | Netherlands | T: +31 23 5656800 | F: +31 23 5575466

alliedtelesis.com© 2012 Allied Telesis, Inc. All rights reserved. Information in this document is subject to change without notice. All company names, logos, and product designs that are trademarks or registered trademarks are the property of their respective owners.C613-16171-00 REV B

x900Avlan database vlan 2 name vlan2 vlan 10 name vlan10 vlan 2,10 state enable!interface port1.0.1 switchport switchport mode access switchport access vlan 2!interface port1.0.10 switchport switchport mode access switchport access vlan 10!interface vlan2 ipv6 address 2002:1111::1/64 ipv6 router rip!interface vlan10 ipv6 address 2003:3333::1/64!ipv6 forwarding!router ipv6 rip redistribute static!ipv6 route 2002:5656::/64 2003:3333::2

For information on configuring basic OSPFv3 scenarios, go to:

http://www.alliedtelesis.com/userfiles/file/OSPF_How_To.pdf