Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux configuration IP address restart Network error RTNETLINK answers: what about File exists

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains the "linux configuration IP address restart network error RTNETLINK answers: how to do File exists", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "linux configuration IP address restart network error RTNETLINK answers: what to do File exists" bar!

When installing the operating system, IP is not set. After installation, restart the network error when setting IP:

# service network restart

RTNETLINK answers: File exists check found that NetworkManager:

# chkconfig-- list | grep-I manager

NetworkManager 0:off 1:ff 2:on 3:on 4:on 5:on 6:off

Just turn off NetworkManager:

# chkconfig NetworkManager off

# service NetworkManager stop

# service network restart but found no IP address after rebooting the network:

# ip ad

1: lo: mtu 16436 qdisc noqueue state UNKNOWN

Link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

Inet 127.0.0.1/8 scope host lo

Inet6:: 1/128 scope host

Valid_lft forever preferred_lft forever

2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000

Link/ether 00:0c:29:07:e5:89 brd ff:ff:ff:ff:ff:ff

Inet6 fe80::20c:29ff:fe07:e589/64 scope link

Valid_lft forever preferred_lft forever

The check found that the following IPADDR and NETMASK were manually configured in lowercase and could not be recognized

# cat / etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

TYPE=Ethernet

ONBOOT=yes

NM_CONTROLLED=yes

BOOTPROTO=static

Ipaddr=192.168.1.11

Netmask=255.255.255.0

Just change it to size:

IPADDR=192.168.1.11

NETMASK=255.255.255.0 restarts the network and recognizes the IP address:

# service network restart

# ip ad

1: lo: mtu 16436 qdisc noqueue state UNKNOWN

Link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

Inet 127.0.0.1/8 scope host lo

Inet6:: 1/128 scope host

Valid_lft forever preferred_lft forever

2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000

Link/ether 00:0c:29:07:e5:89 brd ff:ff:ff:ff:ff:ff

Inet 192.168.1.11/24 brd 192.168.1.255 scope global eth0

Inet6 fe80::20c:29ff:fe07:e589/64 scope link

Valid_lft forever preferred_lft forever

Thank you for reading, the above is "linux configuration IP address restart network error RTNETLINK answers: how to do File exists" content, after the study of this article, I believe you on linux configuration IP address restart network error RTNETLINK answers: File exists how to do this problem has a deeper understanding, the specific use also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report