ive IP
ong w
and the others are secondary IP addresses. A newly specified primary IP address overwrites the
previous one if there is any.
mary and secondary IP addresses of an interface cannot reside on the same network
segment; the IP address of a VLAN interface must not be on the same network segment as that of
e has been
configured to obtain an IP address through BOOTP or DHCP.
You can assign at most f
address to an interface, am
hich one is the primary IP address
The pri
a loopback interface on a device.
A VLAN interface cannot be configured with a secondary IP address if the interfac
Follow these step
nfigure static domain name re
Configuring Static Domain Name Resolution
s to co
solution:
To do…
Use the command…
Remarks
Enter system view
syste
—
m-view
Configure a mapping between a
host name and an IP address
ip
host
hostname ip-addres
Required
s
No IP address is assigned to a host
name by default.
The IP address you assign to a host name last time will overwrite the previous one if there is any.
to 50 static mappings between domain names and IP addresses.
You may create up
Displaying IP Addressing Configuration
To do…
Use the command…
Remarks
Display static DNS database
display ip host
Display information about a specified or
all Layer 3 interfaces
display ip interface
[
interface-type
interface-number
]
ormation
display ip interface
brief
[
interface-type
-number
]
]
Available in any
view
Display brief configuration inf
about a specified or all Layer 3 interfaces
[
interface
IP Address Configuration Examples
IP Address Configuration Example I
Network requirement
Assign IP address 129.2.2.1 with mask 255.255.255.0 to VLAN-interface 1 of the switch.
8-4