HP 4800G Series Configuration Manual page 1440

24/48 port
Table of Contents

Advertisement

Configuration procedure
1)
Add all the ports on Switch B into VLAN 10, and configure the IP address of VLAN-interface 10 on
Switch A (the configuration procedure is omitted).
2)
Configure Switch A as a DHCP server
# Configure DHCP address pool 0.
<SwitchA> system-view
[SwitchA] dhcp enable
[SwitchA] dhcp server ip-pool 0
[SwitchA-dhcp-pool-0] network 10.1.1.0 mask 255.255.255.0
[SwitchA-dhcp-pool-0] display interface vlan-interface 10
Vlan-interface10 current state: UP
Line protocol current state: UP
Description: Vlan-interface10 Interface
The Maximum Transmit Unit is 1500
Internet Address is 10.1.1.1/24 Primary
IP Packet Frame Type: PKTFMT_ETHNT_2,
IPv6 Packet Frame Type: PKTFMT_ETHNT_2,
Last 300 seconds input:
Last 300 seconds output:
0 packets input, 0 bytes, 0 drops
0 packets output, 0 bytes, 0 drops
From the above information, you can see that the MAC address of VLAN-interface 10 is
000f-e249-8050.
3)
Configure Host A and Host B as DHCP clients (the configuration procedure is omitted).
4)
Configure Switch B
# Enable DHCP snooping.
<SwitchB> system-view
[SwitchB] dhcp-snooping
[SwitchB] interface gigabitethernet 1/0/1
[SwitchB-GigabitEthernet1/0/1] dhcp-snooping trust
[SwitchB-GigabitEthernet1/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).
[SwitchB] vlan 10
[SwitchB-vlan10] arp detection enable
[SwitchB-vlan10] interface gigabitethernet 1/0/1
[SwitchB-GigabitEthernet1/0/1] arp detection trust
[SwitchB-GigabitEthernet1/0/1] quit
# Configure a static IP Source Guard binding entry on GigabitEthernet 1/0/2.
[SwitchB] interface gigabitethernet 1/0/2
[SwitchB-GigabitEthernet1/0/2] user-bind ip-address 10.1.1.5 mac-address 0001-0203-0405
vlan 10
[SwitchB-GigabitEthernet1/0/2] quit
# Configure a static IP Source Guard binding entry on GigabitEthernet 1/0/3.
Hardware Address: 000f-e249-8050
Hardware Address: 000f-e249-8050
0 bytes/sec 0 packets/sec
0 bytes/sec 0 packets/sec
1-10

Advertisement

Chapters

Table of Contents
loading

Table of Contents