Page 3
About This Manual Organization H3C S9500 Series Routing Switches Command Manual is organized as follows: Part Contents 00 Feature List and includes Feature List and Command Index. Command Index includes Ethernet Port Commands, Port Configuration Commands, Link Aggregation Configuration Commands, Port Isolation Configuration...
Page 4
Part Contents includes Command Line Interface Commands, Login and User Interface Commands, FTP and TFTP Commands, Commands, Commands, NetStream Commands, NTP Commands, RMON Commands, SNMP Commands, Packet Statistics Accounting Commands, Device Management 08 System Volume Commands, Configuration File Management Commands, File System Management Commands, Cluster Management Commands, System Maintenance Debugging Commands,...
Page 5
Means reader be careful. Improper operation may cause Caution data loss or damage to equipment. Note Means a complementary description. Related Documentation In addition to this manual, each H3C S9500 Series Routing Switches documentation set includes the following: Manual Description introduces installation...
Page 6
[Technical Support & Document > Product Support > Software]: Provides the documentation released with the software version. Documentation Feedback You can e-mail your comments about product documentation to info@h3c.com. We appreciate your comments.
Page 7
Command Manual H3C S9500 Series Routing Switches IP Services Volume Organization Manual Version T2-08194S-20081225-C-1.24 Product Version S9500-CMW310-R1648 Organization The IP Services Volume is organized as follows: Features (command Description manual) Introduces the commands for ARP configuration. IP Address Introduces the commands for IP address configuration.
Page 9
Command Manual – ARP H3C S9500 Series Routing Switches Table of Contents 3.3.5 display anti-attack arp ..................... 3-7 Chapter 4 IP Packet Attack Prevention Configuration Commands.......... 4-1 4.1 IP Packet Attack Prevention Configuration Commands ............ 4-1 4.1.1 anti-attack ip ......................4-1...
Page 10
Command Manual – ARP H3C S9500 Series Routing Switches Chapter 1 ARP Configuration Commands Chapter 1 ARP Configuration Commands 1.1 ARP Configuration Commands 1.1.1 arp check Syntax arp check enable undo arp check enable View System view Parameters None Description Use the arp check enable command to enable the ARP entry checking function, that is, to disable the switch from creating multicast MAC address ARP entries.
Page 11
Command Manual – ARP H3C S9500 Series Routing Switches Chapter 1 ARP Configuration Commands Parameters None Description Use the arp non-flooding enable command to configure the port not to broadcast received ARP packets in the VLAN to which it belongs.
Page 12
Command Manual – ARP H3C S9500 Series Routing Switches Chapter 1 ARP Configuration Commands II. In VLAN interface view: By default, proxy ARP is disabled. After receiving an ARP request, the device directly sends back an ARP response if the...
Page 13
Command Manual – ARP H3C S9500 Series Routing Switches Chapter 1 ARP Configuration Commands Use the undo arp local-proxy enable command to disable local proxy ARP. After enabled with local proxy ARP, when receiving an ARP request, the device sends back an ARP response directly if the sender and target IP addresses of the ARP request are on the same network segment as the receiving interface.
Page 14
Examples # Configure an ARP entry with the MAC address 000f-e201-0000 and IP address 202.38.10.2. This static ARP entry is on Ethernet 2/1/1 in VLAN 1. [H3C] arp static 202.38.0.10 000f-e201-0000 1 ethernet2/1/1 1.1.6 arp static multi-port Syntax arp static ip-address mac-address vlan-id multi-port interface-type interface-number...
Page 15
Command Manual – ARP H3C S9500 Series Routing Switches Chapter 1 ARP Configuration Commands Parameters ip-address: IP address of the ARP entry. mac-address: MAC address of the ARP entry, in the format of H-H-H. For a multi-outgoing-port ARP entry, this is a multicast MAC address.
Page 18
Examples # Enable the debugging for ARP packets whose source IP address is 8.8.8.1, destination address is 8.8.8.26 and source MAC address is 000a-ebf2-51a8. <H3C> debugging arp packet dip 8.8.8.26 sip 8.8.8.1 smac 000a-ebf2-51a8 dmac 0-0-0 # Disable the debugging.
Page 20
Command Manual – ARP H3C S9500 Series Routing Switches Chapter 1 ARP Configuration Commands Note: The character “.” in a regular expression is a wildcard. So, as for “2.2.2.231”, “2.2.1” matches its sub-string “2.231” and thus the ARP entry with an IP address of 2.2.2.231 is displayed as a matched entry.
Page 21
Command Manual – ARP H3C S9500 Series Routing Switches Chapter 1 ARP Configuration Commands Mac Address :0150-0098-0098 VLAN ARP Port-List : Ethernet6/1/2 Ethernet6/1/3 Ethernet6/1/4 *Ethernet6/1/5 Ethernet6/1/6 Ethernet6/1/7 Ethernet6/1/8 Ethernet6/1/9 Ethernet6/1/1 VPN-Name :Public-ARP When a “*” precedes a port, the port is in the Up state; otherwise, the port is in the Down state.
Page 22
Command Manual – ARP H3C S9500 Series Routing Switches Chapter 1 ARP Configuration Commands View Any view Parameters None Description Use the display arp timer aging command to view the current setting of the dynamic ARP aging timer. Related commands: arp timer aging.
Page 23
Command Manual – ARP H3C S9500 Series Routing Switches Chapter 1 ARP Configuration Commands Table 1-3 Description on the fields of the display debugging arp command Field Description ARP packet debugging switch State of ARP packet debugging Source IP Address...
Page 26
Command Manual – ARP Chapter 2 ARP Table Size Configuration H3C S9500 Series Routing Switches Commands 2.1.2 arp max-aggregation-entry Syntax arp max-aggregation-entry max-aggnum undo arp max-aggregation-entry View System view Parameters max-aggnum: Maximum number of ARP entries with aggregated ports (that is, aggregation ARP entries) supported by each LPU.
Page 27
Command Manual – ARP Chapter 2 ARP Table Size Configuration H3C S9500 Series Routing Switches Commands View System view Parameters 4: Configures the maximum number of ARP entries of the whole switch as 4K (1K = 1024). 64: Configure the maximum number of ARP entries of the whole switch as 64K.
Page 28
Command Manual – ARP Chapter 2 ARP Table Size Configuration H3C S9500 Series Routing Switches Commands Parameters None Description Use the display arp max-entry command to display the maximum numbers of current ARP entries and entries that will take effect after the switch restarts.
Page 30
Command Manual – ARP Chapter 3 ARP Attack Prevention Configuration H3C S9500 Series Routing Switches Commands undo debugging arp entry-check View User view Parameters None Description Use the debugging arp entry-check command to enable ARP spoofing attack prevention debugging. Use the undo debugging arp entry-check command to disable ARP spoofing attack prevention debugging.
Page 31
Command Manual – ARP Chapter 3 ARP Attack Prevention Configuration H3C S9500 Series Routing Switches Commands 3.2 ARP Duplicate Gateway Attack Prevention Configuration Commands 3.2.1 anti-attack gateway-duplicate Syntax anti-attack gateway-duplicate { enable | disable } View System view Parameters enable: Enables ARP duplicate gateway attack prevention. With this function enabled, the switch generates an attack prevention entry after detecting a duplicate gateway address in an ARP packet.
Page 32
Command Manual – ARP Chapter 3 ARP Attack Prevention Configuration H3C S9500 Series Routing Switches Commands View Any view Parameters slotid: Number of the slot where the LPU is located. Description Use the display anti-attack gateway-duplicate command to display information...
Page 34
Command Manual – ARP Chapter 3 ARP Attack Prevention Configuration H3C S9500 Series Routing Switches Commands View System view Parameters time: Aging time, in seconds, for ARP packet attack prevention entries, in the range of 60 to 6000. Description Use the anti-attack arp aging-time command to configure the aging time for ARP packet attack prevention entries.
Page 35
Command Manual – ARP Chapter 3 ARP Attack Prevention Configuration H3C S9500 Series Routing Switches Commands Examples # Specify the protected MAC address for ARP packet attack prevention as 00-11-43-C2-6D-EF. <H3C> system-view System View: return to User View with Ctrl+Z.
Page 36
Command Manual – ARP Chapter 3 ARP Attack Prevention Configuration H3C S9500 Series Routing Switches Commands Parameters slot slotid: Number of the slot where the LPU is located. Description Use the display anti-attack arp command to display information about the ARP packet attack prevention entries of a specified LPU, including the MAC address, VLAN, and port name of the attacker as well as state of the entries.
Page 37
Command Manual – ARP Chapter 4 IP Packet Attack Prevention Configuration H3C S9500 Series Routing Switches Commands Chapter 4 IP Packet Attack Prevention Configuration Commands 4.1 IP Packet Attack Prevention Configuration Commands 4.1.1 anti-attack ip Syntax anti-attack ip { disable | enable }...
Page 38
Command Manual – ARP Chapter 4 IP Packet Attack Prevention Configuration H3C S9500 Series Routing Switches Commands Description Use the anti-attack ttl1 enable command to prevent the delivery of IP packets with the TTL field being 1 to the CPU, thus avoiding such packet attacks.
Command Manual – IP Address H3C S9500 Series Routing Switches Table of Contents Table of Contents Chapter 1 IP Address Configuration Commands............... 1-1 1.1 IP Address Configuration Commands ................1-1 1.1.1 display ip host......................1-1 1.1.2 display ip interface ....................1-2 1.1.3 ip address........................
Command Manual – IP Address H3C S9500 Series Routing Switches Chapter 1 IP Address Configuration Commands Chapter 1 IP Address Configuration Commands 1.1 IP Address Configuration Commands 1.1.1 display ip host Syntax display ip host View Any view Parameters None...
Command Manual – IP Address H3C S9500 Series Routing Switches Chapter 1 IP Address Configuration Commands Field Description ICMP packet input number Echo reply: Unreachable: Source quench: Total received ICMP packets, including: Routing redirect: Echo reply packets, unreachable Echo request:...
Page 44
Command Manual – IP Address H3C S9500 Series Routing Switches Chapter 1 IP Address Configuration Commands forward: Forwards directed broadcasts in the VLAN where the configured IP address resides. drop: Drops directed broadcasts destined for the VLAN where the configured IP address resides.
Command Manual – IP Address H3C S9500 Series Routing Switches Chapter 1 IP Address Configuration Commands Note: If you re-configure an IP address for a VLAN-interface and the new IP address is not in the same network segment as the previous one, the system will display whether to continue.
Command Manual – IP Address H3C S9500 Series Routing Switches Chapter 1 IP Address Configuration Commands View System view Parameters hostname: Name of the host. It is a character string that consists of 1 to 20 characters, including letters, numbers, "_", or ",", and it must contain at least one letter.
Page 47
Command Manual – IP Address H3C S9500 Series Routing Switches Chapter 1 IP Address Configuration Commands By default, IP address protection is disabled. You can use the display this command to view the status of IP address protection (enabled/disabled) for the current VLAN interface.
Page 50
Command Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Commands Parameters vlan-interface: Displays the VRRP status information of a specified interface. interface-number: Specifies an interface by its number. virtual-route-identifier: VRRP virtual router ID. ifm: Displays the configuration information of the IP forwarding module (IFM) device that runs VRRP.
If the interface name and virtual router ID are specified, the statistics information about the specified virtual router on the interface will be displayed. Examples # Display the VRRP statistics information on VLAN-interface 2. <H3C> display vrrp statistics interface vlan-interface 2 Interface : Vlan-interface2 VRID...
Command Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Commands Table 1-2 Description on the fields of the display vrrp statistics command Field Description Interface Interface to which the virtual router is attached VRID ID of the virtual router...
Page 54
Examples # Display the VRRP status information on VLAN-interface 1 of the switch. [H3C-Vlan-interface1] display vrrp verbose interface vlan-interface 1 Run Method : VIRTUAL-MAC Virtual Ip Ping : Disable...
Command Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Commands Field Description Auth Type Type of authentication Virtual IP Virtual IP address list of the virtual router Master IP IP address of the master of the VRRP group 1.1.6 reset vrrp statistics...
Command Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Commands Parameters None Description Use the vrrp log-state command to enable the logging of VRRP group state changes. Use the undo vrrp log-state command to disable the logging.
Command Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Commands Note that: You should specify the mapping mode before configuring the virtual router. Otherwise, you cannot specify the mapping mode. Examples # Specify the mapping mode between the real MAC address of the interface and the virtual IP address of the virtual router.
By default, no authentication is configured. Note that an authentication key is case sensitive. Examples # Set authentication mode simple and authentication key H3C for VRRP virtual router 1 on VLAN-interface 2. <H3C> system-view [H3C] interface vlan-interface 2 [H3C-Vlan-interface2] vrrp vrid 1 authentication-mode simple H3C 1.1.12 vrrp vrid fast-switch...
Command Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Commands By default, the fast switch function for a virtual router in backup state is disabled. Note: After the vrrp vrid fast-switch command is executed, the vrrp vrid virtual-router-id preempt-mode timer command does not take effect.
The same interval must be set for members in a VRRP group. Examples # Configure the master to transmit VRRP packets every 15 seconds. [H3C-vlan-interface2] vrrp vrid 1 timer advertise 15 1.1.17 vrrp vrid track Syntax vrrp vrid virtual-router-id track { ifm [ increased value-increased ] | interface...
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Chapter 1 DHCP Configuration Commands 1.1 General DHCP Configuration Commands 1.1.1 dhcp enable Syntax dhcp enable undo dhcp enable View System view Parameters None Description Use the dhcp enable command to enable DHCP.
Page 69
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands undo dhcp select { interface vlan-interface vlan-id [ to vlan-interface vlan-id ] | all } View VLAN interface view, system view Parameters global: Specifies to forward DHCP packets to the local DHCP server and let the local server assign IP addresses in global address pools to DHCP clients.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands System View: return to User View with Ctrl+Z. [H3C] interface vlan-interface 1 [H3C-Vlan-interface1] dhcp select global 1.1.3 dhcp server detect Syntax dhcp server detect undo dhcp server detect...
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands error: Enables/disables error debugging for the DHCP server, including errors that occur when the DHCP server processes DHCP packets or assigns IP addresses. event: Enables/disables event debugging for the DHCP server, including the assigning of IP addresses and timing out of ping packets.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Forbidden IP Range from 17.9.0.8 17.9.255.254 1.2.3 dhcp server dns-list Syntax In VLAN interface view: dhcp server dns-list ip-address [ ip-address ] undo dhcp server dns-list { ip-address | all }...
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Examples # Configure the DNS server address 1.1.1.254 for the DHCP address pool of VLAN-interface 1. <H3C> system-view System View: return to User View with Ctrl+Z.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Examples # Configure the DHCP client domain name of the DHCP address pool of the current VLAN interface as vlan-interface1.com. <H3C> system-view System View: return to User View with Ctrl+Z.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Related commands: expired. Examples # Set the unlimited IP address lease time for the DHCP address pool of VLAN-interface 1. <H3C> system-view System View: return to User View with Ctrl+Z.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands 1.2.7 dhcp server ip-pool Syntax dhcp server ip-pool pool-name undo dhcp server ip-pool pool-name View System view Parameters pool-name: Name of the address pool, a string that is of 1 to 64 characters in length. An address pool name uniquely identifies an address pool.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands View VLAN interface view, system view Parameters ip-address: NetBIOS server IP address. You can specify up to eight IP addresses (separated by spaces) in one command.
Chapter 1 DHCP Configuration Commands System View: return to User View with Ctrl+Z. [H3C] interface vlan-interface 1 [H3C-Vlan-interface1] dhcp server option 100 hex 11 22 1.2.11 dhcp server ping Syntax dhcp server ping { packets number | timeout milliseconds }...
VLAN interface address pool only supports one-to-one MAC-IP binding. Examples # Statically bind the IP address 10.1.1.1 to the MAC address 0000-e03f-0305. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] interface vlan-interface 1 [H3C-Vlan-interface1] dhcp server static-bind ip-address 10.1.1.1 mac-address 0000-e03f-0305 1-14...
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands 1.2.13 display dhcp server conflict Syntax display dhcp server conflict { all | ip ip-address } View Any view Parameters all: Specifies all IP addresses. ip ip-address: Specifies an IP address.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands pool [ pool-name ]: Specifies a global address pool. If you do not input a pool-name, all global address pools are included. interface [ vlan-interface vlan-id ]: Specifies a VLAN interface address pool. If you do not input a vlan-id, all VLAN interface address pools are included.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Parameters None Description Use the display dhcp server free-ip command to display the ranges of available (unassigned) IP addresses in DHCP address pools. Examples # Display the ranges of available (unassigned) IP addresses in DHCP address pools.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands <H3C> display dhcp server ip-in-use all Global pool: IP address Hardware address Lease expiration Type 2.2.2.2 4444-4444-4444 NOT Used Manual Interface pool: IP address Hardware address...
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Field Description Boot Reply: Dhcp Offer: Total and categorized DHCP packets sent by the DHCP server Dhcp Ack: Dhcp Nak: Bad Messages Number of bad DHCP packets 1.2.18 display dhcp server tree...
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Field Description The address pool named 6 is a child node of the one named 5 Based on the node position of the address pool named 5,...
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Description Use the dns-list command to configure one or more DNS server IP addresses for a global DHCP address pool. Use the undo dns-list command to remove one or all DNS server IP addresses configured for a global DHCP address pool.
# Set the IP address lease time of the global DHCP address pool 0 to one day plus two hours and three minutes. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] dhcp server ip-pool 0 [H3C-dhcp-0] expired day 1 hour 2 minute 3 1-24...
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands 1.2.22 gateway-list Syntax gateway-list ip-address [ ip-address ] undo gateway-list { ip-address | all } View DHCP address pool view Parameters ip-address: IP address of an outbound gateway. You can specify up to eight IP addresses (separated by spaces) in one command.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Parameters ip-address: IP address of a NetBIOS server. You can specify up to eight IP addresses (separated by spaces) in one command. all: Specifies all configured NetBIOS server IP addresses.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands m-node: Specifies the NetBIOS node type of DHCP clients to be m-node (m stands for mixed). Nodes of this type are p nodes which take some broadcast features.
Page 95
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Description Use the network command to configure an address range for dynamic IP address assignment. Use the undo network command to remove the address range configured for dynamic IP address assignment.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Use the undo option command to remove a custom DHCP option configured for the global DHCP address pool. If you execute the option command multiple times, the new configurations overwrite the corresponding old ones Related commands: dhcp server ip-pool, dhcp server option.
DHCP addresses. Related commands: display dhcp server ip-in-use. Examples # Clear the binding entries that contain the IP address of 10.110.1.1. <H3C> reset dhcp server ip-in-use ip 10.110.1.1 1.2.29 reset dhcp server statistics Syntax reset dhcp server statistics...
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands 1.2.31 static-bind mac-address Syntax static-bind mac-address mac-address undo static-bind mac-address View DHCP address pool view Parameters mac-address: MAC address to be bound. Description Use the static-bind mac-address command to specify the MAC address to be statically bound.
Page 100
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands View User view Parameters all: Enables all types of debugging. packet: Enables debugging for packets. error: Enables debugging for error messages. event: Enables debugging for events.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Table 1-6 Description on the fields of the debugging dhcp-relay command Field Description Interface The VLAN interface that forwards DHCP packets Type Type of the forwarded DHCP packet...
# Configure a user address entry for a DHCP server, with an IP address of 1.1.1.1 and a MAC address of 0005-5D02-F2B3. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] dhcp relay security 1.1.1.1 0005-5D02-F2B3 static 1.3.4 dhcp relay security address-check Syntax dhcp relay security address-check { enable | disable }...
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Description Use the dhcp relay security address-check enable command to enable security address checking on a VLAN interface. Use the dhcp relay security address-check disable command to disable security address checking on a VLAN interface.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Description Use the dhcp server detect command to enable fake DHCP server detecting. Use the undo dhcp server detect command to disable fake DHCP server detecting.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands View Any view Parameters None Description Use the display dhcp relay security tracker command to display information about whether the function of handshake between the DHCP relay agent and the DHCP server is enabled and the interval at which DHCP relay agent dynamic user address entries are refreshed.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Use the undo ip relay address command to remove the DHCP server configured for the VLAN interface to forward DHCP packets. No DHCP server is configured for a VLAN interface by default.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands 1.4 DHCP Option 82 Configuration Commands 1.4.1 dhcp relay information enable Syntax To enable the Option 82 function on a VLAN interface in VLAN interface view:...
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands [H3C-Vlan-interface1] undo dhcp relay information enable 1.4.2 dhcp relay information format Syntax dhcp relay information format { normal | verbose } undo dhcp relay information format...
<H3C> system-view System View: return to User View with Ctrl+Z [H3C]interface vlan1 [H3C-Vlan-interface1] dhcp relay information format verbose node-identifier sysname # Restore the default node identifier of the user when the mode of relay agent Option 82 on VLAN-interface 1 is fixed network mode.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands keep: Indicates that the DHCP relay agent does not change Option 82 in packets. replace: Indicates that the DHCP relay agent replaces Option 82 in packets with its own Option 82.
[H3C] dhcp server relay information enable # Disable the DHCP server from returning Option 82 carried in the request packets to the DHCP relay agent. [H3C] undo dhcp server relay information enable 1.5 DHCP Snooping Configuration Commands 1.5.1 debugging dhcp-snooping...
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Description Use the debugging dhcp-snooping command to enable DHCP snooping debugging. Use the undo debugging dhcp-snooping command to disable DHCP snooping debugging. By default, DHCP snooping debugging is disabled.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Caution: The DHCP snooping configuration on a VLAN, and DHCP relay agent or DHCP server configuration on the corresponding VLAN interface are mutually exclusive. You need to disable the DHCP relay agent or DHCP server function on the VLAN interface to make the DHCP snooping function take effect.
# Configure a static DHCP snooping entry, including IP address 10.15.178.30, MAC address 00e0-f000-030d, VLAN 10, and physical port Ethernet 3/1/4. <H3C> system-view [H3C] dhcp-snooping entry ip 10.15.178.30 mac 00e0-f000-030d vlan 10 interface ethernet 3/1/4 1.5.7 dhcp-snooping information enable Syntax...
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Caution: This command can be executed only after DHCP snooping is enabled on the VLAN. Examples # Configure DHCP snooping to support Option 82 for VLAN 2.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Caution: This command can be used only after the DHCP snooping Option 82 support is enabled for the VLAN. If the Option 82 is padded with the device name (sysname), the sysname must contain no spaces or special characters (such as forward slashes).
[H3C] vlan 2 [H3C-vlan2] dhcp-snooping enable [H3C-vlan2] dhcp-snooping information enable [H3C-vlan2] dhcp-snooping information format verbose [H3C-vlan2] dhcp-snooping information format verbose node-identifier sysname 1.5.10 dhcp-snooping information strategy Syntax dhcp-snooping information strategy { drop | keep | replace } undo dhcp-snooping information strategy...
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Use the undo dhcp-snooping information strategy command to restore the default. By default, the handling strategy for Option 82 in DHCP requests for the VLAN is replace.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Description Use the dhcp-snooping security check enable command to enable the DHCP snooping security check function. Use the undo dhcp-snooping security check enable command to disable the function.
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Parameters None Description Use the dhcp-snooping trust command to configure the port as a trusted port. Use the undo dhcp-snooping trust command to restore the default state.
Page 126
Command Manual – DHCP H3C S9500 Series Routing Switches Chapter 1 DHCP Configuration Commands Parameters mac-address: MAC address. vlan-id: VLAN ID. ip-address: IP address. port-type port-number: Specifies a port by its type and number. group-id: Aggregation group ID. dynamic: Dynamic DHCP snooping entries.
Page 127
Command Manual – DNS H3C S9500 Series Routing Switches Table of Contents Table of Contents Chapter 1 DNS Configuration Commands .................. 1-1 1.1 Static DNS Configuration Commands ................1-1 1.1.1 ip host........................1-1 1.1.2 display ip host......................1-1 1.2 Dynamic DNS Configuration Commands ................1-2 1.2.1 debugging dns......................
Command Manual – DNS H3C S9500 Series Routing Switches Chapter 1 DNS Configuration Commands Chapter 1 DNS Configuration Commands 1.1 Static DNS Configuration Commands 1.1.1 ip host Syntax ip host hostname ip-address undo ip host hostname [ ip-address ] View...
Command Manual – DNS H3C S9500 Series Routing Switches Chapter 1 DNS Configuration Commands Parameters None Description Use the display ip host command to view all the host names and the corresponding IP addresses. Examples # Display all host names and the corresponding IP addresses of the hosts.
Command Manual – DNS H3C S9500 Series Routing Switches Chapter 1 DNS Configuration Commands By default, DNS debugging is disabled. Examples # Enable DNS debugging <H3C> debugging dns 1.2.2 display dns domain Syntax display dns domain View Any view Parameters...
Command Manual – DNS H3C S9500 Series Routing Switches Chapter 1 DNS Configuration Commands Parameters None Description Use the display dns dynamic-host command to view the dynamic domain name buffer. Examples # View the dynamic domain name buffer. <H3C> display dns dynamic-host...
Command Manual – DNS H3C S9500 Series Routing Switches Chapter 1 DNS Configuration Commands Examples # View the related information of the domain name server. <H3C> display dns server Domain-server Ipaddress 172.16.1.1 172.16.1.2 Table 1-4 Description on the fields of the display dns server command...
Command Manual – DNS H3C S9500 Series Routing Switches Chapter 1 DNS Configuration Commands 1.2.6 dns resolve Syntax dns resolve undo dns resolve View System view Parameters None Description Use the dns resolve command to enable the dynamic domain name resolution function.
Command Manual – DNS H3C S9500 Series Routing Switches Chapter 1 DNS Configuration Commands The system supports up to six domain name server. To delete the domain name server, input the IP address, and the specific server is deleted. Otherwise, all of the servers are deleted.
Use the display udp-helper port command to display the configuration of the global UDP ports. Examples # Display the information of the destination server corresponding to VLAN-interface 1. <H3C> display udp-helper server interface vlan-interface 1 interface name server address packets sent Vlan-interface1 192.1.1.2...
Command Manual – UDP Helper H3C S9500 Series Routing Switches Chapter 1 UDP Helper Configuration Commands [H3C] udp-helper port dns 1.1.5 udp-helper server Syntax udp-helper server ip-address undo udp-helper server [ ip-address ] View VLAN interface view Parameters ip-address: IP address of the destination server, in dotted decimal notation. This argument can be the address of a host or the broadcast address of a subnet.
Command Manual – NAT H3C S9500 Series Routing Switches Chapter 1 NAT Configuration Commands View Any view Parameters None Description Use the display nat aging-time command to display the aging time of a NAT entry. Examples # View the aging times of the NAT entries of various protocols.
Command Manual – NAT H3C S9500 Series Routing Switches Chapter 1 NAT Configuration Commands --0 entry found-- NAT outbound information: No interfaces have been configured for NAT --0 entry found-- Server in private network information: No internal servers have been configured...
Rate control limit uses special configuration. # Display the blacklist configurations and operation states for IP address 100.0.0.3 in VPN1. <H3C> display nat blacklist vpn-instance vpn1 ip 100.0.0.3 slot 4 Blacklist function global configuration: Blacklist function is started. Connection amount control is enabled.
STATIC NAT session table count entries Note: In PTA mode, hardware of S9500 series switches creates a positive stream and a reversed stream (which is used for reversed PAT) when creating a stream. However, the NAT log exports the positive stream only.
Command Manual – NAT H3C S9500 Series Routing Switches Chapter 1 NAT Configuration Commands vpn-instance: Queries the maximum number of users and connections of the specified VPN. vpn-name: Name of a VPN instance. Description Use the display nat vpn limit command to display the maximum number of users and connections of all the VPNs or the specified VPN of NAT.
Page 150
# Configure address pool 2 with addresses 203.110.10.10 to 203.110.10.110, and the description character string is teacher. <H3C> system-view [H3C] nat address-group 2 203.110.10.10 203.110.10.110 description teacher # Modify the description character string of address group 2 to teacher&student. <H3C> system-view [H3C] nat address-group 2 description teacher&student...
Command Manual – NAT H3C S9500 Series Routing Switches Chapter 1 NAT Configuration Commands Parameters None Description Use the nat auto-reset-session command to enable the NAT session table auto-reset function when a NAT enabled VLAN interface goes up or down.
# Set the threshold value for the number of connections to the IP address 100.0.0.1 in the private network VPN1. <H3C> system-view [H3C] nat blacklist limit amount vpn-instance vpn1 source 100.0.0.1 2222 1.1.17 nat blacklist limit rate Syntax nat blacklist limit rate [ source ip ] cir cir-value [ cbs burst-size ] [ ebs burst-size ]...
[H3C] nat blacklist limit rate cir 20 cbs 1799 ebs 40 # Set the special threshold value for the rate of link set-up <H3C> system-view [H3C] nat blacklist limit rate source ip cir 20 cbs 1799 ebs 40 1.1.18 nat blacklist limit rate source Syntax...
Page 157
[H3C] nat blacklist limit rate source 2.2.2.2 # Use the special threshold value to control the rate of link set-up of the user 200.0.0.1 in the private network VPN1. <H3C> system-view [H3C] nat blacklist limit rate vpn-instance vpn1 source 200.0.0.1 1-17...
Page 159
NAT. The address will be translated into one of address pool 1. [H3C] interface Vlan-interface 2 [H3C-Vlan-interface2] nat outbound 3000 address-group 1 slot 3 # Configure to use one-to-one NAT (do not use TCP/UDP port information for NAT). [H3C-Vlan-interface2] nat outbound 3000 address-group 1 no-pat slot 3 1-19...
Page 160
# Customize a flow template, and then apply it to Ethernet 4/1/1. The interface card is located in slot 4. For details about flow template, refer to Defining and Applying Flow Template in ACL Configuration of the QoS ACL Volume. [H3C] flow-template user-defined slot 4 sip 0.0.0.0 dip 0.0.0.0 dmac 0-0-0 vlanid [H3C] interface Ethernet4/1/1...
Command Manual – NAT H3C S9500 Series Routing Switches Chapter 1 NAT Configuration Commands 1.1.20 nat server Syntax nat server protocol { tcp | udp } global global-addr global-port inside [ vpn-name ] host-addr host-port slot slot-no undo nat server protocol { tcp | udp } global global-addr global-port inside...
Page 162
Command Manual – NAT H3C S9500 Series Routing Switches Chapter 1 NAT Configuration Commands host-addr1 host-addr2: Specifies an address scope of internal hosts that corresponds to the address range of external service port numbers. host-addr2 must be bigger than host-addr1. The number of the address scope must be the same as the number of external service ports.
Page 163
202.110.10.12. Suppose that VLAN-interface 2 is connected to the ISP. <H3C> system-view [H3C] interface Vlan-interface 2 [H3C-Vlan-interface2] nat server protocol tcp global 202.110.10.10 8080 inside VPN1 10.110.10.10 www slot 3 [H3C-Vlan-interface2] nat server protocol tcp global 202.110.10.10 ftp inside VPN1 10.110.10.10 ftp slot 3...
[H3C-acl-adv-3001] quit # Customize a flow template, and then apply the flow template to Ethernet 4/1/1. The interface card is located in slot 4. [H3C] flow-template user-defined slot 4 sip 0.0.0.0 dip 0.0.0.0 dmac 0-0-0 vlanid [H3C] interface Ethernet4/1/1 [H3C-Ethernet4/1/1] flow-template user-defined # Reference the ACLs to redirect the packets that needs to be translated to the NAT LPU.
Page 166
10.110.10.10 slot 3 # Configure ACL 3001. [H3C] acl number 3001 [H3C-acl-adv-3001] rule permit ip source 10.110.10.10 0.0.0.0 [H3C-acl-adv-3001] quit # Reference ACL 3001 to redirect packets that are to be serviced by NAT to the NAT board. Ethernet 4/1/1 is connected to the private network, and 192 is the corresponding VLAN ID.
The maximum numbers of users and connections in a VPN does not apply to the NO-PAT mode. Examples # Configure the maximum numbers of users and connections in a VPN. . <H3C> system-view [H3C] nat vpn limit vpn-instance test 5000 5500 1.1.23 reset nat session Syntax reset nat session slot slot-no View...
Use the display ip userlog export command to display configurations and statistics of system logging. Examples # Display configurations of NAT logging. <H3C> display ip userlog export slot 3 NAT: IP userlog export is not enabled Version 1 export is enabled Export logs to 0.0.0.0 (Port: 0)
The ACL for NAT logging supports the SIP and DIP fields only. Examples # Employ ACL 2000 as the logging rule, and enable NAT logging. <H3C> system-view [H3C] ip userlog nat slot 3 acl 2000 1.2.3 ip userlog nat active-time Syntax ip userlog nat active-time minutes...
# Set the destination address and UDP port number of log packets to 169.254.1.1 and 200 respectively. <H3C> system-view [H3C] ip userlog nat export host 169.254.1.1 200 1.2.5 ip userlog nat export source-ip Syntax ip userlog nat export source-ip src-address...
IP address of log packets. Examples # Set the source IP address of log packets to 169.254.1.1. <H3C> system-view [H3C] ip userlog nat export source-ip 169.254.1.1 1.2.6 ip userlog nat export version Syntax ip userlog nat export version version-number undo ip userlog nat export version...
Page 173
Command Manual – NAT H3C S9500 Series Routing Switches Chapter 1 NAT Configuration Commands Parameters None Description Use the ip userlog nat mode flow-begin command to enable the NAT server logging when an NAT connection is established and deleted. Use the undo ip userlog nat mode flow-begin command to restore the default logging mode.
Page 174
Command Manual – IP Performance H3C S9500 Series Routing Switches Table of Contents Table of Contents Chapter 1 IP Performance Configuration Commands ............... 1-1 1.1 IP Performance Configuration Commands................ 1-1 1.1.1 display fib ........................ 1-1 1.1.2 display fib [ all ] ip-address [ longer ]............... 1-2 1.1.3 display fib acl......................
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands Chapter 1 IP Performance Configuration Commands 1.1 IP Performance Configuration Commands 1.1.1 display fib Syntax display fib [ all ] View Any view Parameters all: Displays all the entries, including inactive ones, in the forwarding information base (FIB).
Nexthop Flag TimeStamp Interface 169.253.0.0/16 2.1.1.1 t[0] Vlan-interface1 # Display the FIB entries whose destination addresses are in the range of 169.254.0.0/16 to 169.254.0.6/16. <H3C> display fib 169.254.0.0 255.255.0.0 169.254.0.6 255.255.0.0 Destination/Mask Nexthop Flag TimeStamp Interface 169.254.0.1/16 2.1.1.1 t[0] Vlan-interface1...
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands Parameters all: Displays all the entries, including inactive ones, in the FIB. number: ACL in number form, in the range 2000 to 2999 name: ACL in name form, a string of 1 to 32 characters.
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands <H3C> display fib | begin 169.254.0.0 Destination/Mask Nexthop Flag TimeStamp Interface 169.254.0.0/16 2.1.1.1 t[0] Vlan-interface1 2.0.0.0/16 2.1.1.1 t[0] Vlan-interface1 For the descriptions of the displayed fields, refer to Table 1-1.
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands Parameters all: Specifies to display all the entries, including inactive ones, in the FIB. Description Use the display fib [ all ] statistics command to display the total number of FIB entries.
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands Output:echo destination unreachable 0 source quench 0 redirects echo reply parameter problem timestamp information reply mask requests 0 mask replies time exceeded 0 Table 1-2 Description on the fields of the display icmp statistics command...
Page 182
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands socket-id: The ID of a socket, with the value ranging from 0 to 3072. Description Use the display ip socket command to display the information about the sockets in the current system.
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands Field Description socket option The option of the socket socket state The state of the socket 1.1.9 display ip statistics Syntax display ip statistics...
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands Table 1-4 Description on the fields of the display ip statistics command Field Description Sum of input packets Number of received packets whose destination is...
Page 185
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands Description Use the display tcp statistics command to view the statistics information about TCP packets. Related commands: display tcp status, reset tcp statistics. Examples # View statistics about TCP packets.
Page 186
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands Table 1-5 Description on the fields of the display tcp statistics command Field Description Received packets Information followed is about received packets Total:753 Total number of received packets: 753...
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands Field Description Number of retransmitted timeout events: 0 Retransmitted timeout: 0, Number of connections dropped due to the connections dropped in number of retransmitted timeout events...
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands 03e37dc4 0.0.0.0:4001 0.0.0.0:0 Listening 04217174 100.0.0.204:23 100.0.0.253:65508 Established The displayed information indicates that a TCP connection is established. The local IP address of this TCP connection is 100.0.0.204, and the local port number is 23. The remote IP address is 100.0.0.253, and the remote port number is 65508.
Page 189
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands Table 1-6 Description on the fields of the display udp statistics command Field Description Received packet: Total received UDP packets: 0 Total: 0 checksum error: 0...
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands Examples # Configure the switch to send a “time exceeded” ICMP error packet to the IP packet sender when the switch receives a packet whose TTL is “1”.
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands When the TCP connection state changes from FIN_WAIT_1 to FIN_WAIT_2, the finwait timer is enabled. If the switch does not receive FIN packets before the finwait timer times out, the TCP connection is terminated.
Command Manual – IP Performance Chapter 1 IP Performance Configuration H3C S9500 Series Routing Switches Commands 1.1.19 tcp window Syntax tcp window window-size undo tcp window View System view Parameters window-size: The size of the sending and receiving buffers measured in kilobytes (KB), whose value ranges from 1 to 32.
Page 195
Command Manual – URPF H3C S9500 Series Routing Switches Chapter 1 URPF Configuration Commands Chapter 1 URPF Configuration Commands Note: The service processor boards mentioned in this chapter refer to LSBM1NAMB0 boards. 1.1 URPF Configuration Commands 1.1.1 display urpf Syntax...
Page 196
Command Manual – URPF H3C S9500 Series Routing Switches Chapter 1 URPF Configuration Commands 1.1.2 reset urpf statistic Syntax reset urpf statistic View VLAN interface view Parameters None Description Use the reset urpf statistic command to clear URPF statistical counters to zero.
Page 197
Command Manual – URPF H3C S9500 Series Routing Switches Chapter 1 URPF Configuration Commands After the urpf enable command is configured, you need to configure packet redirection in Ethernet port view to redirect the packets needing URPF check to boards with URPF function (the LSBM1NAMB0 board).
Need help?
Do you have a question about the S9500 Series and is the answer not in the manual?
Questions and answers