Skip to content

The interface adds a secondary address, show ip interfaces does not display the BGP Neighbor and Neighbor IP corresponding to the primary ip of the interface #5423

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

Closed
tim-rj opened this issue Sep 22, 2020 · 0 comments · Fixed by sonic-net/sonic-utilities#1134

Comments

@tim-rj
Copy link
Contributor

tim-rj commented Sep 22, 2020

Description

The interface adds a secondary address, show ip interfaces does not display the BGP Neighbor and Neighbor IP corresponding to the primary ip of the interface

Steps to reproduce the issue:

  1. config primary ip of the interface,and add it's BGP Neighbor
    2.show ip interface Confirm that the interface shows BGP neighbor and neighbor IP
    3.config secondary ip of the interface
    4.show ip interface

Describe the results you received:
The interface adds a secondary address, show ip interfaces does not display the BGP Neighbor and Neighbor IP corresponding to the primary ip of the interface


root@sonic:/etc/sonic# show ip interfaces                                  
Interface        Master    IPv4 address/mask    Admin/Oper    BGP Neighbor    Neighbor IP
---------------  --------  -------------------  ------------  --------------  -------------
Ethernet49                 10.0.0.96/31         up/up         ARISTA21T0      10.0.0.97
Loopback0                  10.1.0.1/32          up/up         N/A             N/A
PortChannel0011            11.1.1.1/31          up/up         N/A             N/A
PortChannel0013            13.1.1.1/31          up/up         N/A             N/A
Vlan2                      12.1.1.1/16          up/up         N/A             N/A
Vlan3                      3.3.3.1/16           up/up         N/A             N/A
docker0                    240.127.1.1/24       up/down       N/A             N/A
eth0                       172.28.58.174/24     up/up         N/A             N/A
lo                         127.0.0.1/8          up/up         N/A             N/A
root@sonic:/etc/sonic# 
root@sonic:/etc/sonic# 
yoot@sonic:/etc/sonic# config interface ip add Ethernet49 10.10.49.1/24 secondary
root@sonic:/etc/sonic# 
root@sonic:/etc/sonic# 
root@sonic:/etc/sonic# show ip interfaces 
Interface        Master    IPv4 address/mask    Admin/Oper    BGP Neighbor    Neighbor IP
---------------  --------  -------------------  ------------  --------------  -------------
Ethernet49                 10.0.0.96/31         up/up         N/A             N/A
                           10.10.49.1/24
Loopback0                  10.1.0.1/32          up/up         N/A             N/A
PortChannel0011            11.1.1.1/31          up/up         N/A             N/A
PortChannel0013            13.1.1.1/31          up/up         N/A             N/A
Vlan2                      12.1.1.1/16          up/up         N/A             N/A
Vlan3                      3.3.3.1/16           up/up         N/A             N/A
docker0                    240.127.1.1/24       up/down       N/A             N/A
eth0                       172.28.58.174/24     up/up         N/A             N/A
lo                         127.0.0.1/8          up/up         N/A             N/A
root@sonic:/etc/sonic# 

Describe the results you expected:
The interface adds a secondary address, show ip interfaces can display the BGP Neighbor and Neighbor IP corresponding to the primary ip of the interface

Additional information you deem important (e.g. issue happens only occasionally):

**Output of `show version`:**

```

root@sonic:/home/admin# show version

SONiC Software Version: SONiC.HEAD.182-75068f3a
Distribution: Debian 9.13
Kernel: 4.9.0-11-2-amd64
Build commit: 75068f3
Build date: Tue Sep 15 20:56:19 UTC 2020
Built by: johnar@jenkins-worker-7

Platform: x86_64-ruijie_b6510-48vs8cq-r0
HwSKU: B6510-48VS8CQ
ASIC: broadcom
Serial Number: G1W10072
Uptime: 15:32:00 up 8 min, 1 user, load average: 0.56, 2.74, 1.68

Docker images:
REPOSITORY TAG IMAGE ID SIZE
docker-syncd-brcm HEAD.182-75068f3a e0a8a1e70567 436MB
docker-syncd-brcm latest e0a8a1e70567 436MB
docker-platform-monitor HEAD.182-75068f3a 7a0b4c32e32a 357MB
docker-platform-monitor latest 7a0b4c32e32a 357MB
docker-router-advertiser HEAD.182-75068f3a 5b68a457b247 289MB
docker-router-advertiser latest 5b68a457b247 289MB
docker-fpm-frr HEAD.182-75068f3a d68563ab47ff 334MB
docker-fpm-frr latest d68563ab47ff 334MB
docker-sflow HEAD.182-75068f3a efaf9fdec8fb 314MB
docker-sflow latest efaf9fdec8fb 314MB
docker-lldp-sv2 HEAD.182-75068f3a eb734d856002 311MB
docker-lldp-sv2 latest eb734d856002 311MB
docker-orchagent HEAD.182-75068f3a 31ab84cddd9b 333MB
docker-orchagent latest 31ab84cddd9b 333MB
docker-dhcp-relay HEAD.182-75068f3a 0416f768a8aa 299MB
docker-dhcp-relay latest 0416f768a8aa 299MB
docker-database HEAD.182-75068f3a 6be94df5546f 289MB
docker-database latest 6be94df5546f 289MB
docker-snmp-sv2 HEAD.182-75068f3a 7f94958e28db 347MB
docker-snmp-sv2 latest 7f94958e28db 347MB
docker-teamd HEAD.182-75068f3a d1db1b60ffec 314MB
docker-teamd latest d1db1b60ffec 314MB
docker-nat HEAD.182-75068f3a a08bed4749c5 316MB
docker-nat latest a08bed4749c5 316MB
docker-sonic-mgmt-framework HEAD.182-75068f3a 4f9ba411a805 430MB
docker-sonic-mgmt-framework latest 4f9ba411a805 430MB
docker-sonic-telemetry HEAD.182-75068f3a ad6b2e2569f2 353MB
docker-sonic-telemetry latest ad6b2e2569f2 353MB
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```
lguohan pushed a commit to sonic-net/sonic-utilities that referenced this issue Oct 7, 2020
…nd ip (#1134)

**- What I did**
Fix sonic-net/sonic-buildimage#5423
**- How I did it**
store neighbor info into array for later showing.
**- How to verify it**
config interface ip add Ethernet49 xxx secondary many times
show ip interface
**- Previous command output (if the output of a command-line utility has changed)**
```
root@sonic:/home/admin# show ip interfaces
Interface        Master    IPv4 address/mask    Admin/Oper    BGP Neighbor    Neighbor IP
---------------  --------  -------------------  ------------  --------------  -------------
Ethernet49                 10.0.0.96/31         up/up         N/A             N/A
                           10.10.49.1/24
```
**- New command output (if the output of a command-line utility has changed)**
```
root@sonic:/usr/lib/python2.7/dist-packages/show# show ip interfaces
Interface    Master           IPv4 address/mask    Admin/Oper    BGP Neighbor    Neighbor IP
-----------  ---------------  -------------------  ------------  --------------  -------------
Ethernet49                    10.0.0.96/31         up/up         ARISTA21T0      10.0.0.97
                              10.10.49.1/24        up/up         N/A             N/A
```

Co-authored-by: shaoshouping <[email protected]>
malletvapid23 added a commit to malletvapid23/Sonic-Utility that referenced this issue Aug 3, 2023
…nd ip (#1134)

**- What I did**
Fix sonic-net/sonic-buildimage#5423
**- How I did it**
store neighbor info into array for later showing.
**- How to verify it**
config interface ip add Ethernet49 xxx secondary many times
show ip interface
**- Previous command output (if the output of a command-line utility has changed)**
```
root@sonic:/home/admin# show ip interfaces
Interface        Master    IPv4 address/mask    Admin/Oper    BGP Neighbor    Neighbor IP
---------------  --------  -------------------  ------------  --------------  -------------
Ethernet49                 10.0.0.96/31         up/up         N/A             N/A
                           10.10.49.1/24
```
**- New command output (if the output of a command-line utility has changed)**
```
root@sonic:/usr/lib/python2.7/dist-packages/show# show ip interfaces
Interface    Master           IPv4 address/mask    Admin/Oper    BGP Neighbor    Neighbor IP
-----------  ---------------  -------------------  ------------  --------------  -------------
Ethernet49                    10.0.0.96/31         up/up         ARISTA21T0      10.0.0.97
                              10.10.49.1/24        up/up         N/A             N/A
```

Co-authored-by: shaoshouping <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant