Moving a Messaging Gateway (SMG) Control Center or Scanner from an existing network to a different network or subnet.
Login to the command line locally (For physical servers with monitor and keyboard or for VM's in the virtual console) as admin.
ifconfig eth0 <IP> netmask <netmask>Where <IP> is replaced by the IP you want to configure and <netmask> is replaced by the netmask
route add default gw <IP> eth0
This will temporarily modify the network configuration on the SMG appliance or VM. To make this change permanent the network configuration values will need to be updated in the SMG Control Center Administration > Configuration page.
Example
smg [10.7.5-4]> ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.25 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::215:5dff:fe01:2401 prefixlen 64 scopeid 0x20<link>
ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 818602 bytes 955360223 (911.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 221529 bytes 1194953562 (1.1 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.26 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::215:5dff:fe01:2402 prefixlen 64 scopeid 0x20<link>
ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 616 bytes 108044 (105.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5 bytes 446 (446.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 1079 bytes 98079 (95.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1079 bytes 98079 (95.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
smg [10.7.5-4]> route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
smg [10.7.5-4]> route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
smg [10.7.5-4]> ifconfig eth0 10.20.30.40 netmask 255.255.255.0
smg [10.7.5-4]> ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.20.30.40 netmask 255.255.255.0 broadcast 10.20.30.255
inet6 fe80::215:5dff:fe01:2402 prefixlen 64 scopeid 0x20<link>
ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 616 bytes 108044 (105.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5 bytes 446 (446.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
smg [10.7.5-4]> route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.20.30.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
smg [10.7.5-4]> route add default gw 10.20.30.1 eth0
smg [10.7.5-4]> route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.20.30.1 0.0.0.0 UG 0 0 0 eth0
10.20.30.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1