Ip Host; Ip Route-Static - Huawei Quidway S2000 Series Command Manual

Table of Contents

Advertisement

Command Manual - Getting Started
Quidway S2000 Series Ethernet Switches

2.1.11 ip host

Syntax
ip host hostname ip-address
undo ip host hostname [ ip-address ]
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.12 ip route-static

Syntax
ip route-static ip-address { mask | mask-length } { null null-interface-number |
gateway-address } [ preference value ] [ reject | blackhole ]
undo ip route-static ip-address { mask | mask-length } [ null null-interface-number |
gateway-address ] [ preference value ]
View
System view
Parameter
ip-address: Specifies the destination IP address in dotted decimal notation.
mask: Mask.
Chapter 2 System IP Configuration Commands
2-12

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents