Configuration examples, Static arp configuration example, Network requirements – H3C Technologies H3C S12500-X Series Switches User Manual

Page 19: Configuration procedure, Setting the aging timer for dynamic arp entries

Advertising
background image

8

Configuration examples

Static ARP configuration example

Network requirements

As shown in

Figure 3

, hosts are connected to the switch, which is connected to the router through

interface Ten-GigabitEthernet 1/0/1 in VLAN 10.
To ensure secure communications between the router and switch, configure a static ARP entry for the

router on the switch.

Figure 3 Network diagram

Configuration procedure

# Create VLAN 10.

<Switch> system-view

[Switch] vlan 10

[Switch-vlan10] quit

# Add interface Ten-GigabitEthernet 1/0/1 to VLAN 10.

[Switch] interface Ten-GigabitEthernet 1/0/1

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

[Switch-Ten-GigabitEthernet1/0/1] quit

# Create VLAN-interface 10 and configure its IP address.

[Switch] interface vlan-interface 10

[Switch-vlan-interface10] ip address 192.168.1.2 8

[Switch-vlan-interface10] quit

# Configure a static ARP entry that has IP address 192.168.1.1, MAC address 00e0-fc01-0000, and
output interface Ten-GigabitEthernet1/0/1 in VLAN 10.

[Switch] arp static 192.168.1.1 00e0-fc01-0000 10 Ten-GigabitEthernet1/0/1

# Display information about static ARP entries.

[Switch] display arp static

Type: S-Static D-Dynamic O-Openflow M-Multiport I-Invalid

Advertising
This manual is related to the following products: