linux – RTNETLINK答案:参数无效

前端之家收集整理的这篇文章主要介绍了linux – RTNETLINK答案:参数无效前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当我的系统启动时,它会显示以下消息.
Bringing up loopback interface:  [  OK  ]
Bringing up interface eth0:  RTNETLINK answers: Invalid argument
[  OK  ]
Bringing up interface eth1:  RTNETLINK answers: Invalid argument
[  OK  ]
Bringing up interface eth2:  RTNETLINK answers: Invalid argument
[  OK  ]
Bringing up interface eth3:  RTNETLINK answers: Invalid argument
[  OK  ]

为什么会这样呢?通常它不会给RTNETLINK回复消息:无效的参数

我做了ifconfig,输出

eth0      Link encap:Ethernet  HWaddr 00:00:50:6D:56:B4  
          inet addr:120.0.10.137  Bcast:120.0.255.255  Mask:255.255.255.0
          inet6 addr: fe80::200:50ff:fe6d:56b4/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:214 (214.0 b)
          Base address:0xa000 

eth1      Link encap:Ethernet  HWaddr 00:00:50:6D:56:B5  
          inet addr:121.0.10.137  Bcast:121.0.255.255  Mask:255.255.255.0
          inet6 addr: fe80::200:50ff:fe6d:56b5/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:214 (214.0 b)
          Base address:0xc000 

eth2      Link encap:Ethernet  HWaddr 00:00:50:6D:56:B6  
          inet addr:128.0.10.137  Bcast:128.0.255.255  Mask:255.255.255.0
          inet6 addr: fe80::200:50ff:fe6d:56b6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1006 (1006.0 b)  TX bytes:396 (396.0 b)
          Interrupt:16 

eth3      Link encap:Ethernet  HWaddr 00:00:50:6D:56:B7  
          inet addr:123.0.10.137  Bcast:123.0.255.255  Mask:255.255.255.0
          inet6 addr: fe80::200:50ff:fe6d:56b7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:728 (728.0 b)  TX bytes:396 (396.0 b)
          Interrupt:17 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:14 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:980 (980.0 b)  TX bytes:980 (980.0 b)

消息的原因是什么以及如何将其更改为正常?

谢谢

解决方法

我的猜测是你已经改变了你的IP地址.请确保IP地址,掩码和网关属于同一类(A类或B类或C类)

我的下一个猜测是你已经从“DHCP”变为“静态”地址.如果是这种情况,请确保管理员已从DHCP作用域中删除了IP地址,因为DHCP作用域是该地址的所有者.你的配置看起来应该是这样的

root@servername network-scripts]# vi ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
IPADDR=10.206.2.4
GATEWAY=10.206.255.255
NETMASK=255.255.0.0


root@servername network-scripts]# service network restart

希望这是一个帮助

原文链接:https://www.f2er.com/linux/395845.html

猜你在找的Linux相关文章