static-host
This command manages host-address maps.
Syntax
static-host host address
no static-host host
no static-host *
Parameters
- host
- Specifies the host name.
- address
- Specifies the IP address of the host.
*
- Specifies all hosts.
Guidelines
The static-host command manages host-address maps.
Use the no static-host command to remove a host-address map or all host-address maps.
This command is equivalent to the Global ip host command.
Examples
- Map host
loki-v4
to address10.10.10.168
.# static-host loki-v4 10.10.10.168
- Map host
loki-v6
to addressFEDC:BA98:7654:3210:C:BA98:7654:3210
.# static-host loki-v6 FEDC:BA98:7654:3210:C:BA98:7654:3210
- Delete the map for host
loki-v4
.# no static-host loki-v4
- Delete all maps.
# no static-host *