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

syslog message with invalid subnetmask #701

Open
vemulabalaji opened this issue Nov 21, 2018 · 1 comment
Open

syslog message with invalid subnetmask #701

vemulabalaji opened this issue Nov 21, 2018 · 1 comment

Comments

@vemulabalaji
Copy link

Hi,

On trying to configure an IP address using ifconfig command, i am observing syslog message with different subnet mask.

I am working on Mellanox target.

root@test-bed-1:/etc/sonic# show version
SONiC Software Version: SONiC.HEAD.794-c61c1d5
Distribution: Debian 9.6
Kernel: 4.9.0-7-amd64
Build commit: c61c1d5
Build date: Wed Nov 14 12:54:01 UTC 2018
Built by: johnar@jenkins-worker-4

I executed below command.

ifconfig Ethernet56 13.13.13.13/24 up

But i observed log messages with 13.13.13.13%23 and 13.13.13.13/8
After configuring "ifconfig Ethernet56" is showing configured IP address only.
But why are we observing these messages.
Can some one explain it.

Dec 8 20:51:33.672005 test-bed-1 INFO lldp#lldpd[22]: removal request for address of 13.13.13.13%23, but no knowledge of it
Dec 8 20:51:33.672005 test-bed-1 INFO lldp#supervisord: lldpd 2016-12-08T20:51:33 [INFO/netlink] removal request for address of 13.13.13.13%23, but no knowledge of it
Dec 8 20:51:33.673325 test-bed-1 NOTICE swss#orchagent: :- addRouterIntfs: Create router interface Ethernet56 MTU 9100
Dec 8 20:51:33.673748 test-bed-1 NOTICE swss#orchagent: :- addSubnetRoute: Create subnet route to 13.13.13.13/8 from Ethernet56
Dec 8 20:51:33.673891 test-bed-1 NOTICE swss#orchagent: :- addIp2MeRoute: Create IP2me route ip:13.13.13.13
Dec 8 20:51:33.674570 test-bed-1 INFO syncd#supervisord: syncd Dec 08 20:51:33 NOTICE SAI_RIF: mlnx_sai_rif.c[254]- mlnx_create_router_interface: Create rif, #0 VIRTUAL_ROUTER_ID=VIRTUAL_ROUTER,(0:0),0,0000,0 #1 SRC_MAC_ADDRESS=[24:8a:07:85:c7:00] #2 TYPE=PORT #3 PORT_ID=PORT,(0:0),13300,0000,0 #4 MTU=9100
Dec 8 20:51:33.675842 test-bed-1 NOTICE swss#orchagent: :- doTask: Router interface Ethernet56 IP 13.13.13.13/8 overlaps with 13.13.13.13/24.
Dec 8 20:51:33.675842 test-bed-1 NOTICE swss#orchagent: :- removeSubnetRoute: Remove subnet route to 13.13.13.13/8 from Ethernet56
Dec 8 20:51:33.675842 test-bed-1 NOTICE swss#orchagent: :- removeIp2MeRoute: Remove packet action trap route ip:13.13.13.13
Dec 8 20:51:33.675842 test-bed-1 NOTICE swss#orchagent: :- removeRouterIntfs: Remove router interface for port Ethernet56
Dec 8 20:51:33.676097 test-bed-1 NOTICE swss#orchagent: :- addRouterIntfs: Create router interface Ethernet56 MTU 9100
Dec 8 20:51:33.676253 test-bed-1 NOTICE swss#orchagent: :- addSubnetRoute: Create subnet route to 13.13.13.13/24 from Ethernet56
Dec 8 20:51:33.676455 test-bed-1 NOTICE swss#orchagent: :- addIp2MeRoute: Create IP2me route ip:13.13.13.13
Dec 8 20:51:33.684235 test-bed-1 INFO syncd#supervisord: syncd Dec 08 20:51:33 NOTICE SAI_RIF: mlnx_sai_rif.c[545]- mlnx_create_router_interface: Created rif rif 2
Dec 8 20:51:33.686779 test-bed-1 INFO syncd#supervisord: syncd Dec 08 20:51:33 NOTICE SAI_ROUTE: mlnx_sai_route.c[369]- mlnx_remove_route: Remove route route 13.0.0.0 255.0.0.0
Dec 8 20:51:33.688042 test-bed-1 INFO syncd#supervisord: syncd Dec 08 20:51:33 NOTICE SAI_ROUTE: mlnx_sai_route.c[369]- mlnx_remove_route: Remove route route 13.13.13.13 255.255.255.255
Dec 8 20:51:33.688886 test-bed-1 INFO syncd#supervisord: syncd Dec 08 20:51:33 NOTICE SAI_RIF: mlnx_sai_rif.c[590]- mlnx_remove_router_interface: Remove rif rif 2
Dec 8 20:51:33.695494 test-bed-1 INFO syncd#supervisord: syncd Dec 08 20:51:33 NOTICE SAI_RIF: mlnx_sai_rif.c[254]- mlnx_create_router_interface: Create rif, #0 VIRTUAL_ROUTER_ID=VIRTUAL_ROUTER,(0:0),0,0000,0 #1 SRC_MAC_ADDRESS=[24:8a:07:85:c7:00] #2 TYPE=PORT #3 PORT_ID=PORT,(0:0),13300,0000,0 #4 MTU=9100
Dec 8 20:51:33.704856 test-bed-1 INFO syncd#supervisord: syncd Dec 08 20:51:33 NOTICE SAI_RIF: mlnx_sai_rif.c[545]- mlnx_create_router_interface: Created rif rif 3
Dec 8 20:52:11.398678 test-bed-1 INFO swss.sh[2544]: 2016-12-08 20:52:11,398 INFO exited: enable_counters (exit status 0; expected)
Dec 8 20:52:18.552247 test-bed-1 INFO swss#supervisord 2016-12-08 20:52:11,398 INFO exited: enable_counters (exit status 0; expected)

@stcheng
Copy link
Contributor

stcheng commented Nov 27, 2018

on the master branch, could you use the command config interface <interface_name> ip add <ip_address>?

EdenGri pushed a commit to EdenGri/sonic-swss that referenced this issue Feb 28, 2022
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this issue Mar 1, 2023
…c-net#701)

SAI emulation support added for VOQ system ports. The changes include switch create initialization for VOQ switch objects. APIs for VOQ switch objects initialization, System Port configuration and System Port list initialization are provided.
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this issue Mar 1, 2023
VOQ switch objects are initialized during switch create. This VOQ objects are initialized after regular switch objects are initialized. This PR depends on sonic-net#701 for switch state initialization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants