Configuring IP
For more information about VLANs and how to configure them, see “Configuring VLANs” on page
USING THE CLI
To add a virtual interface to a VLAN and configure an IP address on the interface, enter commands such as the following:
HP9300(config)# vlan 2 name
The first two commands in this example create a Layer 3
Syntax:
Syntax: interface ve <num>
The <num> value can be from 1 – 8.
Syntax: [no] ip address
or
Syntax: [no] ip address
Deleting an IP Address
To delete an IP address, enter a command such as the following:
This command deletes IP address 1.1.2.1. You do not need to enter the subnet mask.
To delete all IP addresses from an interface, enter the following command:
Syntax: no ip address
Configuring Domain Name Server (DNS) Resolver
The Domain Name Server (DNS) resolver feature lets you use a host name to perform Telnet, ping, and traceroute commands. You can also define a DNS domain on the device and thereby recognize all hosts within that domain. After you define a domain name, the device automatically appends the appropriate domain to the host and forwards it to the domain name server.
For example, if the domain “newyork.com” is defined on a device and you want to initiate a ping to host “NYC01” on that domain, you need to reference only the host name in the command instead of the host name and its domain name. For example, you could enter either of the following commands to initiate the ping:
HP9300# ping nyc01
HP9300# ping nyc01.newyork.com
Defining a DNS Entry
You can define up to four DNS servers for each DNS entry. The first entry serves as the primary default address. If a query to the primary address fails to be resolved after three attempts, the next gateway address is queried (also up to three times). This process continues for each defined gateway address until the query is resolved. The order in which the default gateway addresses are polled is the same as the order in which you enter them.
USING THE CLI
Suppose you want to define the domain name of newyork.com on a routing switch and then define four possible default DNS gateway addresses. To do so, enter the following commands:
6 - 21