1-3
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 for
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-one host ID is the broadcast address
and the other with an all-zero 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
An interface can communicate with other hosts after it obtains an IP address. Besides directly assigning
an IP address to an interface, you may configure the interface to obtain one through DHCP, address
negotiation as alternatives. If you change the way an interface obtains an IP address, from manual
assignment to DHCP for example, the IP address obtained from DHCP will overwrite the old one
manually assigned.
This chapter only covers how to assign an IP address manually. For how to obtain an IP address
through DHCP, refer to
DHCP Configuration
in the
IP Services Volume
.
This section includes:
z
Assigning an IP Address to an Interface
z
IP Addressing Configuration Example
Assigning an IP Address to an Interface
You may assign an interface multiple IP addresses, one primary and multiple secondaries.
Generally, you only need to assign the primary address to an interface. In some cases, you need to
assign secondary IP addresses to the interface. For example, if the interface connects to two subnets,
to enable the device to communicate with all hosts on the LAN, you need to assign a primary IP address
and a secondary IP address to the interface.
Follow these steps to assign an IP address to an interface:
To do…
Use the 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.
Содержание S7902E
Страница 82: ...1 4 DeviceA interface tunnel 1 DeviceA Tunnel1 service loopback group 1 ...
Страница 200: ...1 11 DeviceB display vlan dynamic No dynamic vlans exist ...
Страница 494: ...ii Displaying and Maintaining Tunneling Configuration 1 45 Troubleshooting Tunneling Configuration 1 45 ...
Страница 598: ...ii ...
Страница 1757: ...4 9 ...
Страница 1770: ...6 4 ...
Страница 2017: ...2 11 Figure 2 3 SFTP client interface ...
Страница 2062: ...i Table of Contents 1 URPF Configuration 1 1 URPF Overview 1 1 What is URPF 1 1 How URPF Works 1 1 Configuring URPF 1 2 ...
Страница 2238: ...1 16 DeviceA cfd linktrace service instance 1 mep 1001 target mep 4002 ...
Страница 2442: ...2 4 Set the interval for sending Syslog or trap messages to 20 seconds Device mac address information interval 20 ...