Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

Previous Previous     Contents     Index     Next Next

ProcedureHow to Add IPv6 Addresses to NIS and NIS+

A new table has been added for NIS+ named ipnodes.org_dir. The table contains both IPv4 and IPv6 addresses for a host. The existing hosts.org_dir table, which contains only IPv4 addresses for a host, remains the same to facilitate existing applications. Both the hosts.org_dir and ipnodes.org_dir tables must be consistent with the IPv4 addresses. See IPv6 Extensions to Solaris Name Services for an overview.

Administration of the new ipnodes.org_dir table is similar to administering the hosts.org_dir. The same tools and utilities that are used in administering the previous NIS+ tables are valid for ipnodes.org_dir. See System Administration Guide: Naming and Directory Services for details on how to manipulate the NIS+ table.

The following procedure merges the entries from /etc/inet/ipnodes into the ipnodes.org_dir table (in verbose mode). The NIS+ table was probably created by nistbladm(1), nissetup(1M), or nisserver(1M).

  • On a command line, type the following command:

    % nisaddent -mv -f /etc/inet/ipnodes ipnodes

Use the following procedure to display the ipnodes.org_dir table.

  • On a command line, type the following command:

    % nisaddent -d ipnodes

Two new maps have been added for NIS: ipnodes.byname and ipnodes.byaddr. These maps contain both IPv4 and IPv6 host name and address associations. The hosts.byname and hosts.byaddr maps, which contain only IPv4 host name and address associations, remain the same to facilitate existing applications. Administration of the new maps is similar to the maintenance of the hosts.byname and hosts.byaddr older maps. Again, it is important that when you update the hosts maps with IPv4 addresses that the new ipnode maps are also updated with the same information.


Note - Tools that are aware of IPv6 use the new NIS maps and the new NIS+ tables.


ProcedureHow to Add IPv6 Addresses to DNS

  1. Become superuser on system that has DNS.

  2. Edit the appropriate DNS zone file by adding AAAA records for the IPv6-enabled host, using the following format.

    host-name  IN   AAAA 	host-address

  3. Edit the DNS reverse zone file and add PTR records, using the following format.

    host-address IN   PTR   host-name

See RFC 1886 for more information about AAAA and PTR records.

Example--DNS Zone File

vallejo		IN		AAAA   2::9256:a00:20ff:fe12
IN		AAAA   fec0::9256:a00:20ff:fe12:528

Example--DNS Reverse Zone File

$ORIGIN	ip6.int.	
8.2.5.0.2.1.e.f.f.f.9.2.0.0.a.0.6.5.2.9.0.0.0.0.0.0.0.0.2.0.0.0 \
	IN		PTR		vallejo.Eng.apex.COM.
8.2.5.0.2.1.e.f.f.f.9.2.0.0.a.0.6.5.2.9.0.0.0.0.0.0.0.0.0.c.e.f \
	IN		PTR		vallejo.Eng.apex.COM.

Monitoring IPv6

The following commands are modified to accommodate the Solaris implementation of IPv6.

  • ifconfig(1M)

  • netstat(1M)

  • snoop(1M)

  • ping(1M)

  • traceroute(1M)

You can use the new additions to conduct diagnostics. For conceptual descriptions of these commands, see IPv6 Extensions to the ifconfig Utility and IPv6 Extensions to Existing Utilities.

Monitoring IPv6 Task Map

Table 15-2 Monitoring IPv6 Task Map

Task

Description

For Instructions, Go to ...

Display interface address assignments

Displays all, or just IPv4, or just IPv6 address assignments by using ifconfig command.

How to Display Interface Address Assignments

Display network status

Displays all sockets and routing table entries. Displays inet address family for IPv4. Displays inet6 address family for IPv6. Displays statistics for IPv6 or ICMPv6 counters of interfaces by using the netstat command.

How to Display Network Status

Control the display output of IPv6 related commands

Controls the output of the ping, netstat, ifconfig, and traceroute commands. Creates a file that is named inet_type. Sets the DEFAULT_IP variable in this file.

How to Control the Display Output of IPv6 Related Commands

Monitor only IPv6 network traffic

Displays all IPv6 packets by using the snoop command.

How to Monitor Only IPv6 Network Traffic

Probe all multihomed host addresses

Checks all addresses by using the ping command.

How to Probe All Multihomed Host Addresses

Trace all routes

Uses the traceroute command.

How to Trace All Routes

ProcedureHow to Display Interface Address Assignments

You can use the ifconfig command to display all address assignments as well as just IPv4 or IPv6 address assignments.

  • On the command line, type the following command.

    % ifconfig [option]

For more information on the ifconfig command, see the ifconfig(1M) man page.

Example--Displaying Addressing Information for All Interfaces

% ifconfig -a
lo0: flags=1000849 mtu 8232 index 1
        inet 120.10.0.1 netmask ff000000 
le0: flags=1000843 mtu 1500 index 2
        inet 120.46.86.54 netmask ffffff00 broadcast 120.146.86.255
        ether 8:0:73:56:a8 
lo0: flags=2000849 mtu 8252 index 1
        inet6 ::1/128 
le0: flags=2000841 mtu 1500 index 2
        ether 8:0:20:56:a8 
        inet6 fe80::a00:fe73:56a8/10 
le0:1: flags=2080841 mtu 1500 index 2
        inet6 fec0::56:20ff:fe73:56a8/64 
le0:2: flags=2080841 mtu 1500 index 2
        inet6 2::56:a00:fe73:56a8/64

Example--Displaying Addressing Information for All IPv4 Interfaces

% ifconfig -a4
lo0: flags=1000849 mtu 8232 index 1
        inet 120.10.0.1 netmask ff000000 
le0: flags=1000843 mtu 1500 index 2
        inet 120.46.86.54 netmask ffffff00 broadcast 120.46.86.255
        ether 8:0:20:56:a8

Example--Displaying Addressing Information for All IPv6 Interfaces

% ifconfig -a6
lo0: flags=2000849 mtu 8252 index 1
        inet6 ::1/128 
le0: flags=2000841 mtu 1500 index 2
        ether 8:0:20:56:a8 
        inet6 fe80::a00:fe73:56a8/10 
le0:1: flags=2080841 mtu 1500 index 2
        inet6 fec0::56:20ff:fe73:56a8/64 
le0:2: flags=2080841 mtu 1500 index 2
        inet6 2::56:a00:fe73:56a8/64 

Previous Previous     Contents     Index     Next Next