R3204P16-HP Load Balancing Module Network Management Configuration Guide-6PW101

Table Of Contents
18
Configuring IP addresses
Assigning an IP address for 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 LB module 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 for the
interface
ip address ip-address
{ mask-length | mask } [ sub ]
Required
No IP address is assigned by default.
CAUTION:
An interface can have only one primary IP address. A newly confi
g
ured primary IP address overwrites
the previous one.
The primary and secondary IP addresses you assign to the interface can be located on the same
network segment, but different interfaces on your device must reside on different network segments.
IP addressing configuration example
Network requirements
As shown in Figure 7, Ten-GigabitEthernet 0/0.1 on LB module is connected to a LAN comprising two
s e g m e n t s : 172.16.1.0 / 24 and 172.16. 2.0 / 24.
To enable the hosts on the two network segments to communicate with the external network through the
LB module, and to communicate with each other, do the following:
Assign two IP addresses to Ten-GigabitEthernet 0/0.1 on the router.
Set the LB module as the gateway on all PCs in the two networks.