[Top] [Table Of Contents] [Prev] [Next] [Index]

Hosts        16


This chapter describes how to configure the host table in the nonvolatile RAM of the PortMaster.

Each host attached to an IP network has a unique IP address. The PortMaster supports a local host table to map hostnames to IP addresses. Hostnames are for the convenience of the administrator who uses the command line interface, and to record hostnames entered by users at the host prompt. To avoid confusion and reduce administrative overhead, Lucent recommends using the Domain Name Service (DNS) or Network Information Service (NIS) for hostname resolution rather than using the local host table.

Displaying Host Information

To display information about the host table, use the following command:

Summary of Host Commands

For information on setting the NIS or DNS server and domain, refer to Chapter 3, "Global Commands."

The host table commands in Table 16-1 are used to configure the host table.  
Host Table Commands

Command Syntax

 

add host Ipaddress String

- see page 16-2

delete host Ipaddress|String

- see page 16-2

save host

- see page 16-3

show table host

- see page 16-3

Note ¯ The PortMaster always checks the local host table before using DNS or NIS.

Description of Host Commands

These commands are used to maintain the PortMaster host table.

add host

This command adds a host to the host table.

add host Ipaddress String

Ipaddress

IP address of the host.

String

String of printable characters representing the hostname. Maximum length is 39 characters.

Note ¯ You can add duplicate IP addresses, but hostnames must be unique.

Example

Command> add host 192.168.200.4 chopin
New host entry successfully added

delete host

This command deletes a host from the host table.

delete host Ipaddress|String

Ipaddress

IP address of the host.

String

Hostname.

Note ¯ If you delete a duplicate IP address, the first IP address from the host table will be deleted.

Examples

Command> delete host chopin
Host entry successfully deleted

save host

This command writes the current host table to the nonvolatile RAM of the PortMaster.

save host

Usage

The command can also be entered as save hosts; save all can also be used.

Example

Command> save host
Hosts table successfully saved
New configurations successfully saved.

show table host

This command displays the host table from the PortMaster.

show table host

Example

Command> show table host

192.168.200.4

chopin

172.16.200.3

elgar

 

 



[Top] [Table Of Contents] [Prev] [Next] [Index]

spider@livingston.com
Copyright © 1998, Lucent Technologies. All rights reserved.