Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine doc on show loopback/mgmt interfaces #1958

Merged
merged 1 commit into from
Dec 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions doc/Command-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* [Introduction](#introduction)
* [Basic Tasks](#basic-tasks)
* [SSH Login](#ssh-login)
* [Show Management Interface](#show-management-interface)
* [Configuring Management Interface](#configuring-management-interface)
* [Getting Help](#getting-help)
* [Help for Config Commands](#help-for-config-commands)
Expand Down Expand Up @@ -88,6 +89,7 @@
* [Loading Management Configuration](#loading-management-configuration)
* [Saving Configuration to a File for Persistence](saving-configuration-to-a-file-for-persistence)
* [Loopback Interfaces](#loopback-interfaces)
* [Loopback show commands](#loopback-show-commands)
* [Loopback config commands](#loopback-config-commands)
* [VRF Configuration](#vrf-configuration)
* [VRF show commands](#vrf-show-commands)
Expand Down Expand Up @@ -254,6 +256,10 @@ By default, login takes the user to the default prompt from which all the show c

Go Back To [Beginning of the document](#) or [Beginning of this section](#basic-tasks)

### Show Management Interface

Please check [show ip interfaces](#show-ip-interfaces)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean there is no specific command only to show management and loopback interfaces? When these interfaces need to be shown, just call show ip interfaces and find the ones of interest?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Do you have any concern?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, just to clarify


### Configuring Management Interface

The management interface (eth0) in SONiC is configured (by default) to use DHCP client to get the IP address from the DHCP server. Connect the management interface to the same network in which your DHCP server is connected and get the IP address from DHCP server.
Expand Down Expand Up @@ -4267,7 +4273,7 @@ This sub-section explains the various IP protocol specific show commands that ar
4) prefix-list
5) protocol

**show ip route**
#### show ip route

This command displays either all the route entries from the routing table or a specific route.

Expand Down Expand Up @@ -4322,7 +4328,7 @@ This command displays either all the route entries from the routing table or a s
* directly connected, Loopback11
```

**show ip interfaces**
#### show ip interfaces

This command displays the details about all the Layer3 IP interfaces in the device for which IP address has been assigned.
The type of interfaces include the following.
Expand Down Expand Up @@ -4357,7 +4363,7 @@ The type of interfaces include the following.
lo 127.0.0.1/8 up/up N/A N/A
```

**show ip protocol**
#### show ip protocol

This command displays the route-map that is configured for the routing protocol.
Refer the routing stack [Quagga Command Reference](https://www.quagga.net/docs/quagga.pdf) or [FRR Command Reference](https://buildmedia.readthedocs.org/media/pdf/frrouting/latest/frrouting.pdf) to know more about this command.
Expand Down Expand Up @@ -5046,7 +5052,11 @@ Go Back To [Beginning of the document](#) or [Beginning of this section](#loadin

## Loopback Interfaces

### Loopback Config commands
### Loopback show commands

Please check [show ip interfaces](#show-ip-interfaces)

### Loopback config commands

This sub-section explains how to create and delete loopback interfaces.

Expand Down