Configure a gateway service shared network in Ubuntu

Source: Internet
Author: User
Ubuntu sets up a gateway service to share the network. Today, the long-awaited six blade machines have finally arrived. after being configured by a person from Supermicro, I found that no other node except the master node can access the Internet, the reason is also very simple, because we have an internet port connected to the master. So it's from... ubuntu sets up a gateway service to share the network. Today, the long-awaited six blade machines have finally arrived. after being configured by a person from Supermicro, I found that no other node except the master node can access the Internet, the reason is also very simple, because we have an internet port connected to the master. Therefore, you can configure the Gateway and gateway service by yourself so that other nodes can access the Internet through the master node. First, configure/etc/sysctl on the master node. conf: Uncomment the next line to enable packet forwarding for IPv4 net. ipv4.ip _ forward = 1 # Uncomment the next line to enable packet forwarding for IPv6net. ipv6.conf. all. forwarding = 1 then run the command to forward all Lan requests to the Internet sudo iptables-t nat-a postrouting-s 192.168.1.0/24-j MASQUERADE and then configure/etc/on each node/ the network/interfaces file is added to gateway 192.168.1.6 (the master address) after the corresponding Nic) restart the NIC to access the Internet. Oh!
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.