Skip to content

Commit

Permalink
[Command-Reference] Add CLI docs for IP interface loopback action (so…
Browse files Browse the repository at this point in the history
  • Loading branch information
liorghub committed Jun 14, 2022
1 parent 288c2d8 commit 9e97311
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions doc/Command-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -3803,6 +3803,7 @@ This sub-section explains the following list of configuration on the interfaces.
9) advertised-types - to set interface advertised types
10) type - to set interface type
11) mpls - To add or remove MPLS operation for the interface
12) loopback-action - to set action for packet that ingress and gets routed on the same IP interface
From 201904 release onwards, the “config interface” command syntax is changed and the format is as follows:
Expand Down Expand Up @@ -4336,6 +4337,29 @@ MPLS operation for either physical, portchannel, or VLAN interface can be config
admin@sonic:~$ sudo config interface mpls remove Ethernet4
```
**config interface loopback-action <interface_name> <action> (Versions >= 202205)**
This command is used for setting the action being taken on packets that ingress and get routed on the same IP interface.
Loopback action can be set on IP interface from type physical, portchannel, VLAN interface and VLAN subinterface.
Loopback action can be drop or forward.
- Usage:
```
config interface loopback-action --help
Usage: config interface loopback-action [OPTIONS] <interface_name> <action>

Set IP interface loopback action

Options:
-?, -h, --help Show this message and exit.
```
- Example:
```
admin@sonic:~$ config interface loopback-action Ethernet0 drop
admin@sonic:~$ config interface loopback-action Ethernet0 forward

```
Go Back To [Beginning of the document](#) or [Beginning of this section](#interfaces)
## Interface Naming Mode
Expand Down

0 comments on commit 9e97311

Please sign in to comment.