ARP/ND
此内容尚不支持你的语言。
ARP View
Section titled “ARP View”Table 1 ARP View
| Command | Purpose |
|---|---|
| show arp | Display ARP table entries. |
| clear neighbor all | Clear all ARP table entries. |
| clear neighbor interface {ethernet|link-aggregation|vlan} {interface_name[.subinterface-number]} | Delete the specified ARP table entries. |
show arp
Section titled “show arp”[Command]
show arp
[Purpose]
Display ARP table entries.
[View]
Privileged User View
[Use Cases]
sonic# show arpAddress MacAddress Iface Vlan------------ ----------------- ----------- ------10.10.200.2 18:17:25:37:67:3e - 200Total number of entries 1clear neighbor all
Section titled “clear neighbor all”[Command]
clear neighbor all
[Purpose]
Clear all ARP table entries.
[View]
Privileged User View
[Use Cases]
sonic# clear neighbor allclear neighbor interface {ethernet|link-aggregation|vlan} {interface_name[.subinterface-number]}
Section titled “clear neighbor interface {ethernet|link-aggregation|vlan} {interface_name[.subinterface-number]}”[Command]
clear neighbor interface {ethernet|link-aggregation|vlan} {interface_name[.subinterface-number]}
[Purpose]
Delete the specified ARP table entries.
[Parameters]
| Parameter | Description |
|---|---|
| interface_name | Interface name (eg.0/1) |
| subinterface-number | Subinterface number. |
[View]
Privileged User View
[Use Cases]
sonic# clear neighbor interface ethernet 0/2ARP Config
Section titled “ARP Config”Table 2 ARP Config
| Command | Purpose |
|---|---|
| arp static A.B.C.D HH:HH:HH:HH:HH:HH interface {ethernet|link-aggregation|vlan} interface_name[.subinterface-number] | Configure static ARP table entries. |
| arp timeout aging-time | Configure ARP aging time. |
| arp probe interval time | Configure ARP probe interval. |
| arp probe times probe-times | Configure ARP probe times. |
arp static
Section titled “arp static”[Command]
arp static A.B.C.D HH:HH:HH:HH:HH:HH interface {ethernet|link-aggregation|vlan} interface_name[.subinterface-number]
[Purpose]
Configure static ARP table entries.
[Parameters]
| Parameter | Description |
|---|---|
| A.B.C.D | IPv4 address |
| HH:HH:HH:HH:HH:HH | MAC address. |
| interface_name | Interface name (eg.0/1) |
| subinterface-number | Subinterface number. |
[View]
Global Configuration View
[Notes]
Run command no arp static A.B.C.D HH:HH:HH:HH:HH:HH interface {ethernet|link-aggregation|vlan} interface_name[.subinterface-number] to delete static ARP entries.
[Use Cases]
sonic# configure terminalsonic(config)# arp static 3.3.3.3 00:00:00:00:00:01 interface vlan 5sonic(config)# arp static 4.4.4.4 00:00:00:00:00:02 interface ethernet 0/1sonic(config)# arp static 5.5.5.5 00:00:00:00:00:03 interface link-aggregation 1arp timeout
Section titled “arp timeout”[Command]
arp timeout aging-time
[Purpose]
Configure ARP aging time.
[Parameters]
| Parameter | Description |
|---|---|
| aging-time | Specify the aging time in seconds. The default ARP aging time is 300s, and the range is from 60 to 86400. |
[View]
Global Configuration View / Physical Interface / Sub-interface / VLANIF / LAGIF Configuration View
[Notes]
Run command no arp timeout to delete ARP aging time configuration and restore to default.
[Use Cases]
sonic# configure terminalsonic(config)# arp timeout 500sonic(config)# interface vlan 100sonic(config-vlanif-100)# arp timeout 8500arp probe interval time
Section titled “arp probe interval time”[Command]
arp probe interval time
[Purpose]
Configure ARP probe interval.
[Parameters]
| Parameter | Description |
|---|---|
| time | Specify the interval in seconds, the default value is 6 seconds, and the range is 1~65535. |
[View]
Global Configuration View / Physical Interface / Sub-interface / VLANIF / LAGIF Configuration View
[Notes]
Run command no arp probe interva l to delete the ARP probe interval configuration and restore the default value.
[Use Cases]
sonic# configure terminalsonic(config)# arp probe interval 10sonic(config)# interface ethernet 0/80sonic(config-if-0/80)# arp probe interval 5sonic(config-if-0/80)# no arp probe intervalarp probe times probe-times
Section titled “arp probe times probe-times”[Command]
arp probe times probe-times
[Purpose]
Configure ARP probe times.
[Parameters]
| Parameter | Description |
|---|---|
| probe-times | Specify ARP probe times, the default value is 5 times, and the range is 1~65535. |
[View]
Physical Interface / Sub-interface / VLANIF / LAGIF Configuration View
[Notes]
Run command no arp probe times to delete the ARP probe times configuration and restore the default value.
[Use Cases]
sonic# configure terminalsonic(config)# arp probe times 10sonic(config)# interface ethernet 0/80sonic(config-if-0/80)# arp probe times 14sonic(config-if-0/80)# no arp probe timesNDP View
Section titled “NDP View”Table 3 NDP View
| Command | Purpose |
|---|---|
| show ndp | Display NDP table. |
show ndp
Section titled “show ndp”[Command]
show ndp
[Purpose]
Display NDP table.
[View]
Privileged User View
[Use Cases]
sonic# show ndpAddress MacAddress Iface Vlan Status--------- ----------------- ---------- ------ ---------2023::2 00:00:01:00:00:01 0/24 - PERMANENTTotal number of entries 1NDP Config
Section titled “NDP Config”Table 4 NDP Config
| Command | Purpose |
|---|---|
| ndp static *A::B HH:HH:HH:HH:HH:HH *interface{ethernet|link-aggregation|vlan} interface_name | Configure static NDP table entries. |
ndp static A::B HH:HH:HH:HH:HH:HH interface {ethernet|link-aggregation|vlan} interface_name[.subinterface-number]
Section titled “ndp static A::B HH:HH:HH:HH:HH:HH interface {ethernet|link-aggregation|vlan} interface_name[.subinterface-number]”[Command]
ndp static A::B HH:HH:HH:HH:HH:HH interface {ethernet|link-aggregation|vlan} interface_name[.subinterface-number]
[Purpose]
Configure static NDP table entries.
[Parameters]
| Parameter | Description |
|---|---|
| A::B | IPv6 address. |
| HH:HH:HH:HH:HH:HH | MAC address. |
| interface_name | Interface name (eg.0/1). |
| subinterface-number | Subinterface number. |
[View]
Global Configuration View
[Notes]
Run command no arp static A::B HH:HH:HH:HH:HH:HH interface {ethernet|link-aggregation|vlan} interface_name[.subinterface-number] to delete static NDP.
[Use Cases]
sonic# configure terminalsonic(config)# ndp static 2023::2 00:00:01:00:00:01 interface ethernet 0/24ARP/ND to host
Section titled “ARP/ND to host”There are two levels of policy for ARP/ND to host:
- Level 1: Interface-based Interface-based policies are divided into default policy and user-defined policy. The system gives priority to matching user-defined policy. If not matched, the default policy will be used. Optional actions include permit, deny, and pass. While permit and deny mean to perform ARP/ND to host route conversion and non-conversion behavior directly without matching the next level of segment policy, pass means to skip the interface policy process and enter the next level of policy.
- Level 2: Segment-based Segment policy is also divided into default policy and user-defined segment policy. The system matches user-defined policy first, if not matched, then the default policy will be used. Optional actions include permit and deny, which correspond to ARP/ND to host route conversion and non-conversion behavior.
ARP/ND to host View
Section titled “ARP/ND to host View”Table 5 ARP/ND to Host View
| Command | Purpose |
|---|---|
| show arp-to-host summary | Display ARP/ND to Host summary info. |
| show arp-to-host policy | Display ARP/ND to Host policy configuration. |
show arp-to-host summary
Section titled “show arp-to-host summary”[Command]
show arp-to-host summary
[Purpose]
Display ARP/ND to host summary info.
[View]
Privileged User View
[Use Cases]
sonic# show arp-to-host summaryVrf name Convert Fast convergence Metric---------- --------- ------------------ --------default enable disable 5200show arp-to-host policy
Section titled “show arp-to-host policy”[Command]
show arp-to-host policy
[Purpose]
Display ARP/ND to host policy configuration.
[View]
Privileged User View
[Use Cases]
sonic# show arp-to-host policyPort:Port Policy---------- --------0/56 permitNetwork:Vrf name Network Policy---------- ---------- --------default 1.1.1.1/24 permitARP/ND to host Config
Section titled “ARP/ND to host Config”Table 6 ARP to Host Config
| Command | Purpose |
|---|---|
| arp-to-host | Enter ARP/ND to host Configuration View. |
| convert enablevrf vrf_name | Enable ARP/ND-to-host for specified VRFs. |
| policy default_policy port vrf vrf_name {permit|deny|pass} | Configure ARP/ND-to-host default interface policy. |
| policy port{ethernet|link-aggregation} interface_name {permit|deny|pass} | Configure an ARP/ND-to-host user-defined interface policy. |
| policy default_policy network vrf vrf_name {permit|deny} | Configure ARP/ND-to-host default segment policy. |
| policy network {A.B.C.D/M|X:X::X:X/M} vrf vrf_name {permit|deny} | Configure ARP/ND-to-host user-defined segment policy. |
arp-to-host
Section titled “arp-to-host”[Command]
arp-to-host
[Purpose]
Enter ARP/ND-to-host Configuration View
[View]
Global Configuration View
[Use Cases]
sonic# configure terminalsonic(config)# arp-to-hostsonic(config-arp-to-host)# convert enable vrf defaultconvert enable vrf vrf_name
Section titled “convert enable vrf vrf_name”[Command]
convert enable vrf vrf_name
[Purpose]
Enable ARP/ND-to-host for specified VRFs.
[Parameters]
| Parameter | Description |
|---|---|
| vrf_name | Specify the VRF name, the default VRF is default. |
[View]
ARP/ND-to-host Configuration View
[Notes]
Run command no convert enable vrf vrf_name to disable ARP/ND-to-host for specified VRFs.
[Use Cases]
sonic# configure terminalsonic(config)# arp-to-hostsonic(config-arp-to-host)# convert enable vrf defaultsonic(config-arp-to-host)# convert enable vrf 123policy default_policy port vrf vrf_name {permit|deny|pass}
Section titled “policy default_policy port vrf vrf_name {permit|deny|pass}”[Command]
policy default_policy port vrf vrf_name {permit|deny|pass}
[Purpose]
Configure ARP/ND-to-host default interface policy.
[Parameters]
| Parameter | Description |
|---|---|
| vrf_name | Specify the VRF name, the default VRF is default. |
[View]
ARP/ND-to-host Configuration View
[Notes]
Run command no policy default_policy port vrf vrf_name to delete ARP/ND-to-host default interface policy.
[Use Cases]
sonic# configure terminalsonic(config)# arp-to-hostsonic(config-arp-to-host)# policy default_policy port vrf default permitpolicy port {ethernet|link-aggregation} interface_name {permit|deny|pass}
Section titled “policy port {ethernet|link-aggregation} interface_name {permit|deny|pass}”[Command]
policy port {ethernet|link-aggregation} interface_name {permit|deny|pass}
[Purpose]
Configure an ARP/ND-to-host user-defined interface policy.
[Parameters]
| Parameter | Description |
|---|---|
| interface_name | Interface name (eg.0/1) |
[View]
ARP/ND-to-host Configuration View
[Notes]
Run command no policy port {ethernet|link-aggregation} interface_name to delete ARP/ND-to-host user-defined interface policy.
[Use Cases]
sonic# configure terminalsonic(config)# arp-to-hostsonic(config-arp-to-host)# policy port ethernet 0/4 permitsonic(config-arp-to-host)# policy port link-aggregation 4 denypolicy default_policy network vrf vrf_name {permit|deny}
Section titled “policy default_policy network vrf vrf_name {permit|deny}”[Command]
policy default_policy network vrf vrf_name {permit|deny}
[Purpose]
Configure ARP/ND-to-host default segment policy.
[Parameters]
| Parameter | Description |
|---|---|
| vrf_name | Specify the VRF name, the default VRF is default. |
[View]
ARP/ND-to-host Configuration View
[Notes]
Run command no policy default_policy network vrf vrf_name to delete ARP/ND-to-host default segment policy.
[Use Cases]
sonic# configure terminalsonic(config)# arp-to-hostsonic(config-arp-to-host)# policy default_policy network vrf default denypolicy network {A.B.C.D/M|X:X::X:X/M} vrf vrf_name {permit|deny}
Section titled “policy network {A.B.C.D/M|X:X::X:X/M} vrf vrf_name {permit|deny}”[Command]
policy network {A.B.C.D/M|X:X::X:X/M} vrf vrf_name {permit|deny}
[Purpose]
Configure ARP/ND-to-host user-defined segment policy.
[Parameters]
| Parameter | Description |
|---|---|
| A.B.C.D/M | IPv4 address with prefix length. |
| X:X::X:X/M | IPv6 address with prefix length. |
| vrf_name | Specify the VRF name, the default VRF is default. |
[View]
ARP/ND-to-host Configuration View
[Notes]
Run command no policy default_policy network vrf vrf_name to delete ARP/ND-to-host user-defined segment policy.
[Use Cases]
sonic# configure terminalsonic(config)# arp-to-hostsonic(config-arp-to-host)# policy network 10.179.238.64/26 vrf 123 denyARP Proxy
Section titled “ARP Proxy”Table 7 ARP Proxy
| Command | Purpose |
|---|---|
| arp proxy [mode {default|evpn}] | Enable ARP proxy. |
| arp proxy extend request | Enable active detection for silent terminals. |
| arp proxy extend reply | Enable learning of ARP Reply messages. |
arp proxy [mode {default|evpn}]
Section titled “arp proxy [mode {default|evpn}]”[Command]
arp proxy [mode {default|evpn}]
[Purpose]
Enable ARP proxy.
[View]
Physical Interface / Sub-interface / VLANIF / LAGIF Configuration View
[Notes]
The mode can be default or evpn, and the default mode is default. Run command no arp proxy to disable ARP proxy.
[Use Cases]
sonic# configure terminalsonic(config)# interface vlan 100sonic(config-vlanif-100)# arp proxysonic(config-vlanif-100)# arp proxy mode evpnarp proxy extend request
Section titled “arp proxy extend request”[Command]
arp proxy extend request
[Purpose]
Enable active detection for silent terminals.
[View]
Physical Interface / Sub-interface / VLANIF / LAGIF Configuration View
[Notes]
This feature is enabled when there are silent terminals (terminals which do not send ARP messages actively) in the Layer 2 network. Once enabled, when the switch receives an ARP request, it will send ARP request to probe if the target ip belongs to the same network segment. Run command no arp proxy extend request to disable this feature.
[Use Cases]
sonic# configure terminalsonic(config)# interface 0/60sonic(config)# interface ethernet 0/60sonic(config-if-0/60)# arp proxy extend requestsonic(config-if-0/60)# no arp proxy extend requestarp proxy extend reply
Section titled “arp proxy extend reply”[Command]
arp proxy extend reply
[Purpose]
Enable learning of ARP Reply messages.
[View]
Physical Interface / Sub-interface / VLANIF / LAGIF Configuration View
[Notes]
Run command no arp proxy extend reply to disable this feature.
[Use Cases]
sonic# configure terminalsonic(config)# interface ethernet 0/60sonic(config-if-0/60)# arp proxy extend replysonic(config-if-0/60)# no arp proxy extend replyND Proxy
Section titled “ND Proxy”Table 8 ND Proxy
| Command | Purpose |
|---|---|
| nd proxy mode default | Enable ND proxy. |
nd proxy mode default
Section titled “nd proxy mode default”[Command]
nd proxy mode default
[Purpose]
Enable ND proxy.
[View]
Physical Interface / VLANIF / LAGIF Configuration View
[Notes]
Run command no nd proxy to disable ND proxy.
[Use Cases]
sonic# configure terminalsonic(config)# interface vlan 100sonic(config-vlanif-100)# nd proxy mode defaultSLAAC View
Section titled “SLAAC View”Table 9 SLAAC View
| Command | Purpose |
|---|---|
| show radv | Display RA configuration. |
show radv
Section titled “show radv”[Command]
show radv
[Purpose]
Display RA configuration
[View]
Privileged User View
[Use Cases]
sonic# show radvEnabled: trueGlobal unicast only: false+-------------+---------------+----------------+--------------------+-----------+-----------------+------------+---------+-------------------------+| Interface | Prefix | Managed_Flag | Otherconfig_Flag | OffLink | No-autonomous | Link_MTU | RDNSS | Route | Preference |+=============+===============+================+====================+===========+=================+============+=========+=========================+| vlan11 | | on | | | | | | |+-------------+---------------+----------------+--------------------+-----------+-----------------+------------+---------+-------------------------+| 0/52 | 2000:101::/64 | on | on | on | on | 1900 | 2000::1 | 2000:101::10/128 | high |+-------------+---------------+----------------+--------------------+-----------+-----------------+------------+---------+-------------------------+SLAAC Config
Section titled “SLAAC Config”Table 10 SLAAC Config
| Command | Purpose |
|---|---|
| radv enable | Enable RA notification. |
| radv dns-server X:X::X:X | Configure DNS information for RA notification. |
| radv link-mtu mtu | Configure the MTU of the link for RA notification. |
| radv prefix X:X::X:X/M | Configure prefix information for RA notification. |
| radv route-information X:X::X:X/M [preference{low|high|medium}] | Configure route information for RA notification. |
| radv managed-flag | Set the managed-flag to on. |
| radv other-config-flag | Set the other-config-flag to on. |
| radv offlink | Set the flag of on-link to off. |
| radv no-autonomous | Set the flag of autonomous to off. |
| radv ra-interval MaxRtrAdvInterval MinRtrAdvInterval | Configure the maximum and minimum time interval between two RA notifications |
radv enable
Section titled “radv enable”[Command]
radv enable
[Purpose]
Enable RA notification.
[View]
Global Configuration View
[Notes]
Run command radv commit to take effect. Run command no radv enable to disable RA notification.
[Use Cases]
sonic# configuresonic(config)# radv enablePlease enter 'radv commit' to take effectsonic(config)# radv commitradv dns-server X:X::X:X
Section titled “radv dns-server X:X::X:X”[Command]
radv dns-server X:X::X:X
[Purpose]
Configure DNS information for RA notification.
[Parameters]
| Parameter | Description |
|---|---|
| X:X::X:X | IPv6 address of DNS server. |
[View]
Physical Interface / Sub-interface/ VLANIF / LAGIF Configuration View
[Notes]
Run command radv commit to take effect. Run command no radv dns-server X:X::X:X to remove the configuration.
[Use Cases]
sonic# configuresonic(config)# interface ethernet 0/52sonic(config-if-0/52)# radv dns-server 2002::2Please enter 'radv commit' to take effectsonic(config-if-0/52)# radv commitradv link-mtu mtu
Section titled “radv link-mtu mtu”[Command]
radv link-mtu mtu
[Purpose]
Configure the MTU of the link for RA notification
[Parameters]
| Parameter | Description |
|---|---|
| mtu | Set link-mtu, the default value is 9216. |
[View]
Physical Interface / Sub-interface/ VLANIF / LAGIF Configuration View
[Notes]
Run command radv commit to take effect. Run command no radv link-mtu to remove the configuration.
[Use Cases]
sonic# configuresonic(config)# interface ethernet 0/52sonic(config-if-0/52)# radv link-mtu 1500Please enter 'radv commit' to take effectsonic (config-if-0/52)# radv commitsonic(config-if-0/52)#radv prefix X:X::X:X/M
Section titled “radv prefix X:X::X:X/M”[Command]
radv prefix X:X::X:X/M
[Purpose]
Configure prefix information for RA notification.
[Parameters]
| Parameter | Description |
|---|---|
| X:X::X:X/M | Network prefix for RA notifications |
[View]
Physical Interface / Sub-interface/ VLANIF / LAGIF Configuration View
[Notes]
When RA notification is enabled, you are required to set the prefix information, or the interface will not send RA messages. Run command radv commit to take effect. Run command no radv prefix X:X::X:X/M to remove the configuration.
[Use Cases]
sonic# configuresonic(config)# interface ethernet 0/52sonic(config-if-0/52)# radv prefix 3001::/64Please enter 'radv commit' to take effectsonic(config-if-0/52)# radv commitradv route-information X:X::X:X/M[preference{low|high|medium}]
Section titled “radv route-information X:X::X:X/M[preference{low|high|medium}]”[Command]
radv route-information X:X::X:X/M[preference{low|high|medium}]
[Purpose]
Configure route information for RA notification
[Parameters]
| Parameter | Description |
|---|---|
| X:X::X:X/M | The network segment of RA’s routing announcement |
[View]
Physical Interface / Sub-interface / VLANIF / LAGIF Configuration View
[Notes]
Run command radv commit to take effect Run command no radv route-information X:X::X:X/M to remove the configuration.
[Use Cases]
sonic# configuresonic(config)# interface ethernet 0/52sonic(config-if-0/52)# radv route-information 3001:1::/64 preference lowPlease enter 'radv commit' to take effectsonic(config-if-0/52)# radv commitradv managed-flag
Section titled “radv managed-flag”[Command]
radv managed-flag
[Purpose]
Set the managed-flag to on(default is off)
[View]
Physical Interface / Sub-interface / VLANIF / LAGIF Configuration View
[Notes]
Run command radv commit to take effect. Run command no radv managed-flag to revert it to off.
[Use Cases]
sonic# configuresonic(config)# interface ethernet 0/52sonic(config-if-0/52)# radv managed-flagPlease enter 'radv commit' to take effectsonic(config-if-0/52)# radv commitradv other-config-flag
Section titled “radv other-config-flag”[Command]
radv other-config-flag
[Purpose]
Set the other-config-flag to on (default is off).
[View]
Physical Interface / Sub-interface / VLANIF / LAGIF Configuration View
[Notes]
Run command radv commit to take effect. Run command no radv other-config-flag to revert it to off.
[Use Cases]
sonic# configuresonic(config)# interface ethernet 0/52sonic(config-if-0/52)# radv other-config-flagPlease enter 'radv commit' to take effectsonic(config-if-0/52)# radv commitradv offlink
Section titled “radv offlink”[Command]
radv offlink
[Purpose]
Set the flag of on-link to off (default is on).
[View]
Physical Interface / Sub-interface / VLANIF / LAGIF Configuration View
[Notes]
Run command radv commit to take effect. Run command no radv offlink to revert it to on.
[Use Cases]
sonic(config)# interface ethernet 0/52sonic(config-if-0/52)# radv offlinkPlease enter 'radv commit' to take effectsonic(config-if-0/52)# radv commitradv no-autonomous
Section titled “radv no-autonomous”[Command]
radv no-autonomous
[Purpose]
Set the flag of autonomous to off (default is on).
[View]
Physical Interface / Sub-interface / VLANIF / LAGIF Configuration View
[Notes]
Run command radv commit to take effect. Run command no radv no-autonomous to revert it to on.
[Use Cases]
sonic(config)# interface ethernet 0/52sonic(config-if-0/52)# radv no-autonomousPlease enter 'radv commit' to take effectsonic(config-if-0/52)# radv commitradv ra-interval MaxRtrAdvInterval MinRtrAdvInterval
Section titled “radv ra-interval MaxRtrAdvInterval MinRtrAdvInterval”[Command]
radv ra-interval MaxRtrAdvInterval MinRtrAdvInterval
[Purpose]
Configure the maximum and minimum time interval between two RA notifications.
[Parameters]
| Parameter | Description |
|---|---|
| MaxRtrAdvInterval | the maximum time interval for RA notifications, default value is 600, unit: seconds |
| MinRtrAdvInterval | the minimum time interval for RA notifications, default value is 600, unit: seconds |
[View]
Physical Interface / Sub-interface / VLANIF / LAGIF Configuration View
[Notes]
Run command radv commit to take effect. Run command no radv ra-interval to set back to default value.
[Use Cases]
sonic# configuresonic(config)# interface ethernet 0/40sonic(config-if-0/40)# radv ra-interval 50 25Please enter 'radv commit' to take effectsonic(config-if-0/40)# radv commit