Methodology for solving Linux networking problems

Source: Internet
Author: User
Tags pings

<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

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.