Configure dual-nic in ubuntu for DHCP + NAT

Source: Internet
Author: User
The broadband service provider at home is very strange. It seems that the network is disconnected after several minutes of using the route to access the Internet. This problem does not occur when the gateway accesses the Internet using the dual network card. the role of this antique machine is to be a gateway. Now it is changed to Ubuntu, And the gateway and dhcp should also be added. internet sharing in ubuntu is not as convenient as in windows, but it is not very troublesome. It can be solved after you check it online. I am a lazy and a cainiao at ubuntulinux, so I try to avoid manual settings

The broadband service provider at home is very strange. It seems that the network is disconnected after several minutes of using the route to access the Internet. This problem does not occur when the gateway accesses the Internet using the dual network card. the role of this antique machine is to be a gateway. Now it is changed to Ubuntu, And the gateway and dhcp should also be added. internet sharing in ubuntu is not as convenient as in windows, but it is not very troublesome. It can be solved after you check it online.

I am a lazy and ubuntu linux cainiao, so I try to avoid manual configuration files, such as DHCP and iptables.

First solve the DHCP problem, use the new software package manager to download and install the dhcp3-server and GDHCPD. Then in GDHCPD set DHCP for the NIC, subnet mask, network segment, the gateway can be.

Then solve the NAT problem. I had a headache for configuring iptables. I can see the following article to solve it successfully.

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.