相关疑难解决方法(0)

为什么 dhclient 不使用我告诉它请求的静态 IP?

这是我的 /etc/dhcp3/dhclient.conf:

request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, domain-search, host-name,
        netbios-name-servers, netbios-scope, interface-mtu;
timeout 60;
alias {
  interface "eth0";
  fixed-address 192.168.1.222;
}
lease {
  interface "eth0";
  fixed-address 192.168.1.222;
  option subnet-mask 255.255.255.0;
  option broadcast-address 255.255.255.255;
  option routers 192.168.1.254;
  option domain-name-servers 192.168.1.254;
}
Run Code Online (Sandbox Code Playgroud)

当我运行“dhclient eth0”时,我得到了这个:

There is already a pid file /var/run/dhclient.pid with pid 6511
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/ …
Run Code Online (Sandbox Code Playgroud)

dhcp linux

5
推荐指数
2
解决办法
2万
查看次数

标签 统计

dhcp ×1

linux ×1