Linux - How to change default gateway, Changing Gateway IP Address
How to change default gateway
How to change default gateway
Server needs to have a single default gateway. DHCP servers will automatically assign a default gateway to DHCP configured NICs, but NICs with configured static IP addresses will need to have a manually configured default gateway. This can be done with a simple command. This example uses a newly installed wireless interface called wlan0, most PCs would be using the standard Ethernet interface eth0.
route add default gw 192.168.1.1 wlan0
In this case, make sure that the router/firewall with IP address 192.168.1.1 is connected to the same network as interface wlan0!
Once done, update your /etc/sysconfig/network file to reflect the change. This file is used to configure default gateway each time Linux boots.
NETWORKING=yes HOSTNAME=actsupport GATEWAY=192.168.1.1
The topic on Linux - How to change default gateway is posted by - Mani
Hope you have enjoyed, Linux - How to change default gatewayThanks for your time