Configuration procedure

  1. Configure Switch B:

    # Enable the IPv6 packet forwarding function.

    <SwitchB> system-view
    [SwitchB] ipv6
    

    # Configure the IPv6 address of VLAN-interface 2.

    [SwitchB] interface vlan-interface 2
    [SwitchB-Vlan-interface2] ipv6 address 1::1 64
    

    # Set the O flag in the RA messages to 1.

    [SwitchB-Vlan-interface2] ipv6 nd autoconfig other-flag
    

    # Enable Switch B to send RA messages.

    [SwitchB-Vlan-interface2] undo ipv6 nd ra halt
    
  2. Configure Switch A:

    # Enable the IPv6 packet forwarding function.

    <SwitchA> system-view
    [SwitchA] ipv6
    

    # Enable stateless IPv6 address autoconfiguration on VLAN-interface 2.

    [SwitchA] interface vlan-interface 2
    [SwitchA-Vlan-interface2] ipv6 address auto
    

    With this command executed, if VLAN-interface 2 has no IPv6 address configured, Switch A will automatically generate a link-local address, and send an RS message, requesting the gateway (Switch B) to reply with an RA message immediately.