JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Configuring and Administering Oracle Solaris 11.1 Networks     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Planning the Network Deployment

2.  Considerations When Using IPv6 Addresses

3.  Configuring an IPv4 Network

4.  Enabling IPv6 on the Network

Configuring an IPv6 Interface

How to Configure a System For IPv6

How to Turn Off IPv6 Address Autoconfiguration

Configuring an IPv6 Router

How to Configure an IPv6-Enabled Router

Modifying an IPv6 Interface Configuration for Hosts and Servers

Using Temporary Addresses for an Interface

How to Configure a Temporary Address

Configuring an IPv6 Token

How to Configure a User-Specified IPv6 Token

Administering IPv6-Enabled Interfaces on Servers

How to Enable IPv6 on a Server's Interfaces

Configuring Name Service Support for IPv6

How to Add IPv6 Addresses to DNS

How to Display IPv6 Name Service Information

How to Verify That DNS IPv6 PTR Records Are Updated Correctly

How to Display IPv6 Information Through NIS

5.  Administering a TCP/IP Network

6.  Configuring IP Tunnels

7.  IPv4 Reference

8.  IPv6 Reference

Index

Configuring an IPv6 Router

This section describes tasks to configure an IPv6 router. Depending on your site requirements, you might need to perform only selected tasks.

How to Configure an IPv6-Enabled Router

The following procedure assumes that you have already configured the system for IPv6. For the procedures, refer to Configuring an IPv6 Interface.

  1. Configure IPv6 packet forwarding on all interfaces of the router.
    # ipadm set-prop -p forwarding=on ipv6
  2. Start the routing daemon.

    The in.ripngd daemon handles IPv6 routing. Turn on IPv6 routing in either of the following ways:

    • Use the routeadm command:

      # routeadm -e ipv6-routing -u
    • Use the appropriate SMF command:

      # svcadm enable ripng:default

    For syntax information on the routeadm command, see the routeadm(1M) man page.

  3. Create the /etc/inet/ndpd.conf file.

    You specify the site prefix to be advertised by the router and other configuration information in /etc/inet/ndpd.conf. This file is read by the in.ndpd daemon, which implements the IPv6 Neighbor Discovery protocol.

    For a list of variables and allowable values, refer to ndpd.conf Configuration File and the ndpd.conf(4)man page.

  4. Type the following text into the /etc/inet/ndpd.conf file:
    ifdefault AdvSendAdvertisements true
    prefixdefault AdvOnLinkFlag on AdvAutonomousFlag on

    This text tells the in.ndpd daemon to send out router advertisements over all interfaces of the router that are configured for IPv6.

  5. Add additional text to the /etc/inet/ndpd.conf file to configure the site prefix on the various interfaces of the router.

    The text should have the following format:

    prefix global-routing-prefix:subnet ID/64 interface

    The following sample /etc/inet/ndpd.conf file configures the router to advertise the site prefix 2001:0db8:3c4d::/48 over the interfaces net0 and net1.

    ifdefault AdvSendAdvertisements true
    prefixdefault AdvOnLinkFlag on AdvAutonomousFlag on
    
    if net0 AdvSendAdvertisements 1
    prefix 2001:0db8:3c4d:15::0/64 net0
    
    if net1 AdvSendAdvertisements 1
    prefix 2001:0db8:3c4d:16::0/64 net1
  6. Reboot the system.

    The IPv6 router begins advertising on the local link any site prefix that is in the ndpd.conf file.

Example 4-2 ipadm show-addr Output Showing IPv6 Interfaces

The following example shows output from the ipadm show-addr command such as you would receive after you finish the Configuring an IPv6 Router procedure.

ADDROBJ      TYPE       STATE   ADDR
lo0/v4       static     ok      127.0.0.1/8
net0/v4      static     ok      172.16.15.232/24
net1/v4      static     ok      172.16.16.220/24
net0/v6      addrconf   ok      fe80::203:baff:fe11:b115/10
lo0/v6       static     ok      ::1/128
net0/v6a     static     ok      2001:db8:3c4d:15:203:baff:fe11:b115/64
net1/v6      addrconf   ok      fe80::203:baff:fe11:b116/10
net1/v6a     static     ok      2001:db8:3c4d:16:203:baff:fe11:b116/64

In this example, each interface that was configured for IPv6 now has two addresses. The entry with the address object name such as interface/v6 shows the link-local address for that interface. The entry with the address object name such as interface/v6add shows a global IPv6 address. This address includes the site prefix that you configured in the /etc/ndpd.conf file, in addition to the interface ID. Note that the designation v6add is a randomly defined string. You can define other strings to constitute the second part of the address object name, provided that the interface reflects the interface over which you are creating the IPv6 addresses, for example net0/mystring, net0/ipv6addr, and so on.

See Also