H3C Low-End and Mid-Range Ethernet Switches Configuration Examples(V1.01)

HomeSupportSwitchesH3C S5500 Switch SeriesConfigure & DeployConfiguration ExamplesH3C Low-End and Mid-Range Ethernet Switches Configuration Examples(V1.01)
Table of Contents
Related Documents
23-ARP Configuration Guide
Title Size Download
23-ARP Configuration Guide 88.76 KB

Configuring ARP Basics

Network Diagram

None

Networking and Configuration Requirements

l          Set the aging time for dynamic ARP entries to 10 minutes.

l          Set the maximum number of dynamic ARP entries that VLAN-interface 10 can learn to 1000.

l          Add a permanent static ARP entry, with the IP address being 192.168.1.1/24, the MAC address being 000f-e201-0000, and the outbound port being GigabitEthernet 1/0/10 of VLAN 10.

l          Add a non-permanent static ARP entry, with the IP address being 192.168.1.2/24, the MAC address being 000f-e201-0001.

Applicable Product Matrix

Product series

Software version

Hardware version

S3610 Series Ethernet Switches

Release 5301

Release 5303

All versions

S5510 Series Ethernet Switches

Release 5301

Release 5303

All versions

S5500-SI Series Ethernet Switches

Release 1207

All versions except

S5500-20TP-SI

Release 1301

S5500-20TP-SI

S5500-EI Series Ethernet Switches

Release 2102

All versions

S7500E Series Ethernet Switches

Release 6100

Release 6300

All versions

S3500-EA Series Ethernet Switches

Release 5303

All versions

 

Configuration Procedure

# Set the aging time for dynamic ARP entries to 10 minutes.

[Switch] arp timer aging 10

# Set the maximum number of dynamic ARP entries that VLAN-interface 10 can learn to 1000.

[Switch] vlan 10

[Switch-vlan10] quit

[Switch-GigabitEthernet1/0/10] port access vlan 10

[Switch-GigabitEthernet1/0/10] quit

[Switch] interface vlan-interface 10

[Switch-vlan-interface10] arp max-learning-num 1000

[Switch-vlan-interface10] quit

# Add a permanent static ARP entry.

[Switch] arp static 192.168.1.1 000f-e201-0000 10 gigabitethernet1/0/10

# Add a non-permanent static ARP entry.

[Switch] arp static 192.168.1.2 000f-e201-0001

Complete Configuration

#

vlan 10

#

interface Vlan-interface10

 arp max-learning-num 1000

#

interface GigabitEthernet1/0/10

 port access vlan 10

#

 arp timer aging 10

 arp static 192.168.1.1 000f-e201-0000 10 GigabitEthernet1/0/10

 arp static 192.168.1.2 000f-e201-0001

#

Configuration Guidelines

None

Configuring Proxy ARP

Network Diagram

Figure 1-1 Network diagram for proxy ARP

 

Networking and Configuration Requirements

l          Host A that belongs to VLAN 1 has an IP address of 192.168.10.100/16; Host D that belongs to VLAN 2 has an IP address of 192.168.20.200/16.

l          Configure proxy ARP on the switch to enable communication between Host A and Host D.

Applicable Product Matrix

Product series

Software version

Hardware version

S3610 Series Ethernet Switches

Release 5301

Release 5303

All versions

S5510 Series Ethernet Switches

Release 5301

Release 5303

All versions

S5500-SI Series Ethernet Switches

Release 1207

All versions except

S5500-20TP-SI

Release 1301

S5500-20TP-SI

S5500-EI Series Ethernet Switches

Release 2102

All versions

S7500E Series Ethernet Switches

Release 6100

Release 6300

All versions

S3500-EA Series Ethernet Switches

Release 5303

All versions

 

Configuration Procedure

# Configure the IP address of VLAN-interface 1 and then enable proxy ARP on the interface.

<Switch> system-view

[Switch] interface vlan-interface 1

[Switch-Vlan-interface1] ip address 192.168.10.99 255.255.255.0

[Switch-Vlan-interface1] proxy-arp enable

[Switch-Vlan-interface1] quit

# Configure the IP address of VLAN-interface 2 and then enable proxy ARP on the interface.

[Switch] interface vlan-interface 2

[Switch-Vlan-interface2] ip address 192.168.20.99 255.255.255.0

[Switch-Vlan-interface2] proxy-arp enable

[Switch-Vlan-interface2] quit

Complete Configuration

#

interface Vlan-interface1

 ip address 192.168.10.99 255.255.255.0

 proxy-arp enable

#

interface Vlan-interface2

 ip address 192.168.20.99 255.255.255.0

 proxy-arp enable

#

Configuration Guidelines

None

Configuring Local Proxy ARP

Network Diagram

Figure 1-2 Network diagram for local proxy ARP between isolated ports

 

Networking and Configuration Requirements

l          Host A and Host B belong to the same VLAN, and are connected to GigabitEthernet 1/0/2 and GigabitEthernet 1/0/3 of Switch B respectively.

l          Switch B is connected to Switch A via GigabitEthernet 1/0/1.

l          On Switch B, Layer 2 and Layer 3 port isolation are configured on GigabitEthernet 1/0/2 and GigabitEthernet 1/0/3. Enable proxy ARP on Switch A to allow communication between Host A and Host B.

Applicable Product Matrix

Product series

Software version

Hardware version

S3610 Series Ethernet Switches

Release 5301

Release 5303

All versions

S5510 Series Ethernet Switches

Release 5301

Release 5303

All versions

S5500-SI Series Ethernet Switches

Release 1207

All versions except

S5500-20TP-SI

Release 1301

S5500-20TP-SI

S5500-EI Series Ethernet Switches

Release 2102

All versions

S7500E Series Ethernet Switches

Release 6100

Release 6300

All versions

S3500-EA Series Ethernet Switches

Release 5303

All versions

 

Configuration Procedure

# Add GigabitEthernet 1/0/1, GigabitEthernet 1/0/2 and GigabitEthernet 1/0/3 to VLAN 2.

<SwitchB> system-view

[SwitchB] vlan 2

[SwitchB-vlan2] port gigabitethernet 1/0/1

[SwitchB-vlan2] port gigabitethernet 1/0/2

[SwitchB-vlan2] port gigabitethernet 1/0/3

[SwitchB-vlan2] quit

# Isolate GigabitEthernet 1/0/2 from GigabitEthernet 1/0/3 at Layer 2.

[SwitchB] interface gigabitethernet 1/0/2

[SwitchB-GigabitEthernet1/0/2] port-isolate enable

[SwitchB-GigabitEthernet1/0/2] quit

[SwitchB] interface gigabitethernet 1/0/3

[SwitchB-GigabitEthernet1/0/3] port-isolate enable

[SwitchB-GigabitEthernet1/0/3] quit

# Configure an IP address for VLAN-interface 2 on Switch A.

[SwitchA] vlan 2

[SwitchA-vlan2] port gigabitethernet 1/0/2

[SwitchA-vlan2] quit

[SwitchA] interface vlan-interface 2

[SwitchA-Vlan-interface2] ip address 192.168.10.100 255.255.0.0

# Enable local proxy ARP to let Host A and Host B communicate at Layer 3.

[SwitchA-Vlan-interface2] local-proxy-arp enable

[SwitchA-Vlan-interface2] quit

Complete Configuration

l          Configure Switch B

#

vlan 2

#

interface GigabitEthernet1/0/1

 port access vlan 2

#

interface GigabitEthernet1/0/2

 port access vlan 2

 port-isolate enable

#

interface GigabitEthernet1/0/3

 port access vlan 2

 port-isolate enable

#

l          Configure Switch A

#

vlan 2

#

interface GigabitEthernet1/0/2

 port access vlan 2

#

interface Vlan-interface2

 ip address 192.168.10.100 255.255.0.0

 local-proxy-arp enable

#

Configuration Guidelines

l          For details about port isolation, refer to Port Isolation Configuration Guide.

l          If Switch B has Layer 2 and Layer 3 port isolation configured, you need to configure local proxy ARP on the VLAN-interface 2 of Switch A to enable communication between Host A and Host B, as shown in Figure 1-2.

l          If Switch B (S3610&S5510 series Ethernet switches, for example) has only Layer 2 port isolation configured, you can enable communication between the two hosts by configuring local proxy ARP directly on VLAN-interface 2 of Switch B.

 

ARP Detection Configuration Example

Network diagram

Figure 1-3 Network diagram for ARP detection configuration

 

Network requirements

l          Enable DHCP snooping on Switch. Enable ARP detection for VLAN 10 to allow only packets from valid clients to pass.

l          Configure Host A and Host B as DHCP clients.

Applicable Product Matrix

Product series

Software version

Hardware version

S7500E Series Ethernet Switches

Release 6100

Release 6300

All versions

 

Configuration Procedure

1)        Configure a DHCP server (the configuration procedure is omitted).

2)        Configure Host A and Host B as DHCP clients (the configuration procedure is omitted).

3)        Configure Switch

# Add all the ports on the Switch into VLAN 10 (the configuration procedure is omitted).

# Enable DHCP snooping.

<Switch> system-view

[Switch] dhcp-snooping

[Switch] interface gigabitethernet 2/0/1

[Switch-GigabitEthernet2/0/1] dhcp-snooping trust

[Switch-GigabitEthernet2/0/1] quit

# Enable ARP detection for VLAN 10. Configure the upstream port as a trusted port and the downstream ports as untrusted ports (a port is an untrusted port by default).

[Switch] vlan 10

[Switch-vlan10] arp detection enable

[Switch-vlan10] interface gigabitethernet 2/0/1

[Switch-GigabitEthernet2/0/1] arp detection trust

[Switch-GigabitEthernet2/0/1] quit

# Enable the checking of the MAC addresses and IP addresses of ARP packets.

[Switch] arp detection validate dst-mac ip src-mac

# Specify the ARP packet rate on GigabitEthernet2/0/2 and GigabitEthernet2/0/3 as 150 pps.

[Switch] interface GigabitEthernet2/0/2

[Switch-GigabitEthernet2/0/2] arp rate-limit rate 150 drop

[Switch-GigabitEthernet2/0/2] quit

[Switch] interface gigabitethernet 2/0/3

[Switch-GigabitEthernet2/0/3] arp rate-limit rate 150 drop

[Switch-GigabitEthernet2/0/3] quit

Complete Configuration

#

 dhcp-snooping

#

interface GigabitEthernet2/0/1

 dhcp-snooping trust

 arp detection trust

#

vlan 10

 arp detection enable

#

interface GigabitEthernet2/0/2

 arp rate-limit rate 150 drop

#

interface GigabitEthernet2/0/3

 arp rate-limit rate 150 drop

#

 arp detection validate dst-mac ip src-mac

#

Configuration Guidelines

None.

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网