Set SBC Server as Default Gateway
Set SBC LAN IP as the default gateway, so that the YMP can initiate outbound connections to the Internet through the SBC gateway.
-
Connect SSH to the SBC server, type the following command:
sudo echo 1 > /proc/sys/net/ipv4/ip_forward sudo iptables -t nat -A POSTROUTING -o SBCwaniface -j MASQUERADE
-
Connect SSH to the YMP server, type the following command:
sudo route del default dev YMPwaniface sudo route add default gw SBClaniface dev YMPwaniface
-
Type the following command to check if the configuration is correct.
sudo traceroute 8.8.8.8
If the configuration is successful, the route table should show SBC LAN IP address as the gateway IP.