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 answers: Invalid argument消息的RTNETLINK answers: Invalid argument

我做了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”更改为“静态”地址。 如果是这种情况,请确保pipe理员已经从DHCP作用域中删除了IP地址,因为DHCP作用域是该地址的所有者。 你的configuration应该看起来像这样

 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 

希望这是一个帮助

这可能与您在/ etc / sysconfig / network-scripts / ifcfg-eth *文件中设置的选项有关。 那里可能有一些不正确的设置。

从简单的看,您的networking掩码和/或广播地址似乎是错误的。

如果你的networking是121.0.10.0/24,那么你的广播地址通常应该是121.0.10.255,而不是像你的那样是121.0.255.255。 我不知道这是否会导致你看到的错误或是否是“红鲱鱼”,但你的networkingconfiguration肯定对我来说是错误的,需要仔细看一下IMO。

http://jodies.de/ipcalc?host=121.0.10.137&mask1=24&mask2=