DatacomHCIP experiment essential documents

Port isolation


Host 1 can communicate with the router gateway and host 2.
[Huawei-GigabitEthernet0/0/1]port-isolate enable group 1
[Huawei-GigabitEthernet0/0/2]port-isolate enable group 1
Ports will be isolated only if they are grouped into a port isolation group.

[Huawei-GigabitEthernet0/0/3]port-isolate enable group 2
Clients not in the same isolation group can communicate with each other

-----------------------------------------------------------------------------------------------
DHCP sniffing

[DHCP]dhcp en
[DHCP]interface g0/0/2
[DHCP-GigabitEthernet0/0/2]ip address 192.168.1.1 24
[DHCP-GigabitEthernet0/0/2]dhcp select interface
[xiaomi]dhcp enable
[xiaomi]interface g0/0/1
[xiaomi-GigabitEthernet0/0/1]ip address 192.168.11.1 24
[xiaomi-GigabitEthernet0/0/1]dhcp select interface

Get two DHCP addresses randomly.
Configuration idea: The interfaces on the upper layer of the access layer facing the DHCP server are all trusted ports, and the lower layer user access ports are all untrusted ports.
[Huawei]dhcp enable
[Huawei]dhcp snooping enable
[Huawei]dhcp snooping enable vlan 1
[Huawei-GigabitEthernet0/0/2]dhcp snooping trusted //Trust the corresponding uplink interface
[Huawei]display dhcp snooping user-bind all //View the dynamically learned snooping binding table
DHCP Dynamic Bind-table:
Flags:O - outer vlan ,I - inner vlan ,P - map vlan
IP Address MAC Address VSI/VLAN(O/I/P) Interface Lease
--------------------------------------------------------------------------------
192.168.1.254 5489-9848-5cf3 1 /-- /-- GE0/0/1 2023.06.24-11:17
--------------------------------------------------------------------------------
print count: 1 total count: 1
[Huawei]user-bind static ip-address 192.168.2.2 mac-address aabb-ccdd-ffff inte
rface g0/0/4 vlan 1
//Manually bind the dhcp sniffing table
[Huawei]display dhcp static user-bind all //View static binding table
DHCP static Bind-table:
Flags:O - outer vlan ,I - inner vlan ,P - map vlan
IP Address MAC Address VSI/VLAN(O/I/P) Interface
--------------------------------------------------------------------------------
192.168.2.2 aabb-ccdd-ffff 1 /-- /-- GE0/0/4
--------------------------------------------------------------------------------
print count: 1 total count: 1

