Posted 2012-03-29 01:47 by Joe
set-default-gateway.pl
Changes the default network gateway on some system.
This command changes the default routing gateway IP address and device on some Cloudmin-managed system.
You must specify the system with the --host parameter,
and the new gateway IP with the --gateway flag.
If changing the gateway interface,
the --gateway-interface parameter can be given as well.
To remove the default gateway from a system altogether,
use the --no-gateway flag instead.
This function is only available on Xen and KVM systems. OpenVZ and Vservers virtualization does not allow virtual systems to have a different default gateway from the host system.
Example usage
cloudmin set-default-gateway --host xensomething.home --gateway 193.9.101.1 Set default gateway to 193.9.101.1.
Command Line Help
cloudmin set-default-gateway --host hostname
[--gateway address | --no-gateway]
[--gateway-interface name]
