View VLANs mapped to IP addresses of clients connected to S series switches

8

On S series switches, you can view ARP entries to obtain the VLANs mapped to the IP addresses of clients connected to the switches.
The following is an example:
[HUAWEI] display arp all
IP ADDRESS MAC ADDRESS EXPIRE(M) TYPE INTERFACE VPN-INSTANCE
VLAN/CEVLAN
----------------------------------------------------------------------------------------------------------------------------
10.133.217.202 00e0-0987-7890 I - Eth0/0/0
10.133.216.1 0000-5e00-0149 20 D-0 Eth0/0/0
10.1.1.2 00e0-0987-7899 I - GE6/1/1
192.168.11.254 aaaa-bbbb-cc92 12 D-0 Eth-Trunk1
11/-
192.168.11.253 ac85-3da6-a420 16 D-0 Eth-Trunk1
11/-
----------------------------------------------------------------------------------------------------------------------------
Total:5 Dynamic:3 Static:0 Interface:2
The two clients with the IP addresses 192.168.11.254 and 192.168.11.253 belong to VLAN 11.

Other related questions:
Display IP addresses of clients connected to S series switch
When an S series switch, except S1700, works at Layer 2, only the MAC address of the interface is displayed, but IP address is not displayed. When an S series switch, except S1700, works at Layer 3 and you have known the MAC address of a connected client, you can run the display arp all command to check the IP address of the client. If you do not know the MAC address of the client, run the ipconfig/all command on your PC. For example: display arp all IP ADDRESSMAC ADDRESSEXPIRE(M) TYPEINTERFACEVPN-INSTANCE VLAN/CEVLAN 10.137.217.202 00e0-0987-7890 I - Eth0/0/0 10.137.216.1 0000-5e00-0149 20 D-0 Eth0/0/0 Total:2 Dynamic:1 Static:0 Interface:1 (1) The IP address of the PC with MAC address 00e0-0987-7890 is 10.137.217.202. (2) The total number of dynamic and static ARP entries is the number of access users.

Can clients connected to S series switch obtain IP addresses through DHCP
DHCP-enabled terminals that are connected to S series switches except S1700 switches can obtain IP addresses from DHCP servers when either of the following conditions is met: - The DHCP server function has been enabled on the switches. (By default, the DHCP server function is disabled on a switch.) - A DHCP server is available on the network and reachable to the terminals.

How to bind the IP address, MAC address, and interface
The Switch implements binding between an interface and a MAC address through the traffic policy and DHCP snooping. Then the interface allows only the packets with the bound MAC address and packets matching the DHCP snooping binding table to pass through. The Switch does support binding of IP address + MAC address + interface. For example, to configure Ethernet 0/0/1 to allow only the packets with the source MAC address being 0-02-02 apart from of the packets matching the DHCP snooping binding table, and discard other packets, do as follows: # Enable DHCP snooping globally. [HUAWEI] dhcp snooping enable# Create an ACL that permits only the packets with the source MAC address being 0-02-02. [HUAWEI] acl 4000 [HUAWEI-acl-L2-4000] rule permit source-mac 0-02-02 ffff-ffff-ffff [HUAWEI-acl-L2-4000] rule deny# Create a traffic classifier that matches ACL 4000. [HUAWEI] traffic classifier c1 [HUAWEI-classifier-c1] if-match acl 4000# Create a traffic behavior and a traffic policy. [HUAWEI] traffic behavior b1 [HUAWEI-behavior-b1] permit [HUAWEI] traffic policy p1 [HUAWEI-trafficpolicy-p1] classifier c1 behavior b1# Apply the traffic policy to Ethernet 0/0/1 so that the interface allows only the packets with the source MAC address 0-02-02 to pass through apart from of the packets matching the DHCP snooping binding table. In V100R005C00 and later versions, the configuration is as follows: [HUAWEI] interface Ethernet 0/0/1 [HUAWEI-Ethernet0/0/1] port default vlan 4094 [HUAWEI-Ethernet0/0/1] ip source check user-bind enable [HUAWEI-Ethernet0/0/1] traffic-policy p1 inbound

The method of S series switches to view the IP address of the interface
S series switches (except S1700) There are two ways to view the IP address of the specified interface: - Run the "display ip interface brief [interface-type [interface-number]]" command in any view to check the IP configuration information of the interface. - Run the "display this" command to check the IP address configured on the interface.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top