Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: ElFroggio on April 24, 2004, 06:26:03 PM

Title: Default gateway
Post by: ElFroggio on April 24, 2004, 06:26:03 PM
I had to install the server at another location, the default gateway was 192.168.1.1. I have moved the server need to have the gateway to 192.168.1.2

cat /etc/sysconfig/network
#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# SME Server software. Instead, modify the source template in
# an /etc/e-smith/templates-custom directory. For more
# information, see http://www.e-smith.org/custom/
#
# copyright (C) 1999-2003 Mitel Networks Corporation
#------------------------------------------------------------

NETWORKING=yes
FORWARD_IPV4=yes
HOSTNAME=mail

GATEWAY=192.168.1.2  

cd /etc/e-smith/templates-custom
[root@mail templates-custom]# dir -l
total 0            

How do I change it, so it stays?
Title: Default gateway
Post by: wyron on April 24, 2004, 07:25:35 PM
The SME server itself doesn't need a gateway, but if it is to be the gateway in your setup, just change its internal ip-address in server console, menu point 2. Configure this server.
I hope I've understood your question correctly ?
Title: Default gateway
Post by: ElFroggio on April 25, 2004, 03:45:52 AM
Actually not, because I did not describe the system properly.

It is setup as a server behind a firewall, therefore it needs a gateway address. I have set it manually, but if we reboot the system, it goes back to the old one.
Title: Default gateway
Post by: Anonymous on April 25, 2004, 04:12:26 AM
Just run the setup program and change the gateway IP address.