: config static host
Focus
Focus

config static host

Table of Contents

config static host

Use the config static host command to add or remove a static entries from the static host configuration file. To add a static host entry, provide an IP address and a single hostname or comma-separated multiple hostnames. To remove an entry, provide an IP address and a single hostname to remove only the specific hostname mapped to the IP address.

Command

config static host ( add ip IPADDR= host IP address | remove ( ip | name))

Options

ipEnter the IP address to add or remove a static entries from the static host configuration file.
(Optional) nameWhen removing a static host, enter a single host name for the IP address.

Command Notes

RoleSuper
Related Commands
dump static host config
Introduced inRelease 4.4.1

Example

config static host add ip 172.20.75.115 name www.test1.com,www.test2.com dump static host config Address Hosts 172.20.75.113 controller.cgnx.net 172.20.75.114 mfg.cgnx.net 172.20.75.115 www.test1.com www.test2.com config static host remove ip 172.20.75.115 name www.test1.com dump static host config Address Hosts 172.20.75.113 controller.cgnx.net 172.20.75.114 mfg.cgnx.net 172.20.75.115 www.test2.com config static host remove ip 172.20.75.115 dump static host config Address Hosts 172.20.75.113 controller.cgnx.net 172.20.75.114 mfg.cgnx.net