Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Host interface routing

    Problems Installing or Upgrading TNSR Software
    2
    4
    2.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hien
      last edited by

      I just finish install TNSR. How can I add a default route for management on host interface? There is no doc about routing on host interface.
      Thanks

      1 Reply Last reply Reply Quote 0
      • kiokomanK
        kiokoman LAYER 8
        last edited by kiokoman

        tnsr is on top of centos 8
        from shell as root or with sudo
        example:
        ip route add 172.18.0.0/24 via 192.168.10.1 dev ens256

        To make it persist

        nano /etc/sysconfig/network-scripts/route-ens256
        or vi 😑
        file need to be created
        Add the line
        172.18.0.0/24 via 192.168.10.1 dev ens256

        Immagine.jpg

        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
        Please do not use chat/PM to ask for help
        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

        1 Reply Last reply Reply Quote 0
        • H
          hien
          last edited by

          Thank you.
          So the default routing table is for host. Others tables will be used for TNSR network interfaces.

          1 Reply Last reply Reply Quote 0
          • kiokomanK
            kiokoman LAYER 8
            last edited by kiokoman

            the other network interface are hidden and you can't use it under centos if they are assigned to the dataplane
            to manage the route of the dataplane you need to do it with clixon_cli ->
            https://docs.netgate.com/tnsr/en/latest/routing/manage.html

            example (i'm using random ip here just to show you):

            sudo /usr/bin/clixon_cli
            config
            route ipv4 table ipv4-VRF:0
            route 172.18.0.0/24
            next-hop 0 via 192.168.150.2
            exit
            exit
            show route
            

            Immagine.jpg

            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
            Please do not use chat/PM to ask for help
            we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
            Don't forget to Upvote with the 👍 button for any post you find to be helpful.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.