ICS on Ubuntu 16.04 - 2 WAN 1 LAN

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












Everyone. Ubuntu Server 16.04



I have 2 WAN (PPPoE + Static). I want to share 2 WAN to LAN. How its possible?



My /etc/network/interfaces




auto lo enp4s0 enp3s0 enp2s5



iface lo inet loopback



iface enp4s0 inet dhcp (its need to be PPPoE)



allow-hotplug enp3s0 iface enp3s0 inet static
address 10.169.89.51
netmask 255.255.255.0
gateway 10.169.89.1
dns-nameserver 8.8.8.8



allow-hotplug enp2s5 iface enp2s5 inet static
address 192.168.0.147
netmask 255.255.255.0



pre-up iptables-restore < /etc/iptables.up.rules up route add -net
192.168.0.0 netmask 255.255.255.0 dev enp2s5 up route add -net 0.0.0.0 netmask 255.255.255.255 dev enp4s0 up route add -net 0.0.0.0 netmask
255.255.255.255 dev enp3s0 iptables -t nat -A POSTROUTING -o enp3s0 -j MASQUERADE








share|improve this question
























    up vote
    0
    down vote

    favorite












    Everyone. Ubuntu Server 16.04



    I have 2 WAN (PPPoE + Static). I want to share 2 WAN to LAN. How its possible?



    My /etc/network/interfaces




    auto lo enp4s0 enp3s0 enp2s5



    iface lo inet loopback



    iface enp4s0 inet dhcp (its need to be PPPoE)



    allow-hotplug enp3s0 iface enp3s0 inet static
    address 10.169.89.51
    netmask 255.255.255.0
    gateway 10.169.89.1
    dns-nameserver 8.8.8.8



    allow-hotplug enp2s5 iface enp2s5 inet static
    address 192.168.0.147
    netmask 255.255.255.0



    pre-up iptables-restore < /etc/iptables.up.rules up route add -net
    192.168.0.0 netmask 255.255.255.0 dev enp2s5 up route add -net 0.0.0.0 netmask 255.255.255.255 dev enp4s0 up route add -net 0.0.0.0 netmask
    255.255.255.255 dev enp3s0 iptables -t nat -A POSTROUTING -o enp3s0 -j MASQUERADE








    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Everyone. Ubuntu Server 16.04



      I have 2 WAN (PPPoE + Static). I want to share 2 WAN to LAN. How its possible?



      My /etc/network/interfaces




      auto lo enp4s0 enp3s0 enp2s5



      iface lo inet loopback



      iface enp4s0 inet dhcp (its need to be PPPoE)



      allow-hotplug enp3s0 iface enp3s0 inet static
      address 10.169.89.51
      netmask 255.255.255.0
      gateway 10.169.89.1
      dns-nameserver 8.8.8.8



      allow-hotplug enp2s5 iface enp2s5 inet static
      address 192.168.0.147
      netmask 255.255.255.0



      pre-up iptables-restore < /etc/iptables.up.rules up route add -net
      192.168.0.0 netmask 255.255.255.0 dev enp2s5 up route add -net 0.0.0.0 netmask 255.255.255.255 dev enp4s0 up route add -net 0.0.0.0 netmask
      255.255.255.255 dev enp3s0 iptables -t nat -A POSTROUTING -o enp3s0 -j MASQUERADE








      share|improve this question












      Everyone. Ubuntu Server 16.04



      I have 2 WAN (PPPoE + Static). I want to share 2 WAN to LAN. How its possible?



      My /etc/network/interfaces




      auto lo enp4s0 enp3s0 enp2s5



      iface lo inet loopback



      iface enp4s0 inet dhcp (its need to be PPPoE)



      allow-hotplug enp3s0 iface enp3s0 inet static
      address 10.169.89.51
      netmask 255.255.255.0
      gateway 10.169.89.1
      dns-nameserver 8.8.8.8



      allow-hotplug enp2s5 iface enp2s5 inet static
      address 192.168.0.147
      netmask 255.255.255.0



      pre-up iptables-restore < /etc/iptables.up.rules up route add -net
      192.168.0.0 netmask 255.255.255.0 dev enp2s5 up route add -net 0.0.0.0 netmask 255.255.255.255 dev enp4s0 up route add -net 0.0.0.0 netmask
      255.255.255.255 dev enp3s0 iptables -t nat -A POSTROUTING -o enp3s0 -j MASQUERADE










      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 26 at 15:44









      hgf50959

      11




      11

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028460%2fics-on-ubuntu-16-04-2-wan-1-lan%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028460%2fics-on-ubuntu-16-04-2-wan-1-lan%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491