HP (Hewlett-Packard) 6208M-SX Switch User Manual


 
Configuring IP
For more information about VLANs and how to configure them, see Configuring VLANs on page 16-1.
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 IP-Subnet_1.1.2.0/24
HP9300(config-vlan-2)# untag e1 to 4
HP9300(config-vlan-2)# router-interface ve1
HP9300(config-vlan-2)# interface ve1
HP9300(config-vif-1)# ip address 1.1.2.1/24
The first two commands in this example create a Layer 3 protocol-based VLAN name IP-Subnet_1.1.2.0/24 and
add a range of untagged ports to the VLAN. The router-interface command creates virtual interface 1 as the
routing interface for the VLAN. The last two commands change to the interface configuration level for the virtual
interface and assign an IP address to the interface.
Syntax: router-interface ve <num>
Syntax: interface ve <num>
The <num> value can be from 1 8.
Syntax: [no] ip address <ip-addr> <ip-mask> [secondary]
or
Syntax: [no] ip address <ip-addr>/<mask-bits> [secondary]
Deleting an IP Address
To delete an IP address, enter a command such as the following:
HP9300(config-if-1/1)# no ip address 1.1.2.1
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:
HP9300(config-if-1/1)# no ip address *
Syntax: no ip address <ip-addr> | *
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