assign ipv6 on some os

Upload: dungnt171

Post on 06-Apr-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/2/2019 Assign IPv6 on Some OS

    1/17

    Assign IPv6 Address on some OS

    www.netpro.com.vn

  • 8/2/2019 Assign IPv6 on Some OS

    2/17

    Objectives

    Sun Solaris Linux

    Microsoft

    Cisco Router Juniper Router

  • 8/2/2019 Assign IPv6 on Some OS

    3/17

    Assign IPv6 Address on some OS

    www.netpro.com.vn

  • 8/2/2019 Assign IPv6 on Some OS

    4/17

    Enable IPv6

    IPv6 support is available on Solaris 8.

    ,

    enable it during the OS installation. For the confi uration of the IPv6 address, a

    choice between static or automatic address

    definition is possible. u oma c means a e sys em w use

    neighbor discovery to obtain an IPv6 address.

    IPv6 address manually.

    All IPv6- s ecific ada ter confi uration is storedin/etc/hostname6..

  • 8/2/2019 Assign IPv6 on Some OS

    5/17

    Utilities

    If you want to display IPv6 related information by default when using the toolsifconfigand netstat, you need to change the file/etc/default/inet_typeand addthe entry DEFAULT_IP=BOTH.

    ifconfig

    There are new parameters available to get IPv6-related adapter information. netstat

    In addition to IPv4 information, it is ossible to dis la IPv6 information. Use thefollowing

    switch: netstat -f inet6. If you changed the default inettype, netstat -pdisplays theARP table for IPv4 and the neighbor cache for IPv6. netstat -rndisplays the routing

    table for IPv4 and IPv6.

    Route can be used for both routes, IPv4 and IPv6. Use the option -inet6to performoperations on IPv6 routes or to change the default inettype.

    ping, traceroute

    IPv6-related information.

    snoop - .

    version has IPv6 support. IPv6 traffic can be viewed by using snoop ip6.

  • 8/2/2019 Assign IPv6 on Some OS

    6/17

    Assign IPv6 Address on some OS

    www.netpro.com.vn

  • 8/2/2019 Assign IPv6 on Some OS

    7/17

    Enable IPv6

    The Linux kernel has supported IPv6 since. . .

  • 8/2/2019 Assign IPv6 on Some OS

    8/17

    Utilities

    ifconfig This tool is used for general network configuration of the Linux box. Using

    the address fla address famil lets ou switch between IPv4 inet andIPv6 (inet6) address families. You can use ifconfigto start and stop the

    interface and to view many different kinds of statistics. netstat

    IPv6. However, by installing net-tools, you get the most current version.The netstattool provides a lot of useful options and statistics, such as

    port information, routing table, and interface table. For all IPv6-relatedinformation, you need the --inet6flag.

    route If you enter routewithout any parameters, it displays the routing table for IPv4. For

    viewing the IPv6 routing table, add the flag --inet6.

    in 6 traceroute6 trace ath6 hostname Most of the utilities for IPv6 are similar to the utilities that we know from

    IPv4. Instead of using pingor traceroute

  • 8/2/2019 Assign IPv6 on Some OS

    9/17

    Assign IPv6 Address on some OS

    www.netpro.com.vn

  • 8/2/2019 Assign IPv6 on Some OS

    10/17

    Utilities

    6to4 tunneling

    6over4 tunneling

    nonymous a resses

    Site prefixes in router advertisements DNS support

    IPSEC support

    Application support RPC support

    Static router support

  • 8/2/2019 Assign IPv6 on Some OS

    11/17

    Enable IPv6

    Microsoft released the first research IPv6 stack in 1998. Itruns 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 rumpe s nsoc or cons er upgra ng oWindows XP, which includes an IPv6 stack.

    To install the IPv6 stack run setu .exefrom the locationto which you extracted the IPv6 files. Then go to theNetwork and Dial-Up Connection window, click on the

    click on Properties. Choose Install Protocol, click Add,and select the IPv6 Protocol.

  • 8/2/2019 Assign IPv6 on Some OS

    12/17

    Assign IPv6 Address on some OS

    www.netpro.com.vn

  • 8/2/2019 Assign IPv6 on Some OS

    13/17

    Enable IPv6

    Cisco's IPv6 support begins with the Cisco IOS 12.2(2) Technologyrelease

    , .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 st o ava a e comman s. From this screen, the IPv6 address can be configured, as well as

    options for linking MTU, neighbor discovery, routing, and filters.configuration of neighbor discovery.

    From this screen, you can configure flags to specify whether hosts onthis link should use DHCP for address-related or non-address-related

    ,interval. The subnet prefix and the lifetime advertised in Router Advertisement

    messages are also configured here. I made the first configurations eps an se s rou er up as a o unne w e croso orelay router as tunnel destination.

  • 8/2/2019 Assign IPv6 on Some OS

    14/17

    Utilities

    ipv6 nd dad attempts

    Configures the number of Duplicate Address Detection (DAD) and

    unique. DAD can be disabled by specifying ipv6 nd dad attempts 0. ipv6 nd ra-interval

    Confi ures the interval between IPv6 Router Advertisementtransmissions from this interface. The value for this should be less than orequal to the IPv6 Router Lifetime if this is a default router.

    The default is 200 seconds. To prevent synchronization with other IPv6,

    or minus 20 percent of the specified value.

    ipv6 nd ra-lifetime

    Configures the lifetime of a Router Advertisement. This value is included

    in all IPv6 Router Advertisements sent out this interface. If the router isnot 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

    value is 1,800 seconds.

  • 8/2/2019 Assign IPv6 on Some OS

    15/17

    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 Ringn er aces v un cas rou ng s ena e .

    Use the command ipv6 nd supress-rato turn off RAs on LAN interfaces. On othertypes of interfaces, the default is never to send an RA. Use the command no ipv6nd suppress-rato send RAs on interfaces such as serial or tunnel interfaces

    - -,lifetime>] | [at ] [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 per prefix, including

    whether the prefix should be advertised. The defaultkeyword can be used to setdefault parameters for all prefixes.

    A date can be set for prefix expiration. The valid and preferred lifetimes arecounted down in real time. When the expiration date is reached, the prefix is nolon er 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 touse IPv6 stateless autoconfiguration to create global unicast addresses fort emse ves.

  • 8/2/2019 Assign IPv6 on Some OS

    16/17

    Assign IPv6 Address on some OS

    www.netpro.com.vn

  • 8/2/2019 Assign IPv6 on Some OS

    17/17

    Enable IPv6

    In JunOS, IPv6 is enabled as soon as one

    !

    interfaces fe-0/0/1

    unit 0 {

    family inet6 {address 3ffe:b00:0:1::1/64;

    }

    }}