F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Configuration Guide-6PW100

26
Without subnetting—65534 hosts (2
16
– 2). (The two deducted addresses are the broadcast
address, which has an all-one host ID, and the network address, which has an all-zero host ID.)
With subnetting—Using the first 9 bits of the host-id for subnetting provides 512 (2
9
) subnets.
However, only 7 bits remain available for the host ID. This allows 126 (2
7
2) hosts in each subnet,
a total of 64512 hosts (512 × 126).
67B
Assigning an IP address to an interface
You can assign an interface one primary address and multiple secondary addresses.
Generally, you only need to assign the primary address to an interface. In some cases, you must 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, assign a primary IP address and a secondary IP
address to the interface.
383BConfiguration guidelines
Follow these guidelines when you assign an IP address to an interface:
Each interface has only one primary IP address. A newly configured primary IP address overwrites
the previous one.
You cannot assign secondary IP addresses to an interface that obtains an IP address through
BOOTP, DHCP, PPP address negotiation, or IP unnumbered.
The primary and secondary IP addresses you assign to the interface can be located on the same
subnet, but different interfaces on your device must reside on different subnets.
You can manually assign an IP address to an interface or configure the interface to obtain an IP
address through BOOTP, DHCP, or PPP address negotiation. If you change the way an interface
obtains an IP address, the new IP address overwrites the previous one.
384BConfiguration procedure
To assign an IP address to an interface:
Ste
p
Command
Remarks
67. Enter system view. system-view N/A
68. Enter interface view.
interface interface-type
interface-number
N/A
69. Assign an IP address to
the interface.
ip address ip-address { mask-length
| mask } [ sub ]
By default, no IP address is assigned to
any interface.
68B
Displaying and maintaining IP addressing
Task Command
Remarks
Display IP configuration information
for a specific Layer 3 interface or all
Layer 3 interfaces.
display ip interface [ interface-type
interface-number ] [ | { begin | exclude |
include } regular-expression ]
Available in any view.