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

[action] [PR:17281] Fix can't access IPV6 address via management interface because 'default' route table does not add to route lookup issue. #17676

Merged
merged 1 commit into from
Jan 4, 2024

Commits on Jan 4, 2024

  1. Fix can't access IPV6 address via management interface because 'defau…

    …lt' route table does not add to route lookup issue. (sonic-net#17281)
    
    Fix can't access IPV6 address via management interface because 'default' route table does not add to route lookup issue.
    
    #### Why I did it
    When device set with IPV6 TACACS server address, and shutdown all BGP, device can't connect to TACACS server via management interface.
    
    After investigation, I found the IPV6 'default' route table does not add to route lookup:
    
    admin@vlab-01:~$ ip -6 rule list
    1001:   from all lookup local
    32765:  from fec0::ffff:afa:1 lookup default
    32766:  from all lookup main
    admin@vlab-01:~$
    
    As compare:
    admin@vlab-01:~$ ip -4 rule list
    1001:   from all lookup local
    32764:  from all to 172.17.0.1/24 lookup default
    32765:  from 10.250.0.101 lookup default
    32766:  from all lookup main
    32767:  from all lookup default <== 'default' route table exist in IPV4 route lookup
    
    Issue fix by add 'default' route table to route lookup with following command:
    admin@vlab-01:~$ sudo ip -6 rule add pref 32767 lookup default
    admin@vlab-01:~$ ip -6 rule list
    1001:   from all lookup local
    32765:  from fec0::ffff:afa:1 lookup default
    32766:  from all lookup main
    32767:  from all lookup default <== 'default' route table been added to IPV6 route lookup
    admin@vlab-01:~$
    
    ##### Work item tracking
    - Microsoft ADO: 25798732
    
    #### How I did it
    When management interface using 'default' route table, add 'default' route table to IPV6 route lookup.
    
    #### How to verify it
    Pass all UT.
    Add new UT to cover this change.
    Manually verify issue fixed:
    
    ### Tested branch (Please provide the tested image version)
    
    - [x]  master-17281.417570-2133d58fa
    
    #### Description for the changelog
    Fix can't access IPV6 address via management interface because 'default' route table does not add to route lookup issue.
    liuh-80 authored and mssonicbld committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    6aca364 View commit details
    Browse the repository at this point in the history