
Configuring IP Address
61
Perform the following configuration in VLAN interface view.
The network ID of an IP address is identified by the mask. For example, the IP
address of a VLAN interface is 129.9.30.42 and the mask is 255.255.0.0. After
performing the AND operation for the IP address and the mask, you can assign
that device to the network segment 129.9.0.0.
Generally, it is sufficient to configure one IP address for an interface. However, you
can also configure more than one IP address for an interface so that it can be
connected to several subnets. Among these IP addresses, one is the primary IP
address and all others are secondary.
By default, the IP address of a VLAN interface is null.
Displaying and Debugging an IP Address
Use the
display
command in all views to display the IP address configuration on
interfaces, and to verify configuration.
Example: Configuring
an IP Address
Configure the IP address as 129.2.2.1 and sub-net mask as 255.255.255.0 for the
VLAN interface 1 of the Ethernet Switch.
Figure 1
IP Address Configuration Networking
1
Enter VLAN interface 1.
[SW7700]
interface vlan 1
2
Configure the IP address for VLAN interface 1.
Table 2
Configure IP Address for a VLAN Interface
Operation
Command
Configure IP address for a VLAN interface
ip address
ip-address net-mask
[
sub
]
Delete the IP address of a VLAN interface
[ undo ] ip address
[
ip-address
{
net-mask
|
mask-length
} [
sub
] ]
Table 3
Display and Debug IP Address
Operation
Command
Display all hosts on the network and the
corresponding IP addresses
display ip hosts
Display the configurations of each interface
display ip interface vlan-interface
vlan-id
PC
Console cable
Switch
Summary of Contents for Switch 7700
Page 10: ...2 ABOUT THIS GUIDE ...
Page 52: ...44 CHAPTER 2 PORT CONFIGURATION ...
Page 194: ...186 CHAPTER 5 IP ROUTING PROTOCOL OPERATION ...
Page 195: ...Route Capacity 187 ...
Page 196: ...188 CHAPTER 5 IP ROUTING PROTOCOL OPERATION ...
Page 197: ...Route Capacity 189 ...
Page 198: ...190 CHAPTER 5 IP ROUTING PROTOCOL OPERATION ...
Page 237: ...GMRP 229 SW7700 Ethernet1 0 1 gmrp ...
Page 238: ...230 CHAPTER 6 MULTICAST PROTOCOL ...
Page 270: ...262 CHAPTER 7 QOS OPERATION ...
Page 320: ...312 CHAPTER 9 AAA AND RADIUS OPERATION ...
Page 330: ...322 CHAPTER 10 RELIABILITY ...
Page 390: ...382 CHAPTER 11 SYSTEM MANAGEMENT ...