Home > HP > Printer > HP 5500 Ei 5500 Si Switch Series Configuration Guide

HP 5500 Ei 5500 Si Switch Series Configuration Guide

    Download as PDF Print this page Share this page

    Have a look at the manual HP 5500 Ei 5500 Si Switch Series Configuration Guide online for free. It’s possible to download the document as PDF or print. UserManuals.tech offer 1114 HP manuals and user’s guides for free. Share the user manual or guide on Facebook, Twitter or Google+.

    Page
    of 2513
    							 149 
    Enabling the DHCPv6 server 
     
    Step Command Remarks 
    1.  Enter system view. 
    system-view  N/A 
    2.  Enable the DHCPv6 server 
    function.  ipv6 dhcp server enable 
    Disabled by default 
     
    Creating a prefix pool 
    A prefix pool specifies a range of prefixes. 
    To create a prefix pool: 
     
    Step Command Remarks 
    1.  Enter system view. 
    system-view  N/A 
    2.  Create a prefix pool.  ipv6 dhcp prefix-pool 
    prefix-pool-number prefix 
    prefix /prefix-len  assign-len  assign-len   Not configured by default 
     
    Configuring a DHCPv6 address pool 
    You can configure prefixes and other configuration parameters, such as the DNS server address, domain 
    name, SIP server address, domain name of the SIP server, and address family translation router (AFTR) 
    in a DHCPv6 address pool, for the DHCPv6 server to assign them to DHCPv6 clients. 
    Configuration restrictions and guidelines 
    •
      Only one prefix pool can be referenced by an address pool. 
    •   A non-existing prefix pool can be referenced by  an address pool. However, no prefix is available 
    in the prefix pool for dynamic prefix assignment until the prefix pool is created. 
    •   You cannot modify the prefix pool referenced by an address pool, or the preferred lifetime or valid 
    lifetime by using the prefix-pool  command. You must remove the configuration before you can have 
    another prefix pool referenced by the address po ol, or modify the preferred lifetime and valid 
    lifetime. 
    •   You can configure up to eight DNS server addresses, one domain name, eight SIP server addresses, 
    and eight SIP server domain names in an address pool. 
    Configuration procedure 
    To configure a DHCPv6 address pool:  
    Step Command Remarks 
    1.  Enter system view. 
    system-view  N/A 
    2.  Create a DHCPv6 address 
    pool and enter DHCPv6 
    address pool view.  ipv6 dhcp pool
     pool-number   Not configured by default.  
    						
    							 150 
    Step Command Remarks 
    3.  Configure a DHCPv6 address 
    pool. 
    • Configure a static prefix:  
    static-bind prefix  prefix /prefix-len 
    duid  duid  [ iaid  iaid  ] 
    [ preferred-lifetime  preferred-lifetime  
    valid-lifetime  valid-lifetime ]  
    • Apply a prefix pool to the address 
    pool:  
    prefix-pool  prefix-pool-number 
    [ preferred-lifetime  preferred-lifetime 
    valid-lifetime  valid-lifetime  ]  Use either command. 
    No prefix is specified by 
    default. 
    4.
      Configure a DNS server 
    address.  dns-server
     ipv6-address   Optional. 
    Not configured by default. 
    5.
      Configure a domain name. 
    domain-name domain-name   Optional. 
    Not configured by default. 
    6.
      Configure the IPv6 address or 
    domain name of a SIP server.  sip-server
     { address  ipv6-address  | 
    domain-name  domain-name  }  Optional. 
    Not configured by default. 
    7.
      Specify the AFTR address. 
    ds-lite address ipv6-address   Optional. 
    Not specified by default.  
     
    Applying the address pool to an interface 
    After an address pool is applied to an interface, a prefix and other configuration parameters can be 
    selected from the address pool and assigned to the DHCPv6 client requesting through the interface. 
    Follow these guidelines when you apply an address pool to an interface: 
    •
      An interface cannot serve as a DHCPv6 server  and DHCPv6 relay agent at the same time. 
    •   It is not recommended that you enable DHCPv6 se rver and DHCPv6 client on the same interface. 
    •   Only one address pool can be applied to an interface. 
    •   A non-existing address pool can be applied to an interface. However, the server cannot assign any 
    prefix or other configuration information from th e address pool until the address pool is created. 
    •   You cannot modify the address pool applied to an interface or parameters such as the server 
    priority by using the  ipv6 dhcp server apply pool  command. You must remove the applied address 
    pool before you can apply another address pool to  the interface or modify parameters such as the 
    server priority. 
    To apply an address pool to an interface: 
     
    Step Command Remarks 
    1.   Enter system view. 
    system-view  N/A 
    2.  Enter interface view. 
    interface interface-type interface-number  N/A 
    3.  Apply the DHCPv6 address 
    pool to the interface.  ipv6 dhcp server apply pool
     pool-number 
    [ allow-hint  | preference  preference-value 
    |  rapid-commit  ] *  Not configured by default 
      
    						
    							 151 
    Setting the DSCP value for DHCPv6 packets 
     
    Step Command Remarks 
    1.  Enter system view. 
    system-view N/A 
    2.  Set the DSCP value for DHCPv6 
    packets sent by the DHCPv6 server.  ipv6 dhcp dscp
     dscp-value 
    Optional. 
    By default, the DSCP value in 
    DHCPv6 packets is 56. 
     
    Displaying and maintaining the DHCPv6 server 
     
    Task Command Remarks 
    Display the DUID of the local 
    device.  display ipv6 dhcp duid
     [ | { begin  | exclude  | 
    include  } regular-expression ]  Available in any view 
    Display the DHCPv6 address 
    pool information. display ipv6 dhcp pool 
    [ pool-number  ] [ | { begin | 
    exclude  | include  } regular-expression ]  Available in any view 
    Display the prefix pool 
    information. display ipv6 dhcp prefix-pool 
    [ prefix-pool-number  ] 
    [  | { begin | exclude  | include } regular-expression  ] Available in any view 
    Display the DHCPv6 server 
    configuration information.  display ipv6 dhcp server 
    [ interface interface-type 
    interface-number  ] [ | { begin |  exclude | include } 
    regular-expression  ]  Available in any view 
    Display the PD information. display ipv6 dhcp server pd-in-use
     { all | pool  
    pool-number  | prefix  prefix/prefix-len | prefix-pool  
    prefix-pool-number  } [ | { begin  | exclude | 
    include  } regular-expression ]  Available in any view 
    Display packet statistics on the 
    DHCPv6 server. 
    display ipv6 dhcp server statistics
     [ | { begin | 
    exclude  | include  } regular-expression ]  Available in any view 
    Clear PD information on the 
    DHCPv6 server. reset
     ipv6  dhcp  server  pd-in-use  { all | pool  
    pool-number  | prefix  prefix/prefix-len  } Available in user view 
    Clear packets statistics on the 
    DHCPv6 server.  reset ipv6 dhcp server statistics 
    Available in user view 
     
    DHCPv6 server configuration example 
    Network requirements 
    As shown in Figure 66, the  switch serves as a DHCPv6 server, and assigns the IPv6 prefix, DNS server 
    address, domain name, SIP server address, and SIP server domain name to the DHCPv6 clients. The IPv6 
    address of the switch is 1::1/64. 
    The switch assigns prefix 2001:0410:0201::/48 to the client whose DUID is 
    00030001CA0006A40000, and assigns prefixes ranging from 2001:0410::/48 to 
    2001:0410:FFFF::/48 (excluding 2001:0410:0201::/48) to other clients. The DNS server address is 
    2::2:3. The DHCPv6 clients reside in domain aaa.com. The SIP server address is 2:2::4, and the domain 
    name of the SIP server is bbb.com.  
    						
    							 152 
    Configuration considerations 
    To configure the DHCPv6 server: 
    •  Enable IPv6 and DHCPv6 server. 
    •   Create a prefix pool containing prefix 2001:0410::/32 with the length of the assigned prefix being 
    48, so that the server assigns clients the prefixes ranging 2001:0410::/48 to 
    2001:0410:FFFF::/48. 
    •   Create an address pool. Configure a static prefix in the address pool and have the prefix pool 
    referenced by the address pool. Configure other configuration parameters. 
    •   Apply the address pool to the interface through which the server is connected to the clients. 
    Figure 66  Network diagram 
     
     
    Configuration procedure 
    # Enable IPv6 and DHCPv6 server. 
     system-view 
    [Switch] ipv6 
    [Switch] ipv6 dhcp server enable 
    # Configure the IPv6 address of VLAN-interface 2. 
    [Switch] interface vlan-interface 2 
    [Switch-Vlan-interface2] ipv6 address 1::1/64 
    [Switch-Vlan-interface2] quit 
    # Create and configure prefix pool 1. 
    [Switch] ipv6 dhcp prefix-pool 1 prefix 2001:0410::/32 assign-len 48 
    # Create address pool 1. 
    [Switch] ipv6 dhcp pool 1 
    # Apply prefix pool 1 to address pool 1, and set the  preferred lifetime to one day, the valid lifetime to 
    three days. 
    [Switch-ipv6-dhcp-pool-1] prefix-pool 1 preferred-lifetime 86400 valid-l\
    ifetime 259200 
    # Configure static prefix 2001:0410:0201::/48 in address pool 1, and set the client DUID as 
    00030001CA0006A40000, the preferred lifetime to  one day, and the valid lifetime to three days. 
    [Switch-ipv6-dhcp-pool-1] static-bind prefix 2001:0410:0201::/48 duid 
    00030001CA0006A40000 preferred-lifetime 86400 valid-lifetime 259200 
    # Configure the DNS server address as 2:2::3. 
      
    						
    							 153 
    [Switch-ipv6-dhcp-pool-1] dns-server 2:2::3 
    # Configure the domain name as aaa.com. 
    [Switch-ipv6-dhcp-pool-1] domain-name aaa.com 
    # Configure the SIP server address as 2:2::4, and the domain name of the SIP server as bbb.com. 
    [Switch-ipv6-dhcp-pool-1] sip-server address 2:2::4 
    [Switch-ipv6-dhcp-pool-1] sip-server domain-name bbb.com 
    [Switch-ipv6-dhcp-pool-1] quit 
    # Apply address pool 1 to VLAN-interface 2, configure the address pool to support the desired prefix 
    assignment and rapid prefix assignment, and set the precedence to the highest. 
    [Switch] interface vlan-interface 2 
    [Switch-Vlan-interface2] ipv6 dhcp server apply pool 1 allow-hint prefer\
    ence 255 
    rapid-commit 
    Verifying the configuration 
    # Display the DHCPv6 server configuration information on VLAN-interface 2. 
    [Switch-Vlan-interface2] display ipv6 dhcp server interface vlan-interfa\
    ce 2 
    Using pool: 1 
    Preference value: 255 
    Allow-hint: Enabled 
    Rapid-commit: Enabled 
    # Display the information of address pool 1. 
    [Switch-Vlan-interface2] display ipv6 dhcp pool 1 
    DHCPv6 pool: 1 
      Static bindings: 
        DUID: 00030001CA0006A40000 
        IAID: A1A1A1A1 
        Prefix: 2001:410:201::/48 
          preferred lifetime 86400, valid lifetime 2592000 
      Prefix pool: 1 
        preferred lifetime 86400, valid lifetime 2592000 
      DNS server address: 
        2:2::3 
      Domain name: aaa.com 
      SIP server address: 
        2:2::4 
      SIP server domain name: 
        bbb.com 
    # Display the information of prefix pool 1. 
    [Switch-Vlan-interface2] display ipv6 dhcp prefix-pool 1 
    Prefix: 2001:410::/32 
    Assigned length: 48 
    Total prefix number: 65536 
    Available: 65535 
    In-use: 0 
    Static: 1  
    						
    							 154 
    # After the client whose DUID is 00030001CA0006A40000 obtains an IPv6 prefix, display the PD 
    information on the DHCPv6 server. 
    [Switch-Vlan-interface2] display ipv6 dhcp server pd-in-use all 
    Total number = 1 
    Prefix                                      Type      Pool Lease-expirat\
    ion 
    2001:410:201::/48                           Static(C) 1    Jul 10 2009\
     19:45:01 
    # After the other client obtains an IPv6 prefix, display the PD information on the DHCPv6 server. 
    [Switch-Vlan-interface2] display ipv6 dhcp server pd-in-use all 
    Total number = 2 
    Prefix                                      Type      Pool Lease-expirat\
    ion 
    2001:410:201::/48                           Static(C) 1    Jul 10 2009\
     19:45:01 
    2001:410::/48                               Auto(C)   1    Jul 10 2009\
     20:44:05  
    						
    							 155 
    Configuring DHCPv6 relay agent 
    Overview 
    A DHCPv6 client usually uses a multicast address to contact the DHCPv6 server on the local link to obtain 
    an IPv6 address and other configuration parameters. As shown in  Figure 67, if the D
     HCPv6 server 
    resides on another subnet, the DHCPv6 client can contact the server via a DHCPv6 relay agent, so you 
    do not need to deploy a DHCPv6 server on each subnet.  
    Figure 67  Typical DHCPv6 relay agent application 
     
     
    DHCPv6 relay agent operation 
    Figure 68 shows how the DHCPv6 client obtains an IPv6 address and other network configuration 
    parameters from the DHCPv6 server through the DH CPv6 relay agent, using the process of rapid 
    assignment involving two messages. 
    Figure 68  Operating process of a DHCPv6 relay agent 
     
     
    The operation process is as follows: 
    1. The DHCPv6 client sends a Solicit message contai ning the Rapid Commit option to the multicast 
    address FF02::1:2 of all the DHCPv6 servers and relay agents. 
     
    (1) Solicit (contains a Rapid Commit option)
    (4) Reply
    DHCPv6 client DHCPv6 relay agentDHCPv6 server
    (2) Relay-forward
    (3) Relay-reply 
    						
    							 156 
    2.
     
    After receiving the Solicit message, the DHCPv6  relay agent encapsulates the message into the 
    Relay Message option of a Relay-forward message, and sends the message to the DHCPv6 server. 
    3.  After obtaining the Solicit message from the Rela y-forward message, the DHCPv6 server selects an 
    IPv6 address and other required parameters, and adds them to the reply which is encapsulated 
    within the Relay Message option of a Relay-reply message. The DHCPv6 server then sends the 
    Relay-reply message to the DHCPv6 relay agent. 
    4.  The DHCPv6 relay agent obtains the reply from th e Relay-reply message and sends the reply to the 
    DHCPv6 client. 
    The DHCPv6 client uses the IPv6 address and other network parameters assigned by the DHCPv6 server 
    to perform network configuration. 
    Configuring the DHCPv6 relay agent 
    Upon receiving a Solicit message from a DHCPv6 client, the interface that operates as a DHCPv6 relay 
    agent encapsulates the request into a Relay-forward  message and forwards the message to the specified 
    DHCPv6 server, which then assigns an IPv6 address and other configuration parameters to the DHCPv6 
    client. 
    Configuration guidelines 
    Follow these guidelines when you configure the DHCPv6 relay agent: 
    •   Before you configure the DHCPv6 relay agent, enable IPv6 by using the  ipv6 command in system 
    view. 
    •   Executing the  ipv6 dhcp relay server-address  command repeatedly can specify multiple DHCPv6 
    servers. Up to eight DHCPv6 servers can be specified for an interface. After receiving requests from 
    DHCPv6 clients, the DHCPv6 relay agent forwards th e requests to all the specified DHCPv6 servers. 
    •   If the DHCPv6 server address is a link-local addr ess or link-scoped multicast address on the local 
    link, you must specify an outgoing interface using the  interface keyword in the  ipv6 dhcp relay 
    server-address  command. Otherwise, DHCPv6 packets may fail to be forwarded to the DHCPv6 
    server. 
    •   After you remove all the specified DHCPv6 servers from an interface with the  undo ipv6 dhcp relay 
    server-address command, DHCPv6 relay agent is disabled on the interface. 
    •   An interface cannot serve as a DHCPv6 relay  agent and DHCPv6 server at the same time. 
    •   HP does not recommend enabling the DHCPv6 relay agent and DHCPv6 client on the same 
    interface 
    Configuration procedure 
    To configure the DHCPv6 relay agent:  
    Step Command Remarks 
    1.  Enter system view. 
    system-view  N/A 
    2.  Enter interface view.  interface 
    interface-type 
    interface-number   N/A  
    						
    							 157 
    Step Command Remarks 
    3.  Enable DHCPv6 relay agent 
    on the interface and specify a 
    DHCPv6 server.  ipv6 dhcp relay server-address 
    ipv6-address 
    [ interface  interface-type 
    interface-number  ]   By default, DHCPv6 relay 
    agent is disabled and no 
    DHCPv6 server is specified on 
    the interface. 
     
    Setting the DSCP value for DHCPv6 packets 
     
    Step Command Remarks 
    1.
      Enter system view. 
    system-view  N/A 
    2.  Set the DSCP value for 
    DHCPv6 packets sent by 
    the DHCPv6 relay agent.  ipv6 dhcp dscp 
    dscp-value  Optional. 
    By default, the DSCP value in 
    DHCPv6 packets is 56. 
     
    Displaying and maintaining the DHCPv6 relay 
    agent 
     
    Task Command Remarks 
    Display the DUID of the local device. display ipv6 dhcp duid
     [ | { begin  | exclude  | 
    include  } regular-expression ]  Available in any view 
    Display DHCPv6 server addresses 
    specified on the DHCPv6 relay 
    agent. display ipv6 dhcp relay server-address 
    { all  | 
    interface  interface-type interface-number  } [ | 
    {  begin |  exclude | include  } 
    regular-expression  ]  Available in any view
     
    Display packet statistics on the 
    DHCPv6 relay agent. 
    display ipv6 dhcp relay statistics
     [ | { begin | 
    exclude  | include  } regular-expression ]  Available in any view 
    Clear packets statistics on the 
    DHCPv6 relay agent.  reset ipv6 dhcp relay statistics 
    Available in user view 
     
    DHCPv6 relay agent configuration example 
    Network requirements 
    As shown in Figure 69, the net work address prefix of DHCPv6 clients is 1::/64, and the IPv6 address of 
    the DHCPv6 server is 2::2/64. The DHCPv6 client and server need to communicate via a DHCPv6 relay 
    agent (Switch A). 
    Switch A acts as the gateway of network 1::/64. It sends R A messages to notif y the hosts to obtain IPv6 
    addresses and other configuration parameters through DHCPv6.  
    						
    							 158 
    Figure 69 Network diagram 
     
     
    Configuration procedure 
    1. Configure Switch A as a DHCPv6 relay agent: 
    # Enable the IPv6 packet forwarding function. 
     system-view 
    [SwitchA] ipv6 
    # Configure the IPv6 addresses of VLAN-inter face 2 and VLAN-interface 3 respectively. 
    [SwitchA] interface vlan-interface 2 
    [SwitchA-Vlan-interface2] ipv6 address 2::1 64 
    [SwitchA-Vlan-interface2] quit 
    [SwitchA] interface vlan-interface 3 
    [SwitchA-Vlan-interface3] ipv6 address 1::1 64 
    # Enable DHCPv6 relay agent and specify the DH CPv6 server address on VLAN-interface 3. 
    [SwitchA-Vlan-interface3] ipv6 dhcp relay server-address 2::2 
    2. Configure Switch A as a gateway: 
    # Enable Switch A to send RA messages and turn on the M and O flags. 
    [SwitchA-Vlan-interface3] undo ipv6 nd ra halt 
    [SwitchA-Vlan-interface3] ipv6 nd autoconfig managed-address-flag 
    [SwitchA-Vlan-interface3] ipv6 nd autoconfig other-flag 
    Verifying the configuration 
    # Display DHCPv6 server address information on Switch A. 
    [SwitchA-Vlan-interface3] display ipv6 dhcp relay server-address all 
    Interface: Vlan3 
    Server address(es)                             Output Interface 
    2::2 
    # Display packet statistics on the DHCPv6 relay agent. 
    [SwitchA-Vlan-interface3] display ipv6 dhcp relay statistics 
    Packets dropped               :  0 
        Error                     :  0 
        Excess of rate limit      :  0 
    Packets received              :  14  
    						
    All HP manuals Comments (0)

    Related Manuals for HP 5500 Ei 5500 Si Switch Series Configuration Guide