Configuration Tasks
This section describes how to configure and maintain IPv6 interfaces.
Configuring IPv6 Interfaces
To configure an IPv6 interface:
- Configure an IPv6 license.
host1(config)#license ipv6 <license-value>
- Define an IPv6 address.
host1(config)#interface atm 1/0.25
host1(config-if)#ipv6 address 1::1/64
- (Optional) Set up an unnumbered interface.
host1(config-if)#ipv6 unnumbered ATM 1/0.25
- Establish an IPv6 static route.
host1(config)#ipv6 route 7fff::0/16 1::1
ipv6 address
- Use to add an IPv6 address to an interface or subinterface.
- Example
host1(config)#interface atm 1/0.25
host1(config-if)#ipv6 address 1::1/64
| Note: You can use this command in Interface Configuration or Subinterface Configuration mode. |
- Use the no version of this command to remove an IPv6 address.
ipv6 unnumbered
- Use to set up an unnumbered interface.\
- An unnumbered interface does not have an IPv6 address assigned to it. Unnumbered interfaces are often used in point-to-point connections where an IPv6 address is not required.
- This command enables IPv6 processing on an interface without assigning an explicit IPv6 address to the interface.
- You supply an interface location that is the type and number of another interface on which the router has an assigned IPv6 address. This interface cannot be another unnumbered interface.
- Example
host1(config-if)#ipv6 unnumbered ATM 6/0.100
- Use the no version to disable IPv6 processing on an interface.
ipv6 route
- Use to establish a static IPv6 route.
- You can set a destination to receive and send traffic from and to a network or to use a specific route through the network.
| Note: In this release, IPv6 supports only static routes and loopback configurations. |
host1(config)#ipv6 route 7fff::0/16 1::1
- Use the no version of this command to remove a static route from the routing table.
license ipv6
- Use to specify an IPv6 license.
- Purchase an IPv6 license to allow IPv6 configuration on the ERX system.
| Note: Acquire the license from Juniper Networks Customer Service or your Juniper Networks sales representative. |
host1(config)#license ipv6 <license-value>
- Use the no version to disable the license.
Managing IPv6 Interfaces
You can manage IPv6 interfaces in the following ways:
- Disable or reenable IPv6.
host1(config-if)#no ipv6 enable
host1(config-if)#ipv6 enable
host1#clear ipv6 interface atm 2/0
- Remove the IPv6 configuration.
host1(config-if)#ipv6 unnumbered ATM 1/0.25
- Determine reachability within a network.
host1#ping ipv6 1::1
host1#traceroute ipv6 1::1
clear ipv6 interface
- Use to clear the counters on a specified IPv6 interface.
- Example
host1#clear ipv6 interface atm 2/0
ipv6 enable
- Use to enable or disable IPv6 on an interface or a subinterface at any time.
| Note: By default, IPv6 is enabled when you first create an instance at the router level or add an IPv6 address to an interface or subinterface. |
host1(config-if)#ipv6 enable
| Note: You can use this command in Interface Configuration or Subinterface Configuration mode. |
- Use the no version of this command to disable IPv6 on an interface or a subinterface.
no ipv6
- Use to remove IPv6 configuration from all interfaces and disable IPv6 processing on the virtual router.
| Note: The ERX system automatically starts IPv6 processing when you begin configuring an IPv6 interface. However, by issuing the ipv6 command without using the no option, you can create an IPv6 processing instance with no IPv6 configuration. |
host1(config)#[no] ipv6
ping ipv6
- Use to send an ICMP echo request packet to the IPv6 address that you specify.
- Use the source interface keywords to specify a source interface other than the one from which the probe originates.
- Use the source address keywords to specify a source IP address other than the one from which the probe originates.
- You can specify the following options:
- packetCount - number of packets to send to the destination IPv6 address. If you specify a zero, echo requests packets are sent indefinitely.
- data-pattern - sets the type of bits contained in the packet to all ones, all zeros, a random mixture of ones and zeros, or a specific hexadecimal data pattern that can range from 0x0-0xFFFFFFFF. The default is all zeros.
- data-size - sets the number of bytes comprising the IPv6 packet and reflected in the IPv6 header in the range 0-64000; the default is 100 bytes
- extended header attributes - set the interface type and specifier of a destination address on the system that is configured for external loopback; the command succeeds only if the specified interface is configured for external loopback
- sweep-interval - specifies the change in the size of subsequent ping packets while sweeping across a range of sizes. For example, you can configure the sweep interval to sweep across the range of packets from 100 bytes to 1000 bytes in increments equal to the sweep interval. By default the system increments packets by one byte; for example, it sends 100, 101, 102, 103, ... 1000. If the sweep interval is 5, the system sends 100, 105, 110, 115, ... 1000.
- sweep-sizes - enables you to vary the sizes of the echo packets being sent. This capability is useful for determining the minimum sizes of the MTUs configured on the nodes along the path to the destination address. This reduces packet fragmentation, which contributes to performance problems. The default is not to sweep (all packets are the same size).
- timeout - sets the number of seconds to wait for an ICMP echo reply packet before the connection attempt times out
- hop-limit - sets the time-to-live hop count in the range 1-255; the default is 255
- The following characters can appear in the display after issuing the ping command:
- ! - reply received
- . - timed out while waiting for a reply
- ? - unknown packet type
- A - admin unreachable
- b - packet too big
- H - host unreachable
- N - network unreachable
- P - port unreachable
- p - parameter problem
- S - source beyond scope
- t - hop limit expired (TTL expired)
host1#ping ipv6 1::1
traceroute
- Use to discover the routes that router packets follow when traveling to their destination.
- You can specify:
- Destination IPv6 address
- Source interface for each of the transmitted packets
- Source IPv6 address for each of the transmitted packets
- Maximum number of hops of the trace and a timeout value
- Size of the IPv6 packets (not the ICMP payload) in the range 0-64000 bytes sent with the traceroute command. Including a size might help locate any MTU problems that exist between your system and a particular device.
- Hop count in the range 1-255; the default is 32
- You can also force transmission of the packets on a specified interface regardless of what the IPv6 address lookup indicates.
- Example
host1#traceroute ipv6 1::1 timeout 10