<title>Methodology for solving Linux networking problems</title> Methodology for solving Linux networking problems Table of Contents
- 1. IP network configuration process
- 1.1.1. Confirm that the computer can ping the router
- 1.2.2. Verify that the access to and out-of-network pings
- 1.3.2. Confirm that you can ping the Web page
- 2. Permanent Configuration
1IP network configuration process1.11. Confirm that the computer can ping the router
Ping 192.168.1.1192.168.1.1 This is the router address, according to the requirements of the change, ping may be a problem with the network cable may be a problem, there may be a network card and your router is not the same network segment, you have to modify the same network segment,
- Test network card ping 127.0.0.1 after the network card is not a problem;
- Modify the IP address with the gateway in the same segment ifconfig xxx 192.168.1.22 netmask 255.255.0.0 Assume that the gateway is 192.168.1.1, change the IP address to the same network segment IP, such as 192.168.1.xx
- After troubleshooting, ping 192.168.1.1 and then proceed to the next step.
1.22. Verify that the access to and out-of-network pings
Ping 114.114.114.114, if the gateway or mask problems, then we have two ways to solve
- Modify Mask ifconfig eth0 192.168.0.25 netmask 255.255.255.0ping 114.114.114.114
- Modify Gateway route add default GW 192.168.1.1ping 114.114.114.114
1.32. Confirm that you can ping the Web page
Ping Www.baidu.comping does not explain that the DNS resolution server is not a problem, we need to configure the next
- Configure the DNS service vim/etc/resolv.conf
2Permanent configuration
/etc/network/interfaces//Configure network card IP address
/etc/resolv.conf//Setting up DNS
Date:a date, fixed, of a format string for format-time-string
Author: Wild Book
Created:2016-07-15 Five 23:11
Emacs 24.5.1 (ORG mode 8.2.10)
Methodology for solving Linux networking problems