Configuring IP Addresses
89
While allowing you to create multiple logical networks within a single Class A, B,
or C network, subnetting is transparent to the rest of the Internet. All these
networks still appear as one. As subnetting adds an additional level, subnet ID, to
the two-level hierarchy with IP addressing, IP routing now involves three steps:
delivery to the site, delivery to the subnet, and delivery to the host.
In the absence of subnetting, some special addresses such as the addresses with
the net ID of all zeros and the addresses with the host ID of all ones, are not
assignable to hosts. The same is true of subnetting. When designing your
network, you should note that subnetting is somewhat a tradeoff between
subnets and accommodated hosts. For example, a Class B network can
accommodate 65,534 (2
16
- 2. Of the two deducted Class B addresses, one with
an all-ones host ID is the broadcast address and the other with an all-zeros host ID
is the network address) hosts before being subnetted. After you break it down
into 512 (2
9
) subnets by using the first 9 bits of the host ID for the subnet, you
have only 7 bits for the host ID and thus have only 126 (2
7
- 2) hosts in each
subnet. The maximum number of hosts is thus 64,512 (512 Ðó 126), 1022 less
after the network is subnetted.
Class A, B, and C networks, before being subnetted, use these default masks (also
called natural masks): 255.0.0.0, 255.255.0.0, and 255.255.255.0 respectively.
Configuring IP
Addresses
Switch 4210 Family support assigning IP addresses to VLAN interfaces and
loopback interfaces. Besides directly assigning an IP address to a VLAN interface,
you may configure a VLAN interface to obtain an IP address through BOOTP or
DHCP as alternatives. If you change the way an interface obtains an IP address,
from manual assignment to BOOTP for example, the IP address obtained from
BOOTP will overwrite the old one manually assigned.
n
This chapter only covers how to assign an IP address manually. For the other two
approaches to IP address assignment, refer to “DHCP Overview” on page 281 and
subsequent chapters.
n
■
A newly specified IP address overwrites the previous one if there is any.
■
The IP address of a VLAN interface must not be on the same network segment
as that of a loopback interface on a device.
Table 49
Configure an IP address to an interface
Operation
Command
Remarks
Enter system view
system-view
--
Enter interface view
interface
interface-type
interface-number
--
Assign an IP address to the
Interface
ip address
ip-address
{
mask |
mask-length
} [
sub
]
Required
No IP address is assigned by
default.
Содержание Switch 4210 9-Port
Страница 10: ...Password Control Configuration 556 Displaying Password Control 563 Password Control Configuration Example 564 ...
Страница 22: ...20 CHAPTER 1 CLI CONFIGURATION ...
Страница 74: ...72 CHAPTER 3 CONFIGURATION FILE MANAGEMENT ...
Страница 84: ...82 CHAPTER 5 VLAN CONFIGURATION ...
Страница 96: ...94 CHAPTER 8 IP PERFORMANCE CONFIGURATION ...
Страница 108: ...106 CHAPTER 9 PORT BASIC CONFIGURATION ...
Страница 122: ...120 CHAPTER 11 PORT ISOLATION CONFIGURATION ...
Страница 140: ...138 CHAPTER 13 MAC ADDRESS TABLE MANAGEMENT ...
Страница 234: ...232 CHAPTER 17 802 1X CONFIGURATION ...
Страница 246: ...244 CHAPTER 20 AAA OVERVIEW ...
Страница 270: ...268 CHAPTER 21 AAA CONFIGURATION ...
Страница 292: ...290 CHAPTER 26 DHCP BOOTP CLIENT CONFIGURATION ...
Страница 318: ...316 CHAPTER 29 MIRRORING CONFIGURATION ...
Страница 340: ...338 CHAPTER 30 CLUSTER ...
Страница 362: ...360 CHAPTER 33 SNMP CONFIGURATION ...
Страница 368: ...366 CHAPTER 34 RMON CONFIGURATION ...
Страница 450: ...448 CHAPTER 39 TFTP CONFIGURATION ...
Страница 451: ......
Страница 452: ...450 CHAPTER 39 TFTP CONFIGURATION ...
Страница 470: ...468 CHAPTER 40 INFORMATION CENTER ...
Страница 496: ...494 CHAPTER 44 DEVICE MANAGEMENT ...