For example, two NICs are configured under CentOS, one for daily Internet access, and the other for connecting to the Development Board, which is configured in different network segments. Originally, NetworkManger is used under CentOS, DHCP is used to configure the network, but you want to learn about network management. Therefore, this function is disabled and IP Address Allocation and configuration are performed manually. But today something went wrong. After I turned on my computer, I found that I couldn't access the internet. At first I thought it was a lab network problem, but other computers could access the internet. The problem was on my computer. ping, then, check the route table and find that your default gateway is configured as the gateway where the Development Board is located. The solution is as follows:
> Route del-net 0.0.0.0 @ delete default gateway
> Route add default gw x. x eth0 (device name) @ Set default Gateway (Egress device)
Ping again and then OK !!