linux / kali NAT Network Connection Repair

This article applies only to repair the NET network configuration for the bridge approach does not apply, may refer to:
https://blog.csdn.net/Caoyang_He/article/details/91125741

First look at the DHCP service:

In using a TCP / IP protocol network, each computer must have at least one IP address to communicate with other computers connected. In order to facilitate unified planning and management of IP addresses in the network, DHCP (Dynamic Host Configure Protocol, Dynamic Host Configuration Protocol) came into being. This web service is beneficial to the client IP address of the campus network for effective management, without the need to manually specify the IP address one by one.

So DHCP can be simply interpreted as a server can automatically obtain IP stuff

Repair process

1. Modify written DHCP Service

gedit / etc / network / interfaces # editing with gedit, (if not gedit, you can use vi, vim, etc.)
added to the contents of the last two lines (eth0 is my corresponding card name, if the name does not need to be as modifications to the corresponding, usually the default eth0)DHCP settings screenshot

2. DNS settings

gedit /etc/resolv.conf # edit the settings for DNS
DNS settings

3. Network Service Restart

/etc/init.d/networking restart
Network Service Restart

4. Complete

Then it is a normal network connection.
Here Insert Picture Description

In fact, the whole process is to fill a DHCP server, DNS and sometimes do not need to re-set according to the situation, fill restart on the line, operating more than a few times the repair process less than a minute to solve, is still very convenient.

Released nine original articles · won praise 7 · views 591

Guess you like

Origin blog.csdn.net/qq_43390703/article/details/104213695