< Home

Example for Configuring IPv6 Static DNS

Networking Requirements

As shown in Figure 1, SwitchA functions as an IPv6 DNS client. On SwitchA, the IPv6 static DNS entries of SwitchB are configured. The customer wants SwitchA to manage SwitchB based on domain names.

Figure 1 Networking diagram of IPv6 static DNS configurations

Configuration Roadmap

The configuration roadmap is as follows:

  1. Enable the IPv6 function on SwitchA and SwitchB. Configure IPv6 addresses for VLANIF interfaces to ensure that SwitchA and SwitchB can communicate with each other.

  2. Configure static DNS entries on SwitchA to enable SwitchA to access SwitchB using the domain name.

Procedure

  1. Enable the IPv6 forwarding capability on SwitchA.

    # Configure SwitchA.

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchA
    [SwitchA] ipv6 

    # Configure SwitchB.

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchB
    [SwitchB] ipv6 

  2. Configure IPv6 addresses for interfaces.

    # Configure SwitchA.

    [SwitchA] vlan batch 100
    [SwitchA] interface gigabitethernet 0/0/1
    [SwitchA-GigabitEthernet0/0/1] port link-type hybrid
    [SwitchA-GigabitEthernet0/0/1] port hybrid pvid vlan 100
    [SwitchA-GigabitEthernet0/0/1] port hybrid untagged vlan 100
    [SwitchA-GigabitEthernet0/0/1] quit 
    [SwitchA] interface vlanif 100
    [SwitchA-Vlanif100] ipv6 enable
    [SwitchA-Vlanif100] ipv6 address fc00:2::2/64
    [SwitchA-Vlanif100] quit 

    # Configure SwitchB.

    [SwitchB] vlan batch 100
    [SwitchB] interface gigabitethernet 0/0/1
    [SwitchB-GigabitEthernet0/0/1] port link-type hybrid
    [SwitchB-GigabitEthernet0/0/1] port hybrid pvid vlan 100
    [SwitchB-GigabitEthernet0/0/1] port hybrid untagged vlan 100
    [SwitchB-GigabitEthernet0/0/1] quit 
    [SwitchB] interface vlanif 100
    [SwitchB-Vlanif100] ipv6 enable
    [SwitchB-Vlanif100] ipv6 address fc00:2::1/64
    [SwitchB-Vlanif100] quit 

  3. Create IPv6 static DNS entries.

    # Configure IPv6 static DNS entries on SwitchA.

    [SwitchA] ipv6 host SwitchB fc00:2::1
    [SwitchA] quit

  4. Verify the configuration.

    # Run the ping ipv6 SwitchB command on SwitchA. The ping operation succeeds, and the destination IPv6 address is fc00:2::1.

    <SwitchA> ping ipv6 SwitchB
      Resolved Host ( SwitchB -> FC00:2::1 )                                                                                            
      PING SwitchB : 56  data bytes, press CTRL_C to break                                                                              
        Reply from FC00:2::1                                                                                                            
        bytes=56 Sequence=1 hop limit=64  time = 3 ms                                                                                   
        Reply from FC00:2::1                                                                                                            
        bytes=56 Sequence=2 hop limit=64  time = 3 ms                                                                                   
        Reply from FC00:2::1                                                                                                            
        bytes=56 Sequence=3 hop limit=64  time = 3 ms                                                                                   
        Reply from FC00:2::1                                                                                                            
        bytes=56 Sequence=4 hop limit=64  time = 3 ms                                                                                   
        Reply from FC00:2::1                                                                                                            
        bytes=56 Sequence=5 hop limit=64  time = 3 ms                                                                                   
                                                                                                                                        
      --- SwitchB ping statistics ---                                                                                                   
        5 packet(s) transmitted                                                                                                         
        5 packet(s) received                                                                                                            
        0.00% packet loss                                                                                                               
        round-trip min/avg/max = 3/3/3 ms 

    # Run the display ipv6 host command on SwitchA. You can view the mappings between the host names and IPv6 addresses in IPv6 static DNS entries.

    <SwitchA> display ipv6 host
    Host              Age        Flags   IPv6Address (es)
    SwitchB           0          static  FC00:2::1

Configuration Files

  • SwitchA configuration file

    #
    sysname SwitchA
    #
    ipv6
    #
    ipv6 host SwitchB FC00:2::1
    #
    vlan batch 100
    #
    interface Vlanif100
     ipv6 enable
     ipv6 address FC00:2::2/64
    #
    interface GigabitEthernet0/0/1
     port link-type hybrid
     port hybrid pvid vlan 100
     port hybrid untagged vlan 100
    #
    return
    
  • SwitchB configuration file

    #
    sysname SwitchB
    #                                                                               
    ipv6 
    #
    vlan batch 100
    #
    interface Vlanif100
     ipv6 enable
     ipv6 address FC00:2::1/64
    #
    interface GigabitEthernet0/0/1
     port link-type hybrid
     port hybrid pvid vlan 100
     port hybrid untagged vlan 100
    #
    return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >