UbuntuSIOCADDRT: nosuchprocess

Source: Internet
Author: User
It was not the first time to configure the Ubuntu network. I encountered an error today. I have never encountered it before. I feel very depressed! When/etc/init. d/networkingrestart is used, RTNETLINKanswers: Fileexists is displayed, which means it is very depressing. Then, ping it and the system prompts that the network is inaccessible. After reading the route table and finding that there is no gateway, run the command to add the gateway # routeadddefaultgw1.1.1.

It was not the first time to configure the Ubuntu network. I encountered an error today. I have never encountered it before. I feel very depressed!

When/etc/init. d/networking restart is used

RTNETLINK answers: File exists

It means it is very depressing, and then ping it, prompting that the network is inaccessible. After reading the route table and finding that there is no gateway, run the command to add the gateway.

# Route add default gw 1.1.1.254

Result, an error is returned.

SIOCADDRT: no such process. frustrating error.

I found some information on the Internet and did not solve the problem. Finally, I found that the configuration file was wrong.

  1. Root @ node1:/etc/network # cat interfaces
  2. # This file describes the network interfaces available on your system
  3. # And how to activate them. For more information, see interfaces (5 ).
  4.  
  5. # The loopback network interface
  6. Auto lo
  7. Iface lo inet loopback
  8.  
  9. # The primary network interface
  10. Auto eth0
  11. Iface eth0 inet static
  12. Address 1.1.1.1
  13. Metmask 255.0.0.0
  14. Gateway 1.1.1.254
  15. Dns-nameservers 1.1.1.254

The input may be too fast. I wrote netmask as metmask and noted it down!

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.