Koozali.org: home of the SME Server

setup default gateway [SOLVED]

Offline machoboy

  • 4
  • +0/-0
setup default gateway [SOLVED]
« on: May 23, 2007, 12:39:35 PM »
Hi,
I have setup my server in server+gateway mode and get back to server only mode.
The default gateway of the server is the IP address of the server. I have to setup manually the default gateway.
How can I set this in a config file for next reboot ?

Thanks,

Offline mmccarn

  • *
  • 2,656
  • +10/-0
setup default gateway [SOLVED]
« Reply #1 on: May 23, 2007, 03:05:33 PM »
Code: [Select]
config set GatewayIP a.b.c.d
expand-template /etc/sysconfig/network
service network restart

Offline machoboy

  • 4
  • +0/-0
setup default gateway [SOLVED]
« Reply #2 on: May 23, 2007, 04:33:47 PM »
Great !
thanks a lot

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: setup default gateway [SOLVED]
« Reply #3 on: May 23, 2007, 07:49:43 PM »
Quote from: "machoboy"

I have setup my server in server+gateway mode and get back to server only mode.
The default gateway of the server is the IP address of the server. I have to setup manually the default gateway.


If you used the console option 2 to change the configuration and something didn't work correctly, then you have found a bug. Please report, in detail, via the Bug Tracker.

But just to clarify - you say "The default gateway of the server is the IP address of the server". That makes no sense to me. Did you enter the server's own IP address when asked for the default gateway address to use? If so, why did you not enter the correct default gateway there?