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.

  1. 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
  2. Connect SSH to the YMP server, type the following command:
    sudo route del default dev YMPwaniface
    sudo route add default gw SBClaniface dev YMPwaniface
  3. 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.