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

Closed
sonic-net/sonic-utilities
#1134
@tim-rj

Description

@tim-rj

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)
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions