Dynamic Ipv4Sg Using Dhcp Snooping Configuration Example - HP MSR Series Configuration Manual

Hpe flexnetwork msr router series
Hide thumbs Also See for MSR Series:
Table of Contents

Advertisement

[DeviceB-GigabitEthernet2/0/2] ip verify source ip-address mac-address
[DeviceB-GigabitEthernet2/0/2] quit
# Enable IPv4SG on GigabitEthernet 2/0/1.
[DeviceB] interface gigabitethernet 2/0/1
[DeviceB-GigabitEthernet2/0/1] ip verify source ip-address mac-address
# On GigabitEthernet 2/0/1, configure a static IPv4SG binding for Host B.
[DeviceB-GigabitEthernet2/0/1] ip source binding mac-address 0001-0203-0407
[DeviceB-GigabitEthernet2/0/1] quit
Verifying the configuration
# Verify that the static IPv4SG bindings are configured successfully on Device A.
<DeviceA> display ip source binding static
Total entries found: 2
IP Address
192.168.0.1
192.168.0.3
# Verify that the static IPv4SG bindings are configured successfully on Device B.
<DeviceB> display ip source binding static
Total entries found: 2
IP Address
N/A
Dynamic IPv4SG using DHCP snooping configuration
example
Network requirements
As shown in
Enable DHCP snooping on the device to record the IPv4 address and the MAC address of the host in
a DHCP snooping entry.
Enable dynamic IPv4SG on GigabitEthernet 2/0/1 to filter received packets based on DHCP
snooping entries. Only packets from the client that obtains an IP address from the DHCP server are
allowed to pass.
Figure 158 Network diagram
Configuration procedure
1.
Configure the DHCP server.
For information about DHCP server configuration, see Layer 3—IP Services Configuration
Guide.
2.
Configure the device:
# Configure IP addresses for the interfaces. (Details not shown.)
# Enable DHCP snooping.
<Device> system-view
MAC Address
0001-0203-0405 GE2/0/2
0001-0203-0406 GE2/0/1
MAC Address
0001-0203-0407 GE2/0/1
Figure
158, the host (the DHCP client) obtains an IP address from the DHCP server.
Interface
Interface
520
VLAN Type
N/A
Static
N/A
Static
VLAN Type
N/A
Static

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents