Configuration Example (On A Dhcp Relay Agent) - HPE Moonshot 45Gc Security Configuration Manual

Switch module
Table of Contents

Advertisement

IP Address
10.1.1.2
The output shows that IP address 10.1.1.2 has been assigned to Switch B.
Switch B must use the IP address and MAC address in the authorized ARP entry to communicate
with Switch A. Otherwise, the communication fails. Thus user validity is ensured.

Configuration example (on a DHCP relay agent)

Network requirements
As shown in
agent) to ensure user validity.
Figure 125 Network diagram
Configuration procedure
1.
Configure Switch A:
# Specify the IP address for FortyGigE 1/1/1.
<SwitchA> system-view
[SwitchA] interface fortygige 1/1/1
[SwitchA-FortyGigE1/1/1] port link-mode route
[SwitchA-FortyGigE1/1/1] ip address 10.1.1.1 24
[SwitchA-FortyGigE1/1/1] quit
# Configure DHCP.
[SwitchA] dhcp enable
[SwitchA] dhcp server ip-pool 1
[SwitchA-dhcp-pool-1] network 10.10.1.0 mask 255.255.255.0
[SwitchA-dhcp-pool-1] gateway-list 10.10.1.1
[SwitchA-dhcp-pool-1] quit
[SwitchA] ip route-static 10.10.1.0 24 10.1.1.2
2.
Configure Switch B:
# Enable DHCP.
<SwitchB> system-view
[SwitchB] dhcp enable
# Specify the IP addresses of FortyGigE 1/1/1 and FortyGigE 1/1/2.
[SwitchB] interface fortygige 1/1/1
[SwitchB-FortyGigE1/1/1] port link-mode route
[SwitchB-FortyGigE1/1/1] ip address 10.1.1.2 24
MAC Address
0012-3f86-e94c
Figure
125, configure authorized ARP on FortyGigE 1/1/2 of Switch B (a DHCP relay
VLAN
Interface
N/A
FGE1/1/1
410
Aging
Type
20
D

Advertisement

Table of Contents
loading

Table of Contents