Example for Configuring Users to Automatically Obtain IPv6 Addresses

Created Jan 14, 2017 23:15:14Latest reply Jan 15, 2017 00:09:43 828 1 0 0

Applicability

This example applies to all AR models of V200R002C00 and later versions.

Networking Requirements

A PC can automatically obtain an IPv6 address after directly connecting to the router's interface. A default gateway is automatically generated so that the PC can communicate with the router. In this configuration example, when the router is configured to send router advertisement (RA) messages, the PC can automatically configure an IP address according to the received RA message and generate the default route with the router as the next hop.

Figure 6-4  Networking diagram of IPv6 stateless auto-configuration
bc5426b4f17649589fb3f7b0f88b502f

Procedure

  1. Configure the router.

    #                                                                               
    ipv6  //Enable IPv6.                                                                    
    #                                                 
    interface GigabitEthernet0/0/0                                                  
     ipv6 enable                                                                                                              
     ipv6 address fc01::1/64                                                        
     undo ipv6 nd ra halt                                              
    #                                                                               
    

  2. Verify the configuration.

    Open the command line window on PC A and run the ipconfig command to view the IP address of the PC.

    C:\> ipconfig
    
    Windows IP Configuration
    
    
    Ethernet adapter local connection:
    
            Connection-specific DNS Suffix  . :
            IP Address. . . . . . . . . . . . : 0.0.0.0
            Subnet Mask . . . . . . . . . . . : 0.0.0.0
            IP Address. . . . . . . . . . . . : fc01::bdc5:2448:dc6b:bbe0    (1)
            IP Address. . . . . . . . . . . . : fc01::215:e9ff:feac:2df2     (2)
            IP Address. . . . . . . . . . . . : fe80::215:e9ff:feac:2df2%5   (3)
            Default Gateway . . . . . . . . . : fe80::a19:a6ff:fecd:a896%5   (4)
    bdaacbd7e3e244b0ac9f8c6ae8a584dc NOTE:

    (1) Automatically configured global unicast IPv6 address, which has the same prefix as the IPv6 address of GE0/0/0

    (2) EUI-64 address generated using a MAC address

    (3) Link-local address

    (4) Automatically generated default gateway address, which is the link-local IPv6 address of the interface directly connecting the PC to the router

    Ping GE0/0/0 from the PC. The ping operation succeeds.
    C:\> ping fc01::1
    
    Pinging fc01::1 with 32 bytes of data:
    
    Reply from fc01::1: time<1ms
    Reply from fc01::1: time<1ms
    Reply from fc01::1: time<1ms
    Reply from fc01::1: time<1ms
    
    Ping statistics for fc01::1:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 0ms, Maximum = 0ms, Average = 0ms
    

    The preceding information shows that IPv6 stateless auto-configuration is configured successfully.

Configuration Notes

None.


  • x
  • convention:

user_2790689  Expert   Created Jan 15, 2017 00:09:43 Helpful(0) Helpful(0)

thank you
  • x
  • convention:

Responses

Reply
You need to log in to reply to the post Login | Register

Notice:To ensure the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but not limited to politically sensitive content, content concerning pornography, gambling, drug abuse and trafficking, content that may disclose or infringe upon others' intellectual properties, including commercial secrets, trade marks, copyrights, and patents, and personal privacy. Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see“ Privacy Policy.”
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top