display ip source binding

Use display ip source binding to display IPv4SG bindings.

Syntax

In standalone mode:

display ip source binding [ static | [ vpn-instance vpn-instance-name ] [ arp-snooping | arp-suppression | dhcp-relay | dhcp-server | dhcp-snooping ] ] [ ip-address ip-address ] [ mac-address mac-address ] [ vlan vlan-id ] [ interface interface-type interface-number ] [ slot slot-number ]

In IRF mode:

display ip source binding [ static | [ vpn-instance vpn-instance-name ] [ arp-snooping | arp-suppression | dhcp-relay | dhcp-server | dhcp-snooping ] ] [ ip-address ip-address ] [ mac-address mac-address ] [ vlan vlan-id ] [ interface interface-type interface-number ] [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

static: Displays static IPv4SG bindings.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. To display dynamic IPv4SG bindings for the public network, do not specify a VPN instance.

arp-snooping: Specifies the ARP snooping module.

arp-suppression: Specifies the ARP flood suppression module.

dhcp-relay: Specifies the DHCP relay agent module.

dhcp-server: Specifies the DHCP server module.

dhcp-snooping: Specifies the DHCP snooping module.

ip-address ip-address: Specifies an IPv4 address.

mac-address mac-address: Specifies a MAC address in H-H-H format.

vlan vlan-id: Specifies a VLAN ID in the range of 1 to 4094.

interface interface-type interface-number: Specifies an interface by its type and number.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays IPv4SG bindings for the active MPU. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays IPv4SG bindings for the global active MPU. (In IRF mode.)

Examples

# Display all IPSG bindings on the public network.

<Sysname> display ip source binding
Total entries found: 5
IP Address      MAC Address    Interface                VLAN Type
10.1.0.5        040a-0000-4000 FGE1/0/1                 1    DHCP snooping
10.1.0.6        040a-0000-3000 FGE1/0/1                 1    DHCP snooping
10.1.0.7        040a-0000-2000 FGE1/0/1                 1    DHCP snooping
10.1.0.8        040a-0000-1000 FGE1/0/2                 N/A  DHCP relay
10.1.0.9        040a-0000-2000 FGE1/0/2                 N/A  Static

Table 80: Command output

Field

Description

Total entries found

Total number of IPv4SG bindings.

IP Address

IPv4 address in the IPv4SG binding. If no IP address is bound in the binding, this field displays N/A.

MAC Address

MAC address in the IPv4SG binding. If no MAC address is bound in the binding, this field displays N/A.

Interface

Interface of the binding. This field displays N/A for a global IPv4SG binding.

VLAN

VLAN information in the IPv4SG binding. If the binding contains no VLAN information, this field displays N/A.

Type

IPSG binding type:

  • Static—Manually configured by using the ip source binding command. Static bindings are for packet filtering in IPSG or used by other modules to provide security services.

  • ARP snooping—Dynamically generated based on ARP snooping. The binding is for packet filtering in IPSG.

  • ARP suppression—Dynamically generated based on ARP flood suppression. The binding is for packet filtering in IPSG.

  • DHCP relay—Dynamically generated based on DHCP relay agent. The binding is for packet filtering in IPSG.

  • DHCP server—Dynamically generated based on DHCP server. The binding is used by other modules to provide security services.

  • DHCP snooping—Dynamically generated based on DHCP snooping. The binding is for packet filtering in IPSG.

Related commands

ip source binding

ip verify source