Está en la página 1de 17

Assign IPv6 Address on some OS

www.netpro.com.vn

Objectives

Sun Solaris Linux Microsoft Cisco Router Juniper Router

Assign IPv6 Address on some OS

Sun Solaris

www.netpro.com.vn

Enable IPv6
IPv6 support is available on Solaris 8. Solaris, If you want to use IPv6 on Sun Solaris you must enable it during the OS installation. g , For the configuration of the IPv6 address, a choice between static or automatic address definition is possible. A t Automatic means that the system will use ti th t th t ill neighbor discovery to obtain an IPv6 address. Static means that the administrator defines the IPv6 address manually. p p g All IPv6- specific adapter configuration is stored in /etc/hostname6.<interface>.

Utilities
If you want to display IPv6 related information by default when using the tools ifconfig and netstat, you need to change the file /etc/default/inet_type and add the entry DEFAULT_IP=BOTH. ifconfig
There are new parameters available to get IPv6-related adapter information.

netstat
In addition to IPv4 information, it is possible to display IPv6 information. Use the , p p y following switch: netstat -f inet6. If you changed the default inet type, netstat -p displays the ARP table for IPv4 and the neighbor cache for IPv6. netstat -rn displays the routing table for IPv4 and IPv6.

route
Route can be used for both routes, IPv4 and IPv6. Use the option -inet6 to perform operations on IPv6 routes or to change the default inet type.

ping, traceroute
ping and traceroute used with IPv6 addresses or IPv6 DNS record entries display IPv6-related information.

snoop
Snoop is a well-known network analysis tool included with Solaris The latest Solaris. version has IPv6 support. IPv6 traffic can be viewed by using snoop ip6.

Assign IPv6 Address on some OS

Linux

www.netpro.com.vn

Enable IPv6
The Linux kernel has supported IPv6 since version 2.2.x. 22x

Utilities
ifconfig
This tool is used for general network configuration of the Linux box. Using g [address family] lets you switch between IPv4 (inet) and y] y ( ) the address flag [ IPv6 (inet6) address families. You can use ifconfig to start and stop the interface and to view many different kinds of statistics.

netstat
The netstat version on your Linux box after the installation does support IPv6. However, by installing net-tools, you get the most current version. The netstat tool provides a lot of useful options and statistics, such as port information, routing table, and interface table. For all IPv6-related information, you need the --inet6 flag.

route
If you enter route without any parameters, it displays the routing table for IPv4. For viewing the IPv6 routing table, add the flag --inet6.

p g , ping6, traceroute6, tracepath6, hostname , p ,


Most of the utilities for IPv6 are similar to the utilities that we know from IPv4. Instead of using ping or traceroute

Assign IPv6 Address on some OS

Microsoft

www.netpro.com.vn

Utilities
6to4 tunneling ISATAP 6over4 tunneling Anonymous addresses A dd Site prefixes in router advertisements DNS support IPSEC support Application support RPC support Static router support

Enable IPv6
Microsoft released the first research IPv6 stack in 1998. It runs on Windows NT 4.0 and Windows 2000. It does not work on Windows 95/98. If you have Windows 95/98 or Windows ME or SE, you can use Trumpet's Winsock or consider upgrading to se Tr mpet's pgrading Windows XP, which includes an IPv6 stack. To install the IPv6 stack, run setup.exe from the location , p to which you extracted the IPv6 files. Then go to the Network and Dial-Up Connection window, click on the connection where you want to add the IPv6 protocol and click on Properties. Choose Install Protocol, click Add, and select the IPv6 Protocol.

Assign IPv6 Address on some OS

Cisco Router

www.netpro.com.vn

Enable IPv6
Cisco's IPv6 support begins with the Cisco IOS 12.2(2) Technology release First, First needed to enable IPv6 packet forwarding This is not enabled forwarding. by default (different from IPv4). It is done with the global command ipv6 unicast-routing. Next, configured the interface Ethernet 0/0. By typing IPv6 ?, received a li t of available commands. list f il bl d From this screen, the IPv6 address can be configured, as well as options for linking MTU, neighbor discovery, routing, and filters. The command IPv6 nd ? displays the options available for the configuration of neighbor discovery. From this screen, you can configure flags to specify whether hosts on this link should use DHCP for address-related or non-address-related information and different intervals such as the router advertisement intervals, interval. The subnet prefix and the lifetime advertised in Router Advertisement messages are also configured here. I made the first configuration steps and set this router up as a 6to4 t t d t thi t 6t 4 tunnel with th Mi l ith the Microsoft 6t 4 ft 6to4 relay router as tunnel destination.

Utilities
ipv6 nd dad attempts <number>
Configures the number of Duplicate Address Detection (DAD) and Neighbor Solicitation messages to send before considering an address unique. DAD can be disabled by specifying ipv6 nd dad attempts 0.

ipv6 nd ra-interval <seconds>


Configures the interval between IPv6 Router Advertisement g transmissions from this interface. The value for this should be less than or equal to the IPv6 Router Lifetime if this is a default router. The default is 200 seconds. To prevent synchronization with other IPv6 nodes, nodes the actual value used should be randomly adjusted to within plus or minus 20 percent of the specified value.

ipv6 nd ra-lifetime <seconds>


Configures the lifetime of a Router Advertisement. This value is included in all IPv6 Router Advertisements sent out this interface. If the router is not a default router, this will have a value of zero. If the router is a default router, this value will be non-zero and should not be less than the minimum Router Advertisement interval. The default value is 1,800 seconds.

Utilities (cont.)
[no] ipv6 nd suppress-ra
Controls transmission of IPv6 Router Advertisements on the interface. The default is to send Router Advertisments (RAs) on Ethernet, FDDI, or Token Ring interfaces if IPv6 unicast routing is enabled. i t f IP 6 i t ti i bl d Use the command ipv6 nd supress-ra to turn off RAs on LAN interfaces. On other types of interfaces, the default is never to send an RA. Use the command no ipv6 nd suppress-ra to send RAs on interfaces such as serial or tunnel interfaces

[no] ipv6 nd prefix <prefix> | default [ [<valid-lifetime> <preferred default, [<valid lifetime> <preferredlifetime>] | [at <valid-date> <preferred-date>] [off-link] [no-autoconfig] ]
By default, all prefixes configured as addresses on the interface are advertised in Router Advertisements. This command allows control over the individual parameters p p p per prefix, including g whether the prefix should be advertised. The default keyword can be used to set default parameters for all prefixes. A date can be set for prefix expiration. The valid and preferred lifetimes are counted down in real time. When the expiration date is reached, the prefix is no longer advertised.

[no] ipv6 nd managed-config-flag


Defaults to OFF. When OFF, Router Advertisements sent from this interface have the Managed Address Configuration Flag turned off. Hosts are thus permitted to use IPv6 stateless autoconfiguration to create global unicast addresses for themselves. th l

Assign IPv6 Address on some OS

Juniper Router

www.netpro.com.vn

Enable IPv6
In JunOS, IPv6 is enabled as soon as one interface is configured for IPv6
! interfaces fe-0/0/1 { unit 0 { family inet6 { address 3ffe:b00:0:1::1/64; } } } !