This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Command Line Interface (CLI) for default gateway route

Hi,
Can anybody guide what would be the "CC - command" equivalent command for:
route add default gw 

Or steps to update this to last forever, as the above command only lasts till machine isn't restarted or turned off.

What I am trying to achieve is update the default interface to a public IP - so that it could be made accessible. 

I have been able to modify the eth0 through a CC command but only am able to access the machine after I execute the above command.

Any help would be appreciated


This thread was automatically locked due to age.
Parents
  • I'm not sure what you mean by "default interface" here.  The installation wizard configures an interface it names "Internal" without a default gw (typically), but that can be specified.  Additional interfaces can be defined in WebAdmin.

    Be careful that you don't lock yourself out of the machine if there's only a single interface defined.

    If you need to work from the command line, there are lots of articles in the KnowledgeBase.  https://community.sophos.com/products/unified-threat-management/astaroorg/f/51/t/21326 also might be helpful.

    I don't think either resource addresses this question though.  If you are logged in as root, I think you can just add cc in front of the temporary command if you've tested that and know it works.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • What I mean is that when I enter the route-add command I get below results:
    Astaro:/root # route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    default         vmm-216-254-169 0.0.0.0         UG    0      0        0 eth0
    loopback        *               255.0.0.0       U     0      0        0 lo
    vmm-216-254-169 *               255.255.255.248 U     0      0        0 eth0


    But this is a result of having executed the below command first:
    route add default gw 216.254.169.###

    But "route add" command loses effect after machine is restarted or turned off. What I am looking for is permanent substitute  for "route add default gw" command through command line. Which I believe is the astaro Command Line Interface (CC)
Reply
  • What I mean is that when I enter the route-add command I get below results:
    Astaro:/root # route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    default         vmm-216-254-169 0.0.0.0         UG    0      0        0 eth0
    loopback        *               255.0.0.0       U     0      0        0 lo
    vmm-216-254-169 *               255.255.255.248 U     0      0        0 eth0


    But this is a result of having executed the below command first:
    route add default gw 216.254.169.###

    But "route add" command loses effect after machine is restarted or turned off. What I am looking for is permanent substitute  for "route add default gw" command through command line. Which I believe is the astaro Command Line Interface (CC)
Children
No Data