Arp configuration examples, Static arp entry configuration example, Network requirements – H3C Technologies H3C S12500 Series Switches User Manual

Page 22: Configuration procedure

Advertising
background image

8

ARP configuration examples

Static ARP entry configuration example

IMPORTANT:

By default, Ethernet, VLAN, and aggregate interfaces are down. To configure such an interface, bring the
interface up by executing the undo shutdown command.

Network requirements

As shown in

Figure 3

, hosts are connected to Switch, which is connected to Router through interface

GigabitEthernet 3/0/1 belonging to VLAN 10. The IP address of Router is 192.168.1.1/24. The MAC
address of Router is 00e0-fc01-0000.
To enhance communication security for Router and Switch, static ARP entries are configured on Switch.

Figure 3 Network diagram

Configuration procedure

# Create VLAN 10.

<Switch> system-view

[Switch] vlan 10

[Switch-vlan10] quit

# Add interface GigabitEthernet 3/0/1 to VLAN 10.

[Switch] interface GigabitEthernet 3/0/1

[Switch- GigabitEthernet3/0/1] port access vlan 10

[Switch- GigabitEthernet3/0/1] quit

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

[Switch] interface vlan-interface 10

[Switch-vlan-interface10] ip address 192.168.1.2 24

[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 GigabitEthernet 3/0/1 in VLAN 10.

Advertising