DGS-3200 Series Layer 2 Gigabit Managed Switch CLI Manual
443
Command Description
–
Create access profile 1
create access_profile profile_id 1 ethernet source_mac
FF-FF-FF-FF-FF-FF ethernet_type
Step1
To match
Ethernet Type
and
Source MAC
address.
config access_profile profile_id 1 add access_id 1
ethernet source_mac 01-02-03-04-05-06
–
Configure access profile 1
–
Only if the gateway’s ARP packet that contains
the correct
Source MAC
in Ethernet frame can
pass through the switch.
Step2
ethernet_type 0x806
port 1-27 permit
create access_profile profile_id 2 packet_content_mask
offset_chunk_1 3 0x0000FFFF
–
Create access profile 2
–
The first Chunk starts from Chunk 3: mask for
Ethernet Type
(Blue in Table-6: 13
th
& 14
th
bytes)
Step3
Ethernet Type(2-byte)
offset_chunk_2 7 0x0000FFFF
Sdr IP(First 2-byte)
offset_chunk_3 8 0xFFFF0000
Sdr IP(Last 2-byte)
–
The second Chunk starts from Chunk 7: mask for
Sender IP
(First 2-byte)
in ARP packet
(Green in
Table-6: 29
th
& 30
th
bytes)
–
The third Chunk starts from Chunk 8: mask for
Sender IP
(Last 2-byte)
in ARP packet (Brown in
Table-6: 31
st
& 32
nd
bytes)
config access_profile profile_id 2 add access_id 1
packet_content
–
Configure access profile 2
–
offset_chunk_1 0x00000806
–
The rest ARP packets whose
Sender IP
claim
they are the gateway’s IP will be dropped.
Step4
Ethernet Type(2-byte): ARP
offset_chunk_2 0x00000A5A
Sdr IP(First 2-byte): 10.90
offset_chunk_3
0x5A5A0000
Sdr IP(Last 2-byte): 90.90
port 1-27 deny
Save
–
Save config
Step5