Installation manual

Command Manual - Getting Started
Quidway S3000-EI Series Ethernet Switches Chapter 2 System IP Configuration Commands
Huawei Technologies Proprietary
2-19
View
System view
Parameter
hostname: Name of the host, a character string consisting of 1 to 20 characters,
including letters, numbers or "_", and it must contain at least one letter.
ip-address: Specifies the host IP address corresponding to the host name in dotted
decimal notation.
Description
Using ip host command, you can configure the host name and corresponding IP
address. Using undo ip host command, you can cancel the host name and
corresponding IP address.
By default, the host name and corresponding IP address are none.
For the related command, see display ip host.
Example
# Configure the IP address of the host named Lanswtich2 at 10.110.0.2.
[Quidway] ip host Lanswtich2 10.110.0.2
2.1.17 ip route-static
Syntax
ip route-static ip-address { mask | mask-length } { null null-interface-number |
gateway-address } [ preference preference-value ]
undo ip route-static ip-address { mask | mask-length } [ null null-interface-number |
gateway-address ] [ preference preference-value ]
View
System view
Parameter
ip-address: Specifies the destination IP address in dotted decimal notation.
mask: Mask.
mask-length: Mask length. Since "1" s in the 32-bit mask are required to be consecutive,
the mask in dotted decimal format can be replaced by mask-length, which is the
number of the consecutive "1" s in the mask.
null null-interface-number: Specify the NULL interface of the route. The packets sent to
NULL interface, a kind of virtual interface, will be discarded at once. Thus this can
decrease the system load.