< Home

Data Model

The configuration model files matching IP address and MTU management on an interface are ietf-ip.yang and huawei-ip.yang.

VLANIF interfaces and loopback interfaces support the configuration.

VBDIF interfaces of the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support the configuration.

Table 1 IP address and MTU management on an interface

Object

Description

Value Range

Remarks

/ietf-interfaces:interfaces/interface/ietf-ip:ipv4/address/ip

Configures the IPv4 address of an interface.

The value is in dotted decimal notation.

N/A

/ietf-interfaces:interfaces/interface/ietf-ip:ipv4/address/netmask

Configures an IPv4 subnet mask.

The value is in dotted decimal notation.

N/A

/ietf-interfaces:interfaces/interface/ietf-ip:ipv4/address/prefix-length

Configures the IPv4 mask length.

The value is an integer that ranges from 0 to 32.

N/A

/ietf-interfaces:interfaces/interface/ietf-ip:ipv4/address/huawei-ip:ip-address-sub

Configures a secondary IPv4 address for an interface.

The value is a string of spaces only with no limited length.

N/A

/ietf-interfaces:interfaces/interface/ietf-ip:ipv4/mtu

Configures the IPv4 MTU of an interface.

The value is an integer that ranges from 128 to 9216, in bytes.

N/A

/ietf-interfaces:interfaces/interface/ietf-ip:ipv6/enabled

Configures the IPv6 function on an interface.

The value is of the Boolean type:

  • true: The IPv6 function is enabled on the interface.
  • false: The IPv6 function is disabled on the interface.

The default value is false.

N/A

/ietf-interfaces:interfaces/interface/ietf-ip:ipv6/mtu

Configures the IPv6 MTU of an interface.

The value is an integer that ranges from 1280 to 9600, in bytes.

N/A

/ietf-interfaces:interfaces/interface/ietf-ip:ipv6/dup-addr-detect-transmits

Configures the number of times neighbor solicitation (NS) packets are sent during duplicate address detection (DAD).

The value is an integer that ranges from 0 to 600. The default value is 1.

N/A

/ietf-interfaces:interfaces/interface/ietf-ip:ipv6/address/ip

Configures the IPv6 address of an interface.

The total length of the value is 128 bits. The string is divided into eight groups, each of which consists of four hexadecimal digits. The value is in the format of X:X:X:X:X:X:X:X.

N/A

/ietf-interfaces:interfaces/interface/ietf-ip:ipv6/address/prefix-length

Configures the prefix length of an IPv6 address.

The value is an integer that ranges from 1 to 128.

N/A

/ietf-interfaces:interfaces-state/interface/ipv4/forwarding

Queries the IPv4 protocol status of an interface.

The value is of the Boolean type:

  • true: The protocol status is Up.
  • false: The protocol status is Down.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv4/mtu

Queries the IPv4 MTU of an interface.

The value is an integer.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv4/address/ip

Queries the IPv4 address of an interface.

The value is in dotted decimal notation.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv4/address/subnet/netmask

Queries the IPv4 subnet mask of an interface.

The value is in dotted decimal notation.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv4/address/origin

Queries the IPv4 address type of an interface.

The value is of the enumerated type:
  • static: The IPv4 address is manually configured.
  • dynamic: The IPv4 address is dynamically obtained using DHCP.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv4/neighbor/ip

Queries the IP address in the ARP entry learned by an interface.

The value is in dotted decimal notation.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv4/neighbor/link-layer-address

Queries the MAC address in the ARP entry learned by an interface.

The value is in the format of H-H-H. Each H is a hexadecimal number of 1 to 4 digits.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv4/neighbor/origin

Queries the type of the ARP entry learned by an interface.

The value is of the enumerated type:
  • static: static ARP entry
  • dynamic: dynamic ARP entry

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv6/forwarding

Queries the IPv6 protocol status of an interface.

The value is of the Boolean type:

  • true: The protocol status is Up.
  • false: The protocol status is Down.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv6/mtu

Queries the IPv6 MTU of an interface.

The value is an integer.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv6/address/ip

Queries the IPv6 address of an interface.

The total length of the value is 128 bits. The string is divided into eight groups, each of which consists of four hexadecimal digits. The value is in the format of X:X:X:X:X:X:X:X.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv6/address/prefix-length

Queries the IPv6 address prefix length of an interface.

The value is an integer.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv6/address/origin

Queries the IPv6 address type of an interface.

The value is of the enumerated type:
  • static: The IPv6 address is manually configured.
  • dhcp: The IPv6 address is bound to a DHCPv6 PD prefix or is dynamically obtained using DHCPv6.
  • link-layer: The IPv6 address is a link-local address.
  • random: The IPv6 address is an IPv6 unicast address generated through stateless autoconfiguration.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv6/address/status

Queries the IPv6 address status of an interface.

The value is of the enumerated type:

  • tentative: When the interface status is Down, the IPv6 address status is tentative.
  • duplicate: When an address conflict is detected, the IPv6 address status is duplicate.
  • preferred: The IPv6 address status is preferred, indicating that the address is valid.
  • unknown: The IPv6 address status is unknown.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv6/address/neighbor/ip

Queries the address of an IPv6 neighbor.

The total length of the value is 128 bits. The string is divided into eight groups, each of which consists of four hexadecimal digits. The value is in the format of X:X:X:X:X:X:X:X.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv6/address/neighbor/link-layer-address

Queries the MAC address of an IPv6 neighbor.

The value is in the format of H-H-H. Each H is a hexadecimal number of 1 to 4 digits.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv6/address/neighbor/origin

Queries the IPv6 neighbor entry type.

The value is of the enumerated type:
  • static: static neighbor entry
  • dynamic: dynamic neighbor entry

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv6/address/neighbor/is-router

Queries whether the NA packet sent by an IPv6 neighbor carries the R flag.

The value is a character string.

  • If the value is a space, the NA packet sent by the IPv6 neighbor carries the R flag.
  • If no value is displayed, the NA packet sent by the IPv6 neighbor does not carry the R flag.

This object only supports the get operation.

/ietf-interfaces:interfaces-state/interface/ipv6/address/neighbor/state

Queries the status of an IPv6 neighbor entry.

The value is of the enumerated type:

  • incomplete: The neighbor is unreachable. Address resolution is being performed and the link layer address of the neighbor is not detected. If the resolution succeeds, the neighbor entry enters the reachable state.
  • reachable: The neighbor is reachable within a specified period (30 seconds by default). If the period expires and the entry remains unused, the neighbor entry enters the stale state.
  • stale: Whether the neighbor is reachable is unknown. The entry remains unused within a specified period (30 seconds by default). The switch does not detect whether the neighbor is reachable unless it needs to send packets to the neighbor.
  • delay: Whether the neighbor is reachable is unknown. A packet has been sent to the neighbor. If no response is received within the specified period, the neighbor entry enters the probe state.
  • probe: Whether the neighbor is reachable is unknown. An NS packet has been sent to the neighbor to detect whether the neighbor is reachable. If a response is received within the specified period, the neighbor entry enters the reachable state. If no response is received, the neighbor entry enters the incomplete state.

This object only supports the get operation.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >