大网数据广告活动
服务器运维问答

dhclient: What does "RTNETLINK answers: File exists" Mean?

· 52CE 我爱测

I wanted to update the DHCP lease of an Amazon EC2 instance, so I executed the following command: user@host:~$ sudo dhclient Following that, the system's DHCP lease is updated successfully updated. However, the command prints the…

问题原文

原帖链接 · AlfaZulu · CC BY-SA 3.0

I wanted to update the DHCP lease of an Amazon EC2 instance, so I executed the following command:

user@host:~$ sudo dhclient

Following that, the system's DHCP lease is updated successfully updated. However, the command prints the following to the console:

RTNETLINK answers: File exists

What on earth does that mean? Is it a cause for concern?

For what it's worth, dhclient returned without any errors:

user@host:~$ echo $?
0

已采纳解答

原帖链接 · Dennis Nolte · CC BY-SA 3.0

Basically what happens is that dhclient adds a route to the routing table.

It tries this while the route is already in the table.

Check

ip route

for a route which was added by the dhcp server.

For having the lease renewed do

dhclient -r

if thats not enough you can remove all leases by removing the file and getting a new lease

sudo rm /var/lib/dhcp/dhclient.leases; sudo dhclient eth0

Depending on your exact setup this might be an issue with having to type your password twice, so watch out for that.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2014-06-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。