Sunteți pe pagina 1din 79

1

Chapter 1: IPv6

This chapter describes configuration and commands required for IPv6-related


tasks.
NOTE Vyatta support for IPv6 has “experimental” status. Currently, only IPv6
forwarding and some routing protocols are implemented (for example, OSPFv3 is
is not yet supported). In addition, IPv6 does not work with firewalling and other
advanced features. Because of these limitations, we recommend deploying IPv6
functionality only in noncritical portions of your network topology, where the
advanced security feature set is not required.

Please note also that that IPv6 forwarding is enabled by default. If you want to
disable IPv6 forwarding, use the following command in configuration mode: set
system ipv6 disable-forwarding.

This chapter presents the following topics:


• IPv6 Configuration
• IPv6 Commands
Chapter 1: IPv6 IPv6 Configuration
2

IPv6 Configuration
This section presents the following topics:
• IPv6 Overview
• IPv6 Configuration Examples

IPv6 Overview
This section presents the following topics:
• IPv6 Background
• IPv6 Addressing
• Special Addresses
• IPv6 Autoconfiguration

IPv6 Background
There are two versions of the Internet Protocol in use today. Version 4 (IPv4) is the version
most commonly in use. IPv6 is version 6 of the Internet Protocol. The version currently in
use by most devices is version 4 (IPv4). However, there are issues with IPv4, and the
Internet Engineering Task Force (IETF) has designated IPv6 to succeed IPv4 as the
next-generation protocol for use on the Internet.
IPv6 has a number of advantages over IPv4. The following are four important ones:
• Large address space.
An IPv4 address consists of four bytes (32 bits). IPv6 addresses consist of 16 bytes
(128 bits). The increase from 32 to 128 bits results in a huge number of available
addresses: 79 billion billion billion times the addresses available in the IPv4—this is
about 1038 addresses, or 1030 addresses for each person on the planet.
The expanded address space means that IPv6 does not face the address exhaustion
problems predicted imminently for IPv4. Furthermore, the availability for so many
addresses means that private address spaces are not required, and address shortgage
work-arounds such as Network Address Translation (NAT) can be eliminated. With no
private addresses, there need be no hidden networks or hosts, and all devices can be
globally reachable. A larger address space also means that features such as
multihoming and aggregation are easier to implement.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
3

• Support for mobile devices


A special protocol, Mobile IP, is required to support mobility. Mobile IP is not
automatic in IPv4, and there are several challenges involved in implementing Mobile
IP on an IPv4 network. In contrast, Mobile IP was designed into IPv6 from its
inception, and is a mandatory feature in a standards-compliant IPv6 protocol stack.
• Flexibility
IPv6 Multiple levels of hierarchy in the address space. This allows for hierarchical
allocation of addressing and more efficient route aggregation. It also permits new kinds
of addresses not possible in IPv4, such as link- and site-scoped addressing
• Security
Because devices can be globally reachable, end-to-end security can be employed,
which is not possible on an internetwork with hidden networks and hosts. In addition,
IP security (IPSec), which is an “add-on” feature in IPv4 networks, is mandatory in
IPv6 networks, designed into the IPv6 protocol stack.

IPv6 Addressing
IP addresses generally take the following form:
x:x:x:x:x:x:x:x

where x is a 16-bit hexadecimal number; for example:


1EF7:0000:0000:0000:51DA:27C0:E4C2:0124

Addresses are case-insensitive; for example, the following is equivalent to example given
above:
1EF7:0000:0000:0000:51da:27c0:E4c2:0124

Leading zeros are optional; for example, the following is a valid IPv6 address:
1EF7:0:0:0:51DA:27C0:E4C2:124

IPv6 addresses often contain many bytes with a value of zero. Successive fields of zeros
can be represented by replacing them with a double colon, as in the following:
1EF7::51DA:27C0:E4C2:124

Similarly the following:


1EF7::124

is equivalent to the following:


1EF7:0:0:0:0:0:0:0124

and this:

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
4

0:0:0:0:0:0:0:1

is equivalent to this:
::1

The replacement by the double colon may be made only once within an address, as using
the double colon more than once can result in ambiguity. For example, the following:
1EF7::27C0::E4C2:0124

is ambiguous between these three addresses:


1EF7:0000:27C0:0000:0000:0000:E4C2:0124
1EF7:0000:0000:27C0:0000:0000:E4C2:0124
1EF7:0000:0000:0000:27C0:0000:E4C2:0124

IPv6 addresses that are extensions of IPv4 addresses can be written in a mixed notation,
where the the rightmost four bytes of the IPv6 address are replaced with the four decimal
octets of the IPv4 address. In mixed notation, the four hexademical bytes are separated by
colons and the four decimal octets are separated by dots, as in the following example:
1EF7:0:0:0:192.168.100.51

Special Addresses
Like IPv4, IPv6 has some special addresses, which are used by convention for special
functions. For unicast addresses, these include the following:
• The unspecified address. This address is used as a placeholder ) when no address is
available (for example, in an initial DHCP address), or to stand for “any” address. In
IPv6, the unspecified address can be represented as either of the following:
0:0:0:0:0:0:0:0
::

• The localhost (loopback) interface. The loopback interface is a software interface that
represents the local device itself. In IPv4, the address 127.0.0.1 is used by convention
for the loopback interface. In IPv6, the loopback interface can be represented by either
of the following:
0:0:0:0:0:0:0:1
::1

The IPv6 address architecture is quite rich, and includes types of addressing unavailable in
IPv4, such as unicast and multicast scoped addresses, aggregatable global addresses, and
anycast addresses. Multicast broadcast addresses do not exist in IPv6. For more
information about the IPv6 address architecture, consult RFC 4291, IP Version 6
Addressing Architecture.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
5

IPv6 Autoconfiguration
IPv6 supports two mechanisms for automatically configuring devices with IP addresses:
“stateful” and “stateless.”
In stateful configuration, addressing and service information is distributed by a protocol
(DHCPv6) in the same way that the Dynamic Host Configuration Protocol (DHCP)
distributes information for IPv4. This information is “stateful” in that both the DHCP
server and the DHCP client must maintain the addressing and service information. The
Vyatta system does not currently support DHCPv6, for which a standard is not yet
available.
The Vyatta system supports stateless configuration. In stateless configuration, the IPv6
system constructs its own unicast global address from the device’s network prefix together
with its Ethernet media access control (MAC) address and proposes this address to the
network without requiring approval from a server (such as a DHCP server). The
combination of network prefix and MAC address is assumed to be unique. Stateless
autoconfiguration performed by default by most IPv6 systems, including the Vyatta system.
For more information on IPv6 autoconfiguration, refer to RFC 2462, IPv6 Stateless
Address Autoconfiguration.

IPv6 Configuration Examples


• IPv6 Basics
• Static IPv6 Routing
• Dynamic IPv6 Routing with RIPng
• Dynamic IPv6 Routing with BGP
• Tunneling IPv6 traffic in IPv4

IPv6 Basics
This section provides an overview of how to provide basic IPv6 configuration and
operation. This section presents the following topics:
• Verify IPv6 Support
• Configure an IPv6 Address on an Interface
• Display the IPv6 Routing Table
• Confirm Connectivity
• Display IPv6 Neighbor Discovery (ND) Cache
• Clear ND Cache

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
6

Verify IPv6 Support


A simple step to verify that IPv6 support is available is to ping the loopback interface. To
verify IPv6 support, perform the following step in operational mode.

Example 1-1 Confirm IPv6 support

Step Command

Ping the loopback interface. vyatta@R1:~$ ping6 ::1


PING ::1(::1) 56 data bytes
64 bytes from ::1: icmp_seq=1 ttl=64 time=2.13 ms
64 bytes from ::1: icmp_seq=2 ttl=64 time=0.086 ms
^C
--- ::1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time
1006ms
rtt min/avg/max/mdev = 0.086/1.112/2.138/1.026 ms

Configure an IPv6 Address on an Interface


Figure 1-1 shows a simple network with two IPv6 nodes.

Figure 1-1 IPv6 address on an interface

R1 R2
eth2 eth0
2001:db8:2::1 2001 :db8:2::2

2001:db8:2::/64

IPv6 addresses are configured on Ethernet interfaces in the same way that IPv4 addresses
are.To configure eth2 on R1, perform the following steps in configuration mode.

Example 1-2 Add an IPv6 address to eth2 on R1

Step Command

Add the IPv6 address to the eth2 vyatta@R1# set interfaces ethernet eth2 address
interface. 2001:db8:2::1/64
[edit]

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
7

Example 1-2 Add an IPv6 address to eth2 on R1

Commit the change. vyatta@R1# commit


[edit]

Change to operational mode vyatta@R1# exit


exit
vyatta@R1:~$

Show the status of the interfaces vyatta@R1:~$ show interfaces


on R1. Interface IP Address State Link Description
eth0 - up up
eth1 - up up
eth2 2001:DB8:2::1/64up up
eth3 - up up
lo 127.0.0.1/8 up up
lo ::1/128 up up

To configure eth0 on R2, perform the following steps in configuration mode.

Example 1-3 Add an IPv6 address to eth0 on R2

Step Command

Add the IPv6 address to the eth0 vyatta@R2# set interfaces ethernet eth0 address
interface. 2001:db8:2::2/64
[edit]

Commit the change. vyatta@R2# commit


[edit]

Change to operational mode vyatta@R2# exit


exit
vyatta@R2:~$

Show the status of the interfaces vyatta@R2:~$ show interfaces


on R2. Interface IP Address State Link Description
eth0 2001:DB8:2::2/64up up
eth1 - up up
eth2 - up up
lo 127.0.0.1/8 up up
lo ::1/128 up up

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
8

Display the IPv6 Routing Table


When an IPv6 address is added to an interface a connected network for it appears in the
routing table. To display the routing table, perform the following step in operational mode.

Example 1-4 Display the IPv6 routing table

Step Command

Show the routing table. vyatta@R1:~$ show ipv6 route


Codes: K - kernel route, C - connected, S - static, R -
RIPng, O - OSPFv3,
I - ISIS, B - BGP, * - FIB route.

C>* ::1/128 is directly connected, lo


C>* 2001:db8:2::/64 is directly connected, eth2
C * fe80::/64 is directly connected, eth2
C * fe80::/64 is directly connected, eth1
C>* fe80::/64 is directly connected, eth0
K>* ff00::/8 is directly connected, eth2

Confirm Connectivity
To confirm that R1 and R2 can communicate, use the ping6 command. To confirm
connectivity, perform the following step in operational mode.

Example 1-5 Confirm connectivity between R1 and R2

Step Command

Ping R2 from R1. vyatta@R1:~$ ping6 2001:db8:2::2


PING 2001:db8:2::2(2001:db8:2::2) 56 data bytes
64 bytes from 2001:db8:2::2: icmp_seq=1 ttl=64 time=6.52
ms
64 bytes from 2001:db8:2::2: icmp_seq=2 ttl=64
time=0.333 ms
^C
--- 2001:db8:2::2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time
1013ms
rtt min/avg/max/mdev = 0.333/3.427/6.522/3.095 ms

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
9

Display IPv6 Neighbor Discovery (ND) Cache


To display a list of neighbors in the Neighbor Discovery (ND) cache, use the show ipv6
neighbors command. To display the ND cache, perform the following step in operational
mode.

Example 1-6 Display the ND cache

Step Command

Display the list of known vyatta@R1:~$ show ipv6 neighbors


neighbors. 2001:db8:2::2 dev eth2 lladdr 00:0c:29:4e:fc:b6 router
REACHABLE
fe80::20c:29ff:fe4e:fcb6 dev eth2 lladdr
00:0c:29:4e:fc:b6 DELAY

Clear ND Cache
To clear the Neighbor Discovery (ND) cache, use the clear ipv6 neighbors command. To
clear the ND cache on interface eth2, perform the following step in operational mode.

Example 1-7 Clear the ND cache

Step Command

Clear the list of known neighbors vyatta@R1:~$ clear ipv6 neighbors interface eth2
on eth2.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
10

Static IPv6 Routing


Figure 1-2 shows a more complex network with three nodes. In this example we will show
configuration of the nodes using static routes to enable R2 and R4 to communicate via R1.

Figure 1-2 Static IPv6 routing example

R4
eth0
2001:db8:1::1

2001:db8:1::/64

2001:db8:1::1
eth0

R1 R2
eth2 eth0
2001:db8:2::1 2001 :db8:2::2

2001:db8:2::/64

Verify that IPv6 Forwarding is Enabled


In order for R1 to be able to pass data between interfaces eth0 and eth2 (i.e. between R4
and R2) it must be configured to enable forwarding. To determine if forwarding is enabled,
perform the following step in operational mode.

Example 1-8 Determine if forwarding is enabled on R1

Step Command

Display the state of IPv6 vyatta@R1:~$ show ipv6 forwarding


forwarding on R1. ipv6 forwarding is off

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
11

If forwarding is not enabled, as is the case in Example 1-8, the system must be configured
to enable forwarding. To enable forwarding, perform the following steps in configuration
mode.

Example 1-9 Enable forwarding on R1

Step Command

Enable forwarding on R1. vyatta@R1# delete system ipv6 disable-forwarding


[edit]

Commit the change. vyatta@R1# commit


[edit]

Change to operational mode vyatta@R1# exit


exit
vyatta@R1:~$

Display the state of IPv6 vyatta@R1:~$ show ipv6 forwarding


forwarding on R1. ipv6 forwarding is on

Add the Default IPv6 Route


On R4, all traffic that is not routed elsewhere will be sent to R1. To configure the default
route, perform the following steps in configuration mode.

Example 1-10 Add the default route on R4

Step Command

Add the default route on R4. vyatta@R4# set protocols static route6 ::/0 next-hop
2001:db8:1::1
[edit]

Commit the change. vyatta@R4# commit


[edit]

Change to operational mode. vyatta@R4# exit


exit
vyatta@R4:~$

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
12

Example 1-10 Add the default route on R4

Verify the default route in the vyatta@R4:~$ show ipv6 route


routing table. Codes: K - kernel route, C - connected, S - static, R -
RIPng, O - OSPFv3,
I - ISIS, B - BGP, * - FIB route.

S>* ::/0 [1/0] via 2001:db8:1::1, eth0


C>* ::1/128 is directly connected, lo
C>* 2001:db8:1::/64 is directly connected, eth0
C * fe80::/64 is directly connected, eth1
C>* fe80::/64 is directly connected, eth0
K>* ff00::/8 is directly connected, eth0

Add a Static IPv6 Route


As an alternative to the default route we created on R4, we’ll create a static route on R2. To
configure a static route to the 2001:db8:1::/64 network, perform the following steps in
configuration mode.

Example 1-11 Add a static route on R2

Step Command

Add a static route on R2. vyatta@R2# set protocols static route6 2001:db8:1::/64
next-hop 2001:db8:2::1
[edit]

Commit the change. vyatta@R2# commit


[edit]

Change to operational mode. vyatta@R2# exit


exit
vyatta@R2:~$

Verify the static route in the vyatta@R2:~$ show ipv6 route


routing table. Codes: K - kernel route, C - connected, S - static, R -
RIPng, O - OSPFv3,
I - ISIS, B - BGP, * - FIB route.

C>* ::1/128 is directly connected, lo


S>* 2001:db8:1::/64 [1/0] via 2001:db8:2::1, eth0
C>* 2001:db8:2::/64 is directly connected, eth0
C * fe80::/64 is directly connected, eth1
C>* fe80::/64 is directly connected, eth0
K>* ff00::/8 is directly connected, eth0

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
13

Confirm Connectivity
To confirm that R2 and R4 can communicate, use the ping6 command. To confirm
connectivity between R2 and R4, perform the following step in operational mode.

Example 1-12 Confirm connectivity between R2 and R4

Step Command

Ping R4 from R2. vyatta@R2:~$ ping6 2001:db8:1::4


PING 2001:db8:1::4(2001:db8:1::4) 56 data bytes
64 bytes from 2001:db8:1::4: icmp_seq=1 ttl=63 time=5.65
ms
64 bytes from 2001:db8:1::4: icmp_seq=2 ttl=63
time=0.382 ms
^C
--- 2001:db8:1::4 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time
1011ms
rtt min/avg/max/mdev = 0.382/3.016/5.650/2.634 ms

As an alternative, use traceroute6 to verify that the goes from R2 to R1 to R4. To confirm
connectivity between R2 and R4 through R1 using traceroute6, perform the following step
in operational mode.

Example 1-13 Confirm connectivity between R2 and R4 via R1

Step Command

Trace the route from R2 to R4. vyatta@R2:~$ traceroute6 2001:db8:1::4


traceroute to 2001:db8:1::4 (2001:db8:1::4), 30 hops
max, 40 byte packets
1 (2001:db8:2::1) 4.448 ms 4.148 ms 4.092 ms
2 (2001:db8:1::4) 4.297 ms 4.306 ms 4.308 ms

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
14

Dynamic IPv6 Routing with RIPng


Figure 1-3 shows a network with four nodes. In this example we will show configuration
of the nodes using dynamic IPv6 routing with RIPng to enable R3 and R4 to communicate
via R1 and R2.

Figure 1-3 Dynamic IPv6 routing example - RIPng

R4 R3
eth0 eth1
2001:db8:1::1 2001 :db8:3::3

2001:db8:1::/64 2001:db8:3::/64

2001:db8:1::1 2001 :db8:3::2


eth0 eth1

R1 R2
eth2 eth0
2001:db8:2::1 2001 :db8:2::2

2001:db8:2::/64

Enable Forwarding on R1 and R2


For R1 to be able to pass data between interfaces eth0 and eth2, and for R2 to be able to
pass data between interfaces eth0 and eth1, they must be configured to enable forwarding.
To enable forwarding on R1, perform the following step in configuration mode..

Example 1-14 Enable forwarding on R1

Step Command

Enable forwarding on R1. vyatta@R1# delete system ipv6 disable-forwarding


[edit]

Commit the change. vyatta@R1# commit


[edit]

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
15

To enable forwarding on R2, perform the following steps in configuration mode..

Example 1-15 Enable forwarding on R2

Step Command

Enable forwarding on R2. vyatta@R2# delete system ipv6 disable-forwarding


[edit]

Commit the change. vyatta@R2# commit


[edit]

Enable RIPng on an Interface


In order to enable dynamic routing using RIPng, it must be enabled on the interfaces that
are to use it. To enable RIPng on R1, perform the following steps in configuration mode.

Example 1-16 Enable RIPng on R1

Step Command

Enable RIPng on eth0. vyatta@R1# set protocols ripng interface eth0


[edit]

Enable RIPng on eth2. vyatta@R1# set protocols ripng interface eth2


[edit]

Commit the change. vyatta@R1# commit


[edit]

Change to operational mode. vyatta@R1# exit


exit
vyatta@R1:~$

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
16

Example 1-16 Enable RIPng on R1

Verify the status of RIPng. vyatta@R1:~$ show ipv6 ripng status


Routing Protocol is "RIPng"
Sending updates every 30 seconds with +/-50%, next due
in 4 seconds
Timeout after 180 seconds, garbage collect after 120
seconds
Outgoing update filter list for all interface is not
set
Incoming update filter list for all interface is not
set
Default redistribution metric is 1
Redistributing:
Default version control: send version 1, receive
version 1
Interface Send Recv
eth0 1 1
eth2 1 1
Routing for Networks:
eth0
eth2
Routing Information Sources:
Gateway BadPackets BadRoutes Distance Last
Update
fe80::20c:29ff:fed7:c4a4
0 0 120 00:00:25

Advertise Connected Networks


The redistribute command is then used to advertise the connected networks. To advertise
connected networks on R1, perform the following steps in configuration mode.

Example 1-17 Advertise connected networks on R1

Step Command

Enable the rip protocol. vyatta@R1# set protocols rip


[edit]

Advertise connected networks vyatta@R1# set protocols ripng redistribute connected


via ripng. [edit]

Commit the change. vyatta@R1# commit


[edit]

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
17

Confirm Visibility of Remote Networks


After enabling RIPng on the other interfaces of R2, R3, and R4, and advertising connected
networks on R2, we can check the routing table of R4 to verify that it has learned the
network. To confirm visibility of remote networks on R4, perform the following step in
operational mode.

Example 1-18 Confirm visibility of remote networks on R4

Step Command

Trace the route from R2 to R4. vyatta@R4:~$ show ipv6 route


Codes: K - kernel route, C - connected, S - static, R -
RIPng, O - OSPFv3,
I - ISIS, B - BGP, * - FIB route.

S>* ::/0 [1/0] via 2001:db8:1::1, eth0


C>* ::1/128 is directly connected, lo
C>* 2001:db8:1::/64 is directly connected, eth0
R>* 2001:db8:2::/64 [120/2] via
fe80::20c:29ff:fed6:816c, eth0, 00:43:00
R>* 2001:db8:3::/64 [120/3] via
fe80::20c:29ff:fed6:816c, eth0, 00:00:03
C>* fe80::/64 is directly connected, eth0

The "R" in the first column indicates that two routes have been learned from RIPng. Since
there is now a route for 2001:db8:3::/64 we should be able to ping R3. To confirm
connectivity, perform the following steps in operational mode.

Example 1-19 Confirm connectivity between R4 and R3

Step Command

Ping R3 from R4. vyatta@R4:~$ ping6 2001:db8:3::3


PING 2001:db8:3::3(2001:db8:3::3) 56 data bytes
64 bytes from 2001:db8:3::3: icmp_seq=1 ttl=62 time=5.98
ms
64 bytes from 2001:db8:3::3: icmp_seq=2 ttl=62
time=0.603 ms
^C
--- 2001:db8:3::3 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time
1011ms
rtt min/avg/max/mdev = 0.603/3.294/5.986/2.692 ms

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
18

Example 1-19 Confirm connectivity between R4 and R3

Display the RIPng status. vyatta@R4:~$ show ipv6 ripng


Codes: R - RIPng, C - connected, S - Static, O - OSPF, B
- BGP
Sub-codes:
(n) - normal, (s) - static, (d) - default, (r) -
redistribute,
(i) - interface, (a/S) - aggregated/Suppressed

Network Next Hop Via Metric


Tag Time
C(i) 2001:db8:1::/64
:: self 1 0
R(n) 2001:db8:2::/64
fe80::20c:29ff:fed6:816c eth0 2
0 02:56
R(n) 2001:db8:3::/64
fe80::20c:29ff:fed6:816c eth0 3
0 02:56

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
19

Dynamic IPv6 Routing with BGP


Figure 1-4 shows a network with four nodes. In this example we will show configuration
of the nodes using dynamic IPv6 routing with BGP to enable R3 and R4 to communicate
via R1 and R2.

Figure 1-4 Dynamic IPv6 routing example - BGP

R4 R3
eth0 eth1
2001:db8:1::1 2001:db8:3::3

2001:db8:1::/64 2001:db8:3::/64

2001:db8:1::1 2001:db8:3::2
eth0 eth1

AS=1 R1 R2 AS=2
eth2 eth0
2001:db8:2::1 2001:db8:2::2

2001:db8:2::/64

Enable Forwarding on R1 and R2


For R1 to be able to pass data between interfaces eth0 and eth2, and for R2 to be able to
pass data between interfaces eth0 and eth1, they must be configured to enable forwarding.
To enable forwarding on R1, perform the following steps in configuration mode..

Example 1-20 Enable forwarding on R1

Step Command

Enable forwarding on R1. vyatta@R1# delete system ipv6 disable-forwarding


[edit]

Commit the change. vyatta@R1# commit


[edit]

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
20

To enable forwarding on R2, perform the following steps in configuration mode..

Example 1-21 Enable forwarding on R2

Step Command

Enable forwarding on R2. vyatta@R2# delete system ipv6 disable-forwarding


[edit]

Commit the change. vyatta@R2# commit


[edit]

Configure IPv6 BGP Peer


R1 and R2 must be configured to determine how to access remote Autonomous Systems
(AS). To configure R1 to see AS=2, perform the following steps in configuration mode..

Example 1-22 Configure R1 to see AS=2

Step Command

Configure a BGP peer on R1. vyatta@R1# set protocols bgp 1 neighbor 2001:db8:2::2
remote-as 2
[edit]

Commit the change. vyatta@R1# commit


[edit]

Similarly, To configure R2 to see AS=1, perform the following steps in configuration


mode..

Example 1-23 Configure R2 to see AS=1

Step Command

Configure a BGP peer on R2. vyatta@R2# set protocols bgp 2 neighbor 2001:db8:2::1
remote-as 1
[edit]

Commit the change. vyatta@R2# commit


[edit]

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
21

To confirm that the peer session is "Established", perform the following step in operational
mode.

Example 1-24 Confirm peer session is established

Step Command

Display the status of the BGP vyatta@R1:~$ show ip bgp neighbors 2001:db8:2::2
neighbor. BGP neighbor is 2001:db8:2::2, remote AS 2, local AS 1,
external link
BGP version 4, remote router ID 172.16.139.160
BGP state = Established, up for 00:01:24
Last read 00:00:24, hold time is 180, keepalive
interval is 60 seconds
Neighbor capabilities:
4 Byte AS: advertised and received
Route refresh: advertised and received(old & new)
Address family IPv6 Unicast: advertised and received
Message statistics:
Inq depth is 0
Outq depth is 0
Sent Rcvd
Opens: 2 0
Notifications: 0 0
Updates: 0 0
Keepalives: 3 2
Route Refresh: 0 0
Capability: 0 0
Total: 5 2
Minimum time between advertisement runs is 30 seconds

For address family: IPv6 Unicast


Community attribute sent to this neighbor(both)
0 accepted prefixes

Connections established 1; dropped 0


Last reset never
Local host: 2001:db8:2::1, Local port: 179
Foreign host: 2001:db8:2::2, Foreign port: 55711
Nexthop: 172.16.117.128
Nexthop global: 2001:db8:2::1
Nexthop local: fe80::20c:29ff:fed6:8180
BGP connection: shared network
Read thread: on Write thread: off

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
22

Advertise Connected Networks


The redistribute command is then used to advertise the connected networks. To advertise
connected networks on R1, perform the following steps in configuration mode.

Example 1-25 Advertise connected networks on R1

Step Command

Advertise connected networks vyatta@R1# set protocols bgp 1 ipv6 redistribute


via bgp. connected
[edit]

Commit the change. vyatta@R1# commit


[edit]

Confirm Advertised Routes


To see which routes are being advertised by R1 and which routes have been learned from
peers, perform the following steps in operational mode.

Example 1-26 Confirm routes advertised and learned by R1

Step Command

Display routes advertised by R1. vyatta@R1:~$ show ipv6 bgp neighbors 2001:db8:2::2
advertised-routes
BGP table version is 0, local router ID is 172.16.117.128
Status codes: s suppressed, d damped, h history, * valid,
> best, i - internal,
r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
*> 2001:db8:1::/64 2001:db8:2::1 1 32768
?
*> 2001:db8:2::/64 2001:db8:2::1 1 32768
?

Total number of prefixes 2

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
23

Example 1-26 Confirm routes advertised and learned by R1

Display routes learned by R1. vyatta@R1:~$ show ipv6 bgp neighbors 2001:db8:2::2
routes
BGP table version is 0, local router ID is 172.16.117.128
Status codes: s suppressed, d damped, h history, * valid,
> best, i - internal,
r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
* 2001:db8:2::/64 2001:db8:2::2 1 0
2 ?
*> 2001:db8:3::/64 2001:db8:2::2 1 0
2 ?

Total number of prefixes 2

Display the routing table. vyatta@R1:~$ show ipv6 route


Codes: K - kernel route, C - connected, S - static, R -
RIPng, O - OSPFv3,
I - ISIS, B - BGP, * - FIB route.

C>* ::1/128 is directly connected, lo


C>* 2001:db8:1::/64 is directly connected, eth0
C>* 2001:db8:2::/64 is directly connected, eth2
B>* 2001:db8:3::/64 [20/1] via fe80::20c:29ff:fe4e:fcb6,
eth2, 00:22:47
C * fe80::/64 is directly connected, eth2
C>* fe80::/64 is directly connected, eth0

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
24

Tunneling IPv6 traffic in IPv4


Figure 1-5 shows a network with four nodes. R1 and R2 each have an interface configured
as IPv6 and an interface configured as IPv4. In this example we will show configuration of
the nodes using tunneling over IPv4 to enable R3 and R4 to communicate via R1 and R2.

Figure 1-5 Tunneling IPv6 traffic in IPv4 example

R4 R3
eth0 eth1
2001 :db8:1::1 2001 :db8:3::3

2001:db8:1::/64 2001:db8:3::/64

2001 :db8:1::1 2001 :db8:3::2


eth0 eth1

R1 R2
eth2 eth0
15.0.0.1 15.0.0.2
tun0 tun0
2001:db8:2::1 2001:db8:2::2
15.0.0.0/24

Tunnel
We assume that all interfaces have been configured with IP addresses as shown in the
example. We will also assume that R1 and R2 have forwarding enabled.

Create SIT tunnel


R1 and R2 must be configured to create a tunnel between them in order to encapsulate the
IPv6 traffic. To configure R1 to create a tunnel using SIT (Simple Internet Transition)
encapsulation between 15.0.0.1 and 15.0.0.2, perform the following steps in configuration
mode..

Example 1-27 Configure tunnel interface on R1

Step Command

Create a tunnel with SIT vyatta@R1# set interfaces tunnel tun0 encapsulation sit
encapsulation. [edit]

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
25

Example 1-27 Configure tunnel interface on R1

Specify the local IP address. vyatta@R1# set interfaces tunnel tun0 local-ip 15.0.0.1
[edit]

Specify the remote IP address. vyatta@R1# set interfaces tunnel tun0 remote-ip 15.0.0.2
[edit]

Configure the IPv6 address on vyatta@R1# set interfaces tunnel tun0 address
the interface. 2001:db8:2::1/64
[edit]

Commit the change. vyatta@R1# commit


[edit]

To configure R2 to create a tunnel using SIT (Simple Internet Transition) encapsulation


between 15.0.0.2 and 15.0.0.1, perform the following steps in configuration mode..

Example 1-28 Configure tunnel interface on R2

Step Command

Create a tunnel with SIT vyatta@R2# set interfaces tunnel tun0 encapsulation sit
encapsulation. [edit]

Specify the local IP address. vyatta@R2# set interfaces tunnel tun0 local-ip 15.0.0.2
[edit]

Specify the remote IP address. vyatta@R2# set interfaces tunnel tun0 remote-ip 15.0.0.1
[edit]

Configure the IPv6 address on vyatta@R2# set interfaces tunnel tun0 address
the interface. 2001:db8:2::2/64
[edit]

Commit the change. vyatta@R2# commit


[edit]

At this point there is connectivity between R1 and R2 across the tunnel interface. The
following shows a capture of a ping from 2001:db8:2::1 to 2001:db8:2::2. Notice that the
IPv6 ping packet in encapsulated by the IPv4 header:

Example 1-29 Capture of ping

Frame 22 (138 bytes on wire, 138 bytes captured)


Ethernet II, Src: Vmware_d6:81:80 (00:0c:29:d6:81:80), Dst: Vmware_4e:fc:b6
(00:0c:29:4e:fc:b6)

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Configuration
26

Destination: Vmware_4e:fc:b6 (00:0c:29:4e:fc:b6)


Source: Vmware_d6:81:80 (00:0c:29:d6:81:80)
Type: IP (0x0800)
Internet Protocol, Src: 15.0.0.1 (15.0.0.1), Dst: 15.0.0.2 (15.0.0.2)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
Total Length: 124
Identification: 0x0000 (0)
Flags: 0x04 (Don't Fragment)
Fragment offset: 0
Time to live: 255
Protocol: IPv6 (0x29)
Header checksum: 0x5d56 [correct]
Source: 15.0.0.1 (15.0.0.1)
Destination: 15.0.0.2 (15.0.0.2)
Internet Protocol Version 6
0110 .... = Version: 6
.... 0000 0000 .... .... .... .... .... = Traffic class: 0x00000000
.... .... .... 0000 0000 0000 0000 0000 = Flowlabel: 0x00000000
Payload length: 64
Next header: ICMPv6 (0x3a)
Hop limit: 64
Source: 2001:db8:2::1 (2001:db8:2::1)
Destination: 2001:db8:2::2 (2001:db8:2::2)
Internet Control Message Protocol v6
Type: 129 (Echo reply)
Code: 0
Checksum: 0x2fca [correct]
ID: 0xe825
Sequence: 0x001b
Data (56 bytes)

0000 9b a8 25 49 58 0c 07 00 08 09 0a 0b 0c 0d 0e 0f ..%IX...........
0010 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f ................
0020 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f !"#$%&'()*+,-./
0030 30 31 32 33 34 35 36 37 01234567

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
27

IPv6 Commands
This chapter contains the following commands.

Configuration Commands

BGP

protocols bgp <asn> ipv6 aggregate-address <ipv6net> Specifies a block of IPv6 addresses to aggregate.

protocols bgp <asn> ipv6 network <ipv6net> Specifies an IPv6 network to be advertised by the BGP
routing process.

protocols bgp <asn> ipv6 redistribute connected Redistributes directly connected routes into BGP.

protocols bgp <asn> ipv6 redistribute kernel Redistributes kernel routes into BGP.

protocols bgp <asn> ipv6 redistribute ospfv3 Redistributes routes learned from OSPFv3 into BGP.

protocols bgp <asn> ipv6 redistribute ripng Redistributes routes learned from RIPng into BGP.

protocols bgp <asn> ipv6 redistribute static Redistributes static routes into BGP.

RIPng

protocols ripng aggregate-address <ipv6net> Specifies an aggregate RIPng route announcement.

protocols ripng network <ipv6net> Specifies a network for the RIPng.

protocols ripng route <ipv6net> Specifies a RIPng static route.

Static Routes

protocols static interface-route6 <subnet> Allows you to configure the next hop interface for an
next-hop-interface <ethx> interface-based IPv6 static route.

protocols static route6 <subnet> blackhole Allows you to configure a blackhole IPv6 static route.

protocols static route6 <subnet> next-hop <address> Allows you to configure the next hop for an IPv6 static
route.

Operational Commands

BGP

show ipv6 bgp Displays BGP routes.

show ipv6 bgp community <community> Displays BGP routes belonging to the specified BGP
community.

show ipv6 bgp community-list <list-name> Displays BGP routes permitted by the specified
community list.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
28

show ipv6 bgp filter-list <list-num> Displays routes matching a list of autonomous system
paths.

show ipv6 bgp neighbors Displays BGP neighbor information.

show ipv6 bgp neighbors <ipv6> advertised-routes Displays advertised routes for a BGP neighbor.

show ipv6 bgp neighbors <ipv6> received-routes Displays routes received from a BGP neighbor.

show ipv6 bgp neighbors <ipv6> routes Displays all received and accepted routes from a BGP
neighbor.

show ipv6 bgp prefix-list <list-name> Displays BGP routes matching a prefix list.

show ipv6 bgp regexp <regexp> Displays routes matching an AS path regular expression.

System Management

clear ipv6 neighbors address <ipv6> Clears a specific IPv6 address from the IPv6 ND cache.

clear ipv6 neighbors interface <ethx> Clears the system’s IPv6 ND cache for a specific
interface.

show ipv6 neighbors Displays the system’s IPv6 ND cache.

Forwarding and Routing

clear ipv6 prefix-list Clears prefix list statistics or status.

clear ipv6 route cache Flushes the kernel IPv6 route cache.

show ipv6 route Displays IPv6 routes stored in the RIB and FIB.

show ipv6 route <ipv6net> longer-prefixes Displays IPv6 prefixes longer than a specified prefix.

show ipv6 route bgp Displays IPv6 BGP routes.

show ipv6 route cache Displays the kernel IPv6 route cache.

show ipv6 route connected Displays IPv6 connected routes.

show ipv6 route forward Displays IPv6 routes stored in the FIB.

show ipv6 route kernel Displays IPv6 kernel routes.

show ipv6 route ripng Displays IPv6 RIPng routes.

show ipv6 route static Displays IPv6 static routes.

Diagnostics

ping6 <host> Sends ICMP ECHO_REQUEST packets to IPv6 network


hosts.

traceroute6 <host> Displays the route packets take to an IPv6 network host.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
29

RIPng

show ipv6 ripng Displays information for the Routing Information


Protocol next generation (RIPng).

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
30

clear ipv6 neighbors address <ipv6>


Clears a specific IPv6 address from the IPv6 ND cache.

Syntax

clear ipv6 neighbors address ipv6

Command Mode

Operational mode.

Parameters

ipv6 Clears the ND (Neighbor Discovery) cache of the specified IPv6


address.

Default

None.

Usage Guidelines

Use this command to remove entries associated with a specific IPv6 address from the
Neighbor Discovery cache.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
31

clear ipv6 neighbors interface <ethx>


Clears the system’s IPv6 ND cache for a specific interface.

Syntax

clear ipv6 neighbors interface eth0..eth23

Command Mode

Operational mode.

Parameters

eth0..eth23 Clears the entire IPv6 ND (Neighbor Discovery) cache for the specified
Ethernet interface. The range of values is eth0 to eth23.

Default

None.

Usage Guidelines

Use this command to remove entries associated with an Ethernet interface from the IPv6
Neighbor Discovery cache.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
32

clear ipv6 prefix-list


Clears prefix list statistics or status.

Syntax

clear ipv6 prefix-list [list-name [ipv6net]]

Command Mode

Operational mode.

Parameters

list-name Optional. Clears statistics for the specified prefix list.

ipv6net Optional. Clears statistics for the specified network.

Default

Statistics for all prefix-lists are cleared.

Usage Guidelines

Use this command to clear prefix list statistics or status.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
33

clear ipv6 route cache


Flushes the kernel IPv6 route cache.

Syntax

clear ipv6 route cache [ipv6net]

Command Mode

Operational mode.

Parameters

ipv6net Optional. Flushes the specified route from the kernel IPv6 route cache.

Default

Flushes the entire IPv6 route cache.

Usage Guidelines

Use this command to flush the kernel IPv6 route cache or a flush a specific route from the
cache.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
34

ping6 <host>
Sends ICMP ECHO_REQUEST packets to IPv6 network hosts.

Syntax

ping6 host

Command Mode

Operational mode

Parameters

host The host being pinged. Can be specified either as name (if DNS is
being used on the network) or as an IPv6 address.

Usage Guidelines

The ping6 command is used to test whether an IPv6 network host is reachable or not.
The ping6 command uses the ICMP protocol’s mandatory ECHO_REQUEST datagram
to elicit an ICMP ECHO_RESPONSE from a host or gateway. ECHO_REQUEST
datagrams (pings) have an IP and ICMP header, followed by a “struct timeval” and
then an arbitrary number of pad bytes used to fill out the packet.
To interrupt the ping6 command, press <Ctrl>+c.
When using ping6 for fault isolation, it should first be run on the local host, to verify that
the local network interface is up and running. Then, hosts and gateways further and further
away should be “pinged”. Round-trip times and packet loss statistics are computed.
If duplicate packets are received, they are not included in the packet loss calculation,
although the round-trip time of these packets is used in calculating the
minimum/average/maximum round-trip time numbers. When the specified number of
packets have been sent (and received) or if the program is terminated, a brief summary is
displayed.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
35

protocols bgp <asn> ipv6 aggregate-address <ipv6net>


Specifies a block of IPv6 addresses to aggregate.

Syntax

set protocols bgp asn ipv6 aggregate-address ipv6net [summary-only]


delete protocols bgp asn ipv6 aggregate-address ipv6net
show protocols bgp asn ipv6 aggregate-address [ipv6net]

Command Mode

Configuration mode.

Configuration Statement

protocols {
bgp asn {
ipv6 {
aggregate-address ipv6net {
summary-only
}
}
}
}

Parameters

asn Mandatory. The number of the AS in which this router resides.

ipv6net Mandatory. The IPv6 network from which routes are to be aggregated.
The format is ipv6-address/prefix.

summary-only Specifies that aggregated routes are summarized. These routes will not
be announced.

Usage Guidelines

Use the set form of this command to specify a contiguous block of IPv6 addresses to
aggregate.
Use the delete form of this command to delete an aggregate address.
Use the show form of this command to view aggregate address configuration settings.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
36

protocols bgp <asn> ipv6 network <ipv6net>


Specifies an IPv6 network to be advertised by the BGP routing process.

Syntax

set protocols bgp asn ipv6 network ipv6net


delete protocols bgp asn ipv6 network ipv6net
show protocols bgp asn ipv6 network

Command Mode

Configuration mode.

Configuration Statement

protocols {
bgp asn {
ipv6 {
network ipv6net
}
}
}

Parameters

asn Mandatory. The number for the AS in which this router resides.
The range of values is 1 to 65535. The subrange 64512 to 65535
is reserved for private autonomous systems.

ipv6net Mandatory. Multi-node. An IPv6 network in the format


ipv6-address/prefix.
You can advertise to multiple networks by creating multiple
network configuration nodes.

Default

None.

Usage Guidelines

Use this command to advertise IPv6 networks to BGP neighbors.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
37

Use the set form of this command to specify an IPv6 network to be announced via BGP.
Use the delete form of this command to remove an IPv6 network from the list of networks
to be announced by BGP.
Use the show form of this command to view BGP network advertising configuration
settings.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
38

protocols bgp <asn> ipv6 redistribute connected


Redistributes directly connected routes into BGP.

Syntax

set protocols bgp asn ipv6 redistribute connected [metric metric | route-map
map-name]
delete protocols bgp asn ipv6 redistribute connected [metric | route-map]
show protocols bgp asn ipv6 redistribute

Command Mode

Configuration mode.

Configuration Statement

protocols {
bgp asn {
ipv6 {
redistribute {
connected {
metric: u32
route-map: text
}
}
}
}
}

Parameters

asn Mandatory. The number for the AS in which this router resides. The
range of values is 1 to 65535. The subrange 64512 to 65535 is reserved
for private autonomous systems.

metric Optional. The metric to be applied to redistributed connected routes.

map-name Optional. The name of a configured route map to be used for


redistributing connected routes.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
39

Default

When this command has not been set, directly connected routes are not distributed into
BGP.

Usage Guidelines

Use this command to redistribute directly connected routes into BGP.


Use the set form of this command to direct the router to redistribute directly connected
routes into BGP.
Use the delete form of this command to prevent redistribution of directly connected routes
into BGP.
Use the show form of this command to view route redistribution configuration settings.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
40

protocols bgp <asn> ipv6 redistribute kernel


Redistributes kernel routes into BGP.

Syntax

set protocols bgp asn ipv6 redistribute kernel [metric metric | route-map map-name]
delete protocols bgp asn ipv6 redistribute kernel [metric | route-map]
show protocols bgp asn ipv6 redistribute

Command Mode

Configuration mode.

Configuration Statement

protocols {
bgp asn {
ipv6 {
redistribute {
kernel {
metric: u32
route-map: text
}
}
}
}
}

Parameters

asn Mandatory. The number for the AS in which this router resides. The
range of values is 1 to 65535. The subrange 64512 to 65535 is reserved
for private autonomous systems.

metric Optional. The metric to be applied to redistributed kernel routes.

map-name Optional. The name of a configured route map to be used for


redistributing kernel routes.

Default

When this command has not been set, kernel routes are not distributed into BGP.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
41

Usage Guidelines

Use this command to redistribute kernel routes into BGP.


Use the set form of this command to direct the router to redistribute kernel routes into BGP.
Use the delete form of this command to prevent redistribution of kernel routes into BGP.
Use the show form of this command to view route redistribution configuration settings.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
42

protocols bgp <asn> ipv6 redistribute ospfv3


Redistributes routes learned from OSPFv3 into BGP.

Syntax

set protocols bgp asn ipv6 redistribute ospfv3 [metric metric | route-map map-name]
delete protocols bgp asn ipv6 redistribute ospfv3 [metric | route-map]
show protocols bgp asn ipv6 redistribute

Command Mode

Configuration mode.

Configuration Statement

protocols {
bgp asn {
ipv6 {
redistribute {
ospfv3 {
metric: u32
route-map: text
}
}
}
}
}

Parameters

asn Mandatory. The number for the AS in which this router resides. The
range of values is 1 to 65535. The subrange 64512 to 65535 is reserved
for private autonomous systems.

metric Optional. The metric to be applied to redistributed OSPFv3 routes.

map-name Optional. The name of a configured route map to be used for


redistributing OSPFv3 routes.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
43

Default

When this command has not been set, routes learned from OSPFv3 are not distributed into
BGP.

Usage Guidelines

Use this command to redistribute Open Shortest Path First version 3 (OSPFv3) routes into
BGP.
Use the set form of this command to direct the router to redistribute routes learned from
OSPFv3 into BGP.
Use the delete form of this command to prevent redistribution of routes learned from
OSPFv3 into BGP.
Use the show form of this command to view route redistribution configuration settings.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
44

protocols bgp <asn> ipv6 redistribute ripng


Redistributes routes learned from RIPng into BGP.

Syntax

set protocols bgp asn ipv6 redistribute ripng [metric metric | route-map map-name]
delete protocols bgp asn ipv6 redistribute ripng [metric | route-map]
show protocols bgp asn ipv6 redistribute

Command Mode

Configuration mode.

Configuration Statement

protocols {
bgp asn {
ipv6 {
redistribute {
ripng {
metric: u32
route-map: text
}
}
}
}
}

Parameters

asn Mandatory. The number for the AS in which this router resides. The
range of values is 1 to 65535. The subrange 64512 to 65535 is reserved
for private autonomous systems.

metric Optional. The metric to be applied to redistributed RIPng routes.

map-name Optional. The name of a configured route map to be used for


redistributing RIPng routes.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
45

Default

When this command has not been set, routes learned from RIPng are not distributed into
BGP.

Usage Guidelines

Use this command to redistribute Routing Information Protocol next generation (RIPng)
routes into BGP.
Use the set form of this command to direct the router to redistribute routes learned from
RIPng into BGP.
Use the delete form of this command to prevent redistribution of routes learned from RIPng
into BGP.
Use the show form of this command to view route redistribution configuration settings.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
46

protocols bgp <asn> ipv6 redistribute static


Redistributes static routes into BGP.

Syntax

set protocols bgp asn redistribute ipv6 static [metric metric | route-map map-name]
delete protocols bgp asn redistribute ipv6 static [metric | route-map]
show protocols bgp asn redistribute

Command Mode

Configuration mode.

Configuration Statement

protocols {
bgp asn {
ipv6 {
redistribute {
static {
metric: u32
route-map: text
}
}
}
}
}

Parameters

asn Mandatory. The number for the AS in which this router resides. The
range of values is 1 to 65535. The subrange 64512 to 65535 is reserved
for private autonomous systems.

metric Optional. The metric to be applied to redistributed static routes.

map-name Optional. The name of a configured route map to be used for


redistributing static routes.

Default

When this command has not been set static routes are not distributed into BGP.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
47

Usage Guidelines

Use this command to redistribute static routes into BGP.


Use the set form of this command to direct the router to redistribute static routes into BGP.
Use the delete form of this command to prevent redistribution of static routes into BGP.
Use the show form of this command to view route redistribution configuration settings.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
48

protocols ripng aggregate-address <ipv6net>


Specifies an aggregate RIPng route announcement.

Syntax

set protocols ripng aggregate-address ipv6net


delete protocols ripng aggregate-address ipv6net
show protocols ripng aggregate-address [ipv6net]

Command Mode

Configuration mode.

Configuration Statement

protocols {
ripng {
aggregate-address ipv6net
}
}

Parameters

ipv6net Mandatory. The IPv6 network from which routes are to be aggregated.
The format is ipv6-address/prefix.

Usage Guidelines

Use this command for IPv6 address aggregation.


Use the set form of this command to specify a contiguous block of IPv6 addresses to
aggregate.
Use the delete form of this command to delete an aggregate address.
Use the show form of this command to view aggregate address configuration settings.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
49

protocols ripng network <ipv6net>


Specifies a network for the RIPng.

Syntax

set protocols ripng network ipv6net


delete protocols ripng network ipv6net
show protocols ripng network

Command Mode

Configuration mode.

Configuration Statement

protocols {
ripng {
network: ipv6net
}
}

Parameters

ipv6net Mandatory. Multi-node. The IPv6 network address of the RIPng


network.
You can identify more than one RIPng network by creating multiple
protocols ripng network configuration nodes.

Default

None.

Usage Guidelines

Use this command to identify Routing Information Protocol next generation (RIPng)
networks.
Use the set form of this command to specify a RIPng network.
Use the delete form of this command to remove a RIPng network.
Use the show form of this command to display RIPng network configuration.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
50

protocols ripng route <ipv6net>


Specifies a RIPng static route.

Syntax

set protocols ripng route ipv6net


delete protocols ripng route ipv6net
show protocols ripng route

Command Mode

Configuration mode.

Configuration Statement

protocols {
ripng {
route ipv6net
}
}

Parameters

ipv6net Mandatory. The IPv6 network address defining the RIPng static route.

Default

None.

Usage Guidelines

Use this command for setting static routes in Routing Information Protocol next generation
(RIPng).
Use the set form of this command to define a RIPng static route.
Use the delete form of this command to remove a RIPng static route.
Use the show form of this command to display RIPng static route configuration.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
51

protocols static interface-route6 <subnet>


next-hop-interface <ethx>
Allows you to configure the next hop interface for an interface-based IPv6 static route.

Syntax

set protocols static interface-route6 subnet next-hop-interface ethx [distance distance]


delete protocols static interface-route6 subnet next-hop-interface ethx [distance]
show protocols static interface-route6 subnet next-hop-interface ethx [distance]

Command Mode

Configuration mode.

Configuration Statement

protocols {
static {
interface-route6 ipv6net {
next-hop-interface eth0..eth23 {
distance 1-255
}
}
}
}

Parameters

subnet Mandatory. Multi-node. Defines an interface-based static route.


The format is a destination subnet of the form
IPv6-address/prefix.
You can define multiple interface-based routes by creating
multiple interface-route6 configuration nodes.

ethx Mandatory. The next hop Ethernet interface.

distance Optional. Defines the next-hop distance for this route. Routes
with a smaller distance are selected before those with a larger
distance.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
52

Default

None.

Usage Guidelines

Use this command to configure interface-based IPv6 static routes on the router.
Use the set form of this command to specify the next hop interface for the route.
Use the delete form of this command to remove the next hop interface.
Use the show form of this command to view the next hop interface for the route.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
53

protocols static route6 <subnet> blackhole


Allows you to configure a blackhole IPv6 static route.

Syntax

set protocols static route6 subnet blackhole [distance distance]


delete protocols static route6 subnet blackhole [distance]
show protocols static route6 subnet blackhole [distance]

Command Mode

Configuration mode.

Configuration Statement

protocols {
static {
route6 ipv6net {
blackhole {
distance 1-255
}
}
}
}

Parameters

subnet Mandatory. Multi-node. Defines an IPv6 static route. The


format is a destination subnet of the form IPv6-address/prefix.
You can define multiple static routes by creating multiple route
configuration nodes.

distance Optional. Defines the blackhole distance for this route. Routes
with a smaller distance will be selected before those with a
larger distance.

Default

None.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
54

Usage Guidelines

Use this command to configure a blackhole IPv6 static route. A blackhole route silently
discards packets that are matched.
Use the set form of this command to specify a blackhole IPv6 static route.
Use the delete form of this command to remove a blackhole IPv6 static route.
Use the show form of this command to view blackhole IPv6 static route configuration.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
55

protocols static route6 <subnet> next-hop <address>


Allows you to configure the next hop for an IPv6 static route.

Syntax

set protocols static route6 subnet next-hop address [distance distance]


delete protocols static route6 subnet next-hop address [distance]
show protocols static route6 subnet next-hop address [distance]

Command Mode

Configuration mode.

Configuration Statement

protocols {
static {
route6 ipv6net {
next-hop ipv6 {
distance 1-255
}
}
}
}

Parameters

subnet Mandatory. Multi-node. Defines an IPv6 static route. The


format is a destination subnet of the form IPv6-address/prefix.
You can define multiple static routes by creating multiple
route6 configuration nodes.

address Mandatory. The IPv6 address of the next hop router.

distance Optional. Defines the next-hop distance for this route. Routes
with a smaller distance will be selected before those with a
larger distance.

Default

None.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
56

Usage Guidelines

Use this command to configure IPv6 static routes on the router.


Use the set form of this command to specify the next hop for the route.
Use the delete form of this command to remove the static route next hop.
Use the show form of this command to view static route next hop configuration.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
57

show ipv6 bgp


Displays BGP routes.

Syntax

show ipv6 bgp [ipv6 | ipv6net [longer-prefixes] | summary]

Command Mode

Operational mode.

Parameters

ipv6 Optional. Displays routes for the neighbor at the specified IPv6
address.

ipv6net Optional. Displays routes for the specified IPv6 network.

longer-prefixes Optional. Displays any routes more specific than the one specified.

summary Optional. Shows summary BGP route information.

Default

Displays all BGP routes by default.

Usage Guidelines

Use this command to display the BGP routing table.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
58

show ipv6 bgp community <community>


Displays BGP routes belonging to the specified BGP community.

Syntax

show ipv6 bgp community community [exact-match]

Command Mode

Operational mode.

Parameters

community Mandatory. A BGP community identifier in the form AA:NN (where


AA and NN are in the range of 0-65535), one of the well-known BGP
communities local-AS, no-export, or no-advertise, or a
space-separated list of up to four community identifiers.

exact-match Optional. Displays only routes that have an exact match.

Default

None.

Usage Guidelines

Use this command to display the BGP routes belonging to up to four BGP communities.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
59

show ipv6 bgp community-list <list-name>


Displays BGP routes permitted by the specified community list.

Syntax

show ipv6 bgp community-list list-name [exact-match]

Command Mode

Operational mode.

Parameters

list-name Mandatory. A preconfigured list of BGP communities.

exact-match Optional. Displays only route that have an exact match.

Default

None.

Usage Guidelines

Use this command to display the BGP routes permitted by the specified community list.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
60

show ipv6 bgp filter-list <list-num>


Displays routes matching a list of autonomous system paths.

Syntax

show ipv6 bgp filter-list list-num

Command Mode

Operational mode.

Parameters

list-num Mandatory. The number of a preconfigured autonomous system path


access list. The range is 1 to 500.

Default

None.

Usage Guidelines

Use this command to filter displayed routes according to preconfigured access list of
autonomous system paths.
BGP filter lists are defined using the the policy as-path-list command.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
61

show ipv6 bgp neighbors


Displays BGP neighbor information.

Syntax

show ipv6 bgp neighbors [ipv6]

Command Mode

Operational mode.

Parameters

ipv6 Optional. The IPv6 address of a BGP neighbor.

Default

Information is shown for all BGP neighbors.

Usage Guidelines

Use this command to display BGP neighbor information.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
62

show ipv6 bgp neighbors <ipv6> advertised-routes


Displays advertised routes for a BGP neighbor.

Syntax

show ipv6 bgp neighbors ipv6 advertised-routes

Command Mode

Operational mode.

Parameters

ipv6 Mandatory. The IPv6 address of a BGP neighbor.

Default

None.

Usage Guidelines

Use this command to display advertised routes for a BGP neighbor.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
63

show ipv6 bgp neighbors <ipv6> received-routes


Displays routes received from a BGP neighbor.

Syntax

show ipv6 bgp neighbors ipv6 received-routes

Command Mode

Operational mode.

Parameters

ipv6 Mandatory. The IPv6 address of a BGP neighbor.

Default

None.

Usage Guidelines

Use this command to display routes (both accepted and rejected) received from a BGP
neighbor.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
64

show ipv6 bgp neighbors <ipv6> routes


Displays all received and accepted routes from a BGP neighbor.

Syntax

show ipv6 bgp neighbors ipv6 routes

Command Mode

Operational mode.

Parameters

ipv6 Mandatory. The IPv6 address of a BGP neighbor.

Default

None.

Usage Guidelines

Use this command to display received and accepted routes from a BGP neighbor.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
65

show ipv6 bgp prefix-list <list-name>


Displays BGP routes matching a prefix list.

Syntax

show ipv6 bgp prefix-list list-name

Command Mode

Operational mode.

Parameters

list-name Mandatory. Name of a defined prefix list.

Default

None.

Usage Guidelines

Use this command to display routes that match a preconfigured prefix list.
Prefix lists are configured using the policy prefix-list command.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
66

show ipv6 bgp regexp <regexp>


Displays routes matching an AS path regular expression.

Syntax

show ipv6 bgp regexp regexp

Command Mode

Operational mode.

Parameters

regexp Mandatory. A POSIX-style regular expression representing a set of


AS paths.

Default

None.

Usage Guidelines

Use this command to display routes matching a regular expression representing an


autonomous system (AS) path list.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
67

show ipv6 neighbors


Displays the system’s IPv6 ND cache.

Syntax

show ipv6 neighbors

Command Mode

Operational mode.

Parameters

None.

Default

None.

Usage Guidelines

Use this command to display the system’s IPv6 ND (Neighbor Discovery) cache.
Table 1-1 shows possible ND states.

Table 1-1 ND states

State Description

incomplete Address resolution is currently being performed on this neighbor


entry. A neighbor solicitation message has been sent but a reply has
not yet been received.

reachable Address resolution has determined that the neighbor is reachable.


Positive confirmation has been received and the path to this neighbor
is operationable.

stale More than the configured elapsed time has passed since reachability
confirmation was received from this neighbor.

delay More than the configured elapsed time has passed since reachability
confirmation was received from this neighbor. This state allows TCP
to confirm the neighbor. If not, a probe should be sent after the next
delay time has elapsed.

probe A solicitation has been sent and the router is waiting for a response
from this neighbor.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
68

Table 1-1 ND states

State Description

failed Neighbor reachability state detection failed.

noarp The neighbor entry is valid. There will be no attempts to validate it


but it can be removed from the cache when its lifetime expires.

permanent The neighbor entry is valid indefinitely and should not be cleared
from the cache.

none No state is defined

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
69

show ipv6 ripng


Displays information for the Routing Information Protocol next generation (RIPng).

Syntax

show ipv6 ripng [status]

Command Mode

Operational mode.

Parameters

status Optional. Displays only RIPng protocol status information.

Default

Displays all RIPng protocol information.

Usage Guidelines

Use this command to see information about the Routing Information Protocol next
generation (RIPng).

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
70

show ipv6 route


Displays IPv6 routes stored in the RIB and FIB.

Syntax

show ipv6 route [ipv6 | ipv6net]

Command Mode

Operational mode.

Parameters

ipv6 Optional. Displays routing information for the specified IPv6 address.

ipv6net Optional. Displays routing information for the specified IPv6 prefix.

Default

Lists all IPv6 routes in the RIB and FIB.

Usage Guidelines

Use this command to display active IPv6 prefixes stored in the Routing Information Base
(RIB), as well as those stored in the Forwarding Information Base (FIB).
The routes shown in the FIB can also be seen using the show ipv6 route forward command
(see page 75).

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
71

show ipv6 route <ipv6net> longer-prefixes


Displays IPv6 prefixes longer than a specified prefix.

Syntax

show ipv6 route ipv6net longer-prefixes

Command Mode

Operational mode.

Parameters

ipv6net Mandatory. Displays all prefixes longer than the specified IPv6 prefix.

Default

None.

Usage Guidelines

Use this command to display all prefixes in the Routing Information Base (RIB) that are
longer than a given IPv6 address or prefix.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
72

show ipv6 route bgp


Displays IPv6 BGP routes.

Syntax

show ipv6 route bgp

Command Mode

Operational mode.

Parameters

None.

Default

None.

Usage Guidelines

Use this command to display IPv6 BGP routes.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
73

show ipv6 route cache


Displays the kernel IPv6 route cache.

Syntax

show ipv6 route cache [ipv6net]

Command Mode

Operational mode.

Parameters

ipv6net Optional. Displays kernel IPv6 route cache information for the specified
route.

Default

Lists routes in the kernel IPv6 route cache.

Usage Guidelines

Use this command to display information about routes stored in the kernel IPv6 route
cache. The route cache contains all paths currently in use by the cache. Multiple equal-cost
paths are necessary before equal-cost-multi-path (ECMP) routing can be performed.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
74

show ipv6 route connected


Displays IPv6 connected routes.

Syntax

show ipv6 route connected

Command Mode

Operational mode.

Parameters

None.

Default

None.

Usage Guidelines

Use this command to display IPv6 routes directly connected to the local system.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
75

show ipv6 route forward


Displays IPv6 routes stored in the FIB.

Syntax

show ipv6 route forward [ipv6net]

Command Mode

Operational mode.

Parameters

ipv6net Optional. Displays information from the kernel forwarding table for the
specified IPv6 route.

Default

Lists IPv6 routes in the FIB.

Usage Guidelines

Use this command to display the FIB.


The FIB contains multiple equal-cost paths if existed. Multiple equal-cost paths are
necessary before equal-cost multi-path (ECMP) routing or WAN load balancing can be
performed.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
76

show ipv6 route kernel


Displays IPv6 kernel routes.

Syntax

show ipv6 route kernel

Command Mode

Operational mode.

Parameters

None.

Default

None.

Usage Guidelines

Use this command to display IPv6 kernel routes. Kernel routes are routes that have been
added through means other than by using the Vyatta CLI.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
77

show ipv6 route ripng


Displays IPv6 RIPng routes.

Syntax

show ipv6 route ripng

Command Mode

Operational mode.

Parameters

None.

Default

None.

Usage Guidelines

Use this command to display IPv6 RIPng routes.

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
78

show ipv6 route static


Displays IPv6 static routes.

Syntax

show ipv6 route static

Command Mode

Operational mode.

Parameters

None.

Default

None.

Usage Guidelines

Use this command to display IPv6 static routes in the Routing Information Base (RIB).

IPv6 Rel VC5 v. 04 Vyatta


Chapter 1: IPv6 IPv6 Commands
79

traceroute6 <host>
Displays the route packets take to an IPv6 network host.

Syntax

traceroute6 host

Command Mode

Operational mode

Parameters

host The host that is the destination for the packets. Can be specified
either as name (if DNS is being used on the network) or as an IPv6
address.

Usage Guidelines

Traceroute utilizes the IP protocol time to live (“ttl”) field and attempts to elicit an ICMP
TIME_EXCEEDED response from each gateway along the path to some host to track the
route a set of packets follows.It attempts to trace the route an IP packet would follow to
some internet host by launching UDP probe packets with a small ttl then listening for an
ICMP “time exceeded” reply from a gateway.

IPv6 Rel VC5 v. 04 Vyatta

S-ar putea să vă placă și