Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I followed the instrcutins here Linux setup default gateway with route command to set up a default route for my ubuntu server with three network cards. (This works but ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Location
    Auckland, New Zealand
    Posts
    3

    IP Routing Table


    Hi,

    I followed the instrcutins here Linux setup default gateway with route command
    to set up a default route for my ubuntu server with three network cards.

    (This works but the changes are only temporary. )
    route add default gw {IP-ADDRESS} {INTERFACE-NAME}

    It all works fine, but after a restarting the network all my changes are lost. What do I need to do make changes permanent?

    Thanks, Uwe

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    In /etc/network/interfaces add your gateway to the bottom

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    Oct 2007
    Location
    Auckland, New Zealand
    Posts
    3

    Thanks

    Hi Lazydog,

    Thanks for your tip. In the end it was what you said -> moving the interface which is supposed to be the default to the end of the file AND (now you possibly laugh) remove the other gateway entries from the other interface entries
    Thanks,
    Uwe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •