F3215-HP Load Balancing Module Network Management Configuration Guide-6PW101
25
• 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).
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.
Configuration 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.
• 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.
Configuration procedure
To assign an IP address to an interface:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
interface interface-type
interface-number
N/A
3. 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.
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.
Display brief IP configuration
information for a specific Layer 3
interface or all Layer 3 interfaces.
display ip interface [ interface-type
[ interface-number ] ] brief [ | { begin |
exclude | include } regular-expression ]
Available in any view.