如何配置 dhcp?

如何配置 dhcp?

使用 Ubuntu 12.10 时,我的网络仍然无法连接互联网。我的路由器是 NetGear 192.168.1.1,TP-Link 运行在 192.168.1.2 上,Ubuntu 通过有线连接到 TP-Link 192.168.0.200。它运行正常,但有时 IP 未更新,导致我断网。我通过插拔有线连接,直到我拥有 192.168.1.3 或 192.168.0.200 IP,然后kill-9重新启动dhcpcd eth0。我搞不清楚这个 192.168.1.3 地址从何而来,我认为这就是问题的根源。我在我的 dhcp 别名文件中看到了以下内容:

lease {
  interface "eth0";
  fixed-address 192.168.1.3;
  option subnet-mask 255.255.255.0;
  option dhcp-lease-time 86400;
  option routers 192.168.1.1;
  option dhcp-message-type 5;
  option dhcp-server-identifier 192.168.1.1;
  option domain-name-servers 192.168.1.1;
  option domain-name "chello.pl";
  renew 4 2013/04/25 09:52:47;
  rebind 4 2013/04/25 20:26:26;
  expire 4 2013/04/25 23:26:26;
}
lease {
  interface "eth0";
  fixed-address 192.168.0.200;
  option subnet-mask 255.255.255.0;
  option dhcp-lease-time 7200;
  option routers 192.168.0.1;
  option dhcp-message-type 5;
  option dhcp-server-identifier 192.168.0.1;
  option domain-name-servers 192.168.0.1;
  renew 4 2013/04/25 21:17:52;
  rebind 4 2013/04/25 22:11:32;
  expire 4 2013/04/25 22:26:32;
}
lease {
  interface "eth0";
  fixed-address 192.168.1.3;
  option subnet-mask 255.255.255.0;
  option routers 192.168.1.1;
  option dhcp-lease-time 86400;
  option dhcp-message-type 5;
  option domain-name-servers 192.168.1.1;
  option dhcp-server-identifier 192.168.1.1;
  option domain-name "chello.pl";
  renew 5 2013/04/26 07:27:14;
  rebind 5 2013/04/26 17:28:47;
  expire 5 2013/04/26 20:28:47;
}

对我来说更奇怪的是:ifconfig 说我正在运行我想要的 192.160.0.200,但 GUI(活动连接)说我有 192.168.1.3:

eth0 链路封装:以太网 HWaddr d4:3d:7e:4b:47:dc
inet 地址:192.168.0.200 Bcast:192.168.0.255 掩码:255.255.255.0 inet6 地址:fe80::d63d:7eff:fe4b:47dc/64 范围:链路 UP 广播运行多播 MTU:1500 度量:1 RX 数据包:10496363 错误:0 丢弃:0 超限:0 帧:0 TX 数据包:9349273 错误:0 丢弃:0 超限:0 载波:0 冲突:0 txqueuelen:1000 RX 字节:5312676815(5.3 GB) TX 字节:781747139(781.7 MB)

lo 链路封装:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0 inet6 地址:::1/128 范围:主机 UP 环回运行 MTU:16436 度量:1 RX 数据包:178598 错误:0 丢弃:0 超限:0 帧:0 TX 数据包:178598 错误:0 丢弃:0 超限:0 载波:0 冲突:0 txqueuelen:0 RX 字节:41179188(41.1 MB) TX 字节:41179188(41.1 MB)

图形用户界面(GUI): 在此处输入图片描述

dhcp eth0.信息:

IPADDR='192.168.0.200'
NETMASK='255.255.255.0'
NETWORK='192.168.0.0'
BROADCAST='192.168.0.255'
ROUTES=''
GATEWAYS='192.168.0.1'
DNSSERVERS='192.168.0.1'
DHCPSID='192.168.0.1'
LEASEDFROM='1366928965'
LEASETIME='7200'
RENEWALTIME='3600'
REBINDTIME='6300'
INTERFACE='eth0'
CLASSID='dhcpcd 3.2.3'
CLIENTID='ff:65:74:68:30:00:01:00:01:18:ab:f5:fd:d4:3d:7e:4b:47:dc'
DHCPCHADDR='d4:3d:7e:4b:47:dc'

# dhcpcd-1.x and 2.x compatible variables
DNS='192.168.0.1'
GATEWAY='192.168.0.1'

如果有什么需要的话,请告诉我还需要什么。也许这与它尝试使用 IPv6 有关?我从 syslog 中得到了这个想法:

Apr 26 01:43:58 myhost avahi-daemon[904]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::d63d:7eff:fe4b:47dc.
Apr 26 01:43:58 myhost avahi-daemon[904]: Interface eth0.IPv6 no longer relevant for mDNS.
Apr 26 01:43:58 myhost avahi-daemon[904]: Withdrawing address record for 192.160.0.200 on eth0.
Apr 26 01:43:58 myhost avahi-daemon[904]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.160.0.200.
Apr 26 01:43:58 myhost avahi-daemon[904]: Interface eth0.IPv4 no longer relevant for mDNS.
Apr 26 01:43:58 myhost NetworkManager[899]: <warn> DNS: plugin dnsmasq update failed
Apr 26 01:43:58 myhost NetworkManager[899]: <info> ((null)): removing resolv.conf from /sbin/resolvconf
Apr 26 01:43:58 myhost dnsmasq[2395]: setting upstream servers from DBus
Apr 26 01:43:58 myhost dbus[876]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Apr 26 01:43:58 myhost NetworkManager[899]: <info> Activation (eth0) starting connection 'Wired connection 1'
Apr 26 01:43:58 myhost NetworkManager[899]: <info> (eth0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Apr 26 01:43:58 myhost NetworkManager[899]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...
Apr 26 01:43:58 myhost NetworkManager[899]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) started...
Apr 26 01:43:58 myhost NetworkManager[899]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...
Apr 26 01:43:58 myhost NetworkManager[899]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) complete.
Apr 26 01:43:58 myhost NetworkManager[899]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) starting...
Apr 26 01:43:58 myhost NetworkManager[899]: <info> (eth0): device state change: prepare -> config (reason 'none') [40 50 0]
Apr 26 01:43:58 myhost NetworkManager[899]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) successful.
Apr 26 01:43:58 myhost NetworkManager[899]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled.
Apr 26 01:43:58 myhost NetworkManager[899]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) complete.
Apr 26 01:43:58 myhost NetworkManager[899]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) started...
Apr 26 01:43:58 myhost NetworkManager[899]: <info> (eth0): device state change: config -> ip-config (reason 'none') [50 70 0]
Apr 26 01:43:58 myhost NetworkManager[899]: <info> Activation (eth0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Apr 26 01:43:58 myhost NetworkManager[899]: <info> dhclient started with pid 11708
Apr 26 01:43:58 myhost NetworkManager[899]: <info> Activation (eth0) Beginning IP6 addrconf.
Apr 26 01:43:58 myhost NetworkManager[899]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
Apr 26 01:43:58 myhost dbus[876]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Apr 26 01:43:58 myhost dhclient: Internet Systems Consortium DHCP Client 4.2.4
Apr 26 01:43:58 myhost dhclient: Copyright 2004-2012 Internet Systems Consortium.
Apr 26 01:43:58 myhost dhclient: All rights reserved.
Apr 26 01:43:58 myhost dhclient: For info, please visit https://www.isc.org/software/dhcp/
Apr 26 01:43:58 myhost dhclient: 
Apr 26 01:43:58 myhost NetworkManager[899]: <info> (eth0): DHCPv4 state changed nbi -> preinit
Apr 26 01:43:58 myhost dhclient: Listening on LPF/eth0/d4:3d:7e:4b:47:dc
Apr 26 01:43:58 myhost dhclient: Sending on   LPF/eth0/d4:3d:7e:4b:47:dc
Apr 26 01:43:58 myhost dhclient: Sending on   Socket/fallback
Apr 26 01:43:58 myhost dhclient: DHCPREQUEST of 192.160.0.200 on eth0 to 255.255.255.255 port 67
Apr 26 01:43:58 myhost dhclient: DHCPACK of 192.160.0.200 from 192.168.0.1
Apr 26 01:43:58 myhost dhclient: bound to 192.160.0.200 -- renewal in 2896 seconds.
Apr 26 01:43:58 myhost NetworkManager[899]: <info> (eth0): DHCPv4 state changed preinit -> reboot
Apr 26 01:43:58 myhost NetworkManager[899]: <info>   address 192.160.0.200
Apr 26 01:43:58 myhost NetworkManager[899]: <info>   prefix 24 (255.255.255.0)
Apr 26 01:43:58 myhost NetworkManager[899]: <info>   gateway 192.168.0.1
Apr 26 01:43:58 myhost NetworkManager[899]: <info>   nameserver '192.168.0.1'
Apr 26 01:43:58 myhost NetworkManager[899]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Apr 26 01:43:58 myhost NetworkManager[899]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) started...
Apr 26 01:43:58 myhost avahi-daemon[904]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.160.0.200.
Apr 26 01:43:58 myhost avahi-daemon[904]: New relevant interface eth0.IPv4 for mDNS.
Apr 26 01:43:58 myhost avahi-daemon[904]: Registering new address record for 192.160.0.200 on eth0.IPv4.
Apr 26 01:43:59 myhost NetworkManager[899]: <info> (eth0): device state change: ip-config -> activated (reason 'none') [70 100 0]
Apr 26 01:43:59 myhost NetworkManager[899]: <info> ((null)): writing resolv.conf to /sbin/resolvconf
Apr 26 01:43:59 myhost dnsmasq[2395]: setting upstream servers from DBus
Apr 26 01:43:59 myhost dnsmasq[2395]: using nameserver 192.168.0.1#53
Apr 26 01:43:59 myhost NetworkManager[899]: <info> Activation (eth0) successful, device activated.
Apr 26 01:43:59 myhost NetworkManager[899]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) complete.
Apr 26 01:43:59 myhost ntpdate[11793]: no servers can be used, exiting
Apr 26 01:44:00 myhost avahi-daemon[904]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::d63d:7eff:fe4b:47dc.
Apr 26 01:44:00 myhost avahi-daemon[904]: New relevant interface eth0.IPv6 for mDNS.
Apr 26 01:44:00 myhost avahi-daemon[904]: Registering new address record for fe80::d63d:7eff:fe4b:47dc on eth0.*.
Apr 26 01:44:18 myhost NetworkManager[899]: <info> (eth0): IP6 addrconf timed out or failed.
Apr 26 01:44:18 myhost NetworkManager[899]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Apr 26 01:44:18 myhost NetworkManager[899]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Apr 26 01:44:18 myhost NetworkManager[899]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) complete.

新的附加信息:TP-Link 已插入 NetGear 的 LAN 端口(因为 Internet 位于 NetGear 的 WAN 中),这是 TP-Link 的 WAN - 所以正确。现在另一个问题:我重新启动了连接,丢失了它,当我插上电线并再次打开时,TP-Link 在 DHCP 客户端列表下列出了我的 Ubuntu,其正确的 IP 为 192.168.0.200,在 ARP 列表中,我的 Ubuntu Mac 映射到这个 IP,所以看起来 TP-Link 可以正确看到并识别我的主机,但主机本身说没有连接,再次:杀死 dhcpcd eth0 并重新启动它给我的信息是主机 IP 配置正确。但是这次我杀死了而不是 -9,我得到的信息是:

接口 eth0 已配置新 IP=192.168.0.202

而不是 192.168.0.200 来自 syslog 的日志信息:

Apr 26 13:40:53 myhost NetworkManager[899]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Apr 26 13:40:53 myhost NetworkManager[899]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Apr 26 13:40:53 myhost NetworkManager[899]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Apr 26 13:40:57 myhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
Apr 26 13:41:03 myhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
Apr 26 13:41:17 myhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
Apr 26 13:41:18 myhost NetworkManager[899]: <warn> (eth0): DHCPv4 request timed out.
Apr 26 13:41:18 myhost NetworkManager[899]: <info> (eth0): canceled DHCP transaction, DHCP client pid 27266
Apr 26 13:41:18 myhost NetworkManager[899]: <info> Activation (eth0) Stage 4 of 5 (IPv4 Configure Timeout) scheduled...
Apr 26 13:41:18 myhost NetworkManager[899]: <info> Activation (eth0) Stage 4 of 5 (IPv4 Configure Timeout) started...
Apr 26 13:41:18 myhost NetworkManager[899]: <info> (eth0): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Apr 26 13:41:18 myhost NetworkManager[899]: <warn> Activation (eth0) failed for connection 'Wired connection 1'
Apr 26 13:41:18 myhost NetworkManager[899]: <info> Activation (eth0) Stage 4 of 5 (IPv4 Configure Timeout) complete.
Apr 26 13:41:18 myhost NetworkManager[899]: <info> (eth0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Apr 26 13:41:18 myhost NetworkManager[899]: <info> (eth0): deactivating device (reason 'none') [0]
Apr 26 13:41:18 myhost avahi-daemon[904]: Withdrawing address record for fe80::d63d:7eff:fe4b:47dc on eth0.
Apr 26 13:41:18 myhost avahi-daemon[904]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::d63d:7eff:fe4b:47dc.
Apr 26 13:41:18 myhost avahi-daemon[904]: Interface eth0.IPv6 no longer relevant for mDNS.
Apr 26 13:41:20 myhost avahi-daemon[904]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::d63d:7eff:fe4b:47dc.
Apr 26 13:41:20 myhost avahi-daemon[904]: New relevant interface eth0.IPv6 for mDNS.
Apr 26 13:41:20 myhost avahi-daemon[904]: Registering new address record for fe80::d63d:7eff:fe4b:47dc on eth0.*.
Apr 26 13:41:21 myhost kernel: [385757.629853] r8169 0000:02:00.0: eth0: link down
Apr 26 13:41:21 myhost NetworkManager[899]: <info> (eth0): carrier now OFF (device state 30)
Apr 26 13:41:21 myhost NetworkManager[899]: <info> (eth0): device state change: disconnected -> unavailable (reason 'carrier-changed') [30 20 40]
Apr 26 13:41:21 myhost NetworkManager[899]: <info> (eth0): deactivating device (reason 'carrier-changed') [40]
Apr 26 13:41:21 myhost NetworkManager[899]: <info> Auto-activating connection 'Wired connection 1'.
Apr 26 13:41:21 myhost NetworkManager[899]: <info> Connection 'Wired connection 1' auto-activation failed: (2) Device not managed by NetworkManager or unavailable
Apr 26 13:41:29 myhost NetworkManager[899]: <info> (eth0): carrier now ON (device state 20)
Apr 26 13:41:29 myhost NetworkManager[899]: <info> (eth0): device state change: unavailable -> disconnected (reason 'carrier-changed') [20 30 40]
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Auto-activating connection 'Wired connection 1'.
Apr 26 13:41:29 myhost kernel: [385766.209134] r8169 0000:02:00.0: eth0: link up
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Activation (eth0) starting connection 'Wired connection 1'
Apr 26 13:41:29 myhost NetworkManager[899]: <info> (eth0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) started...
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) complete.
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) starting...
Apr 26 13:41:29 myhost NetworkManager[899]: <info> (eth0): device state change: prepare -> config (reason 'none') [40 50 0]
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) successful.
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled.
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) complete.
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) started...
Apr 26 13:41:29 myhost NetworkManager[899]: <info> (eth0): device state change: config -> ip-config (reason 'none') [50 70 0]
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Activation (eth0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Apr 26 13:41:29 myhost NetworkManager[899]: <info> dhclient started with pid 27276
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Activation (eth0) Beginning IP6 addrconf.
Apr 26 13:41:29 myhost avahi-daemon[904]: Withdrawing address record for fe80::d63d:7eff:fe4b:47dc on eth0.
Apr 26 13:41:29 myhost avahi-daemon[904]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::d63d:7eff:fe4b:47dc.
Apr 26 13:41:29 myhost avahi-daemon[904]: Interface eth0.IPv6 no longer relevant for mDNS.
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
Apr 26 13:41:29 myhost dhclient: Internet Systems Consortium DHCP Client 4.2.4
Apr 26 13:41:29 myhost dhclient: Copyright 2004-2012 Internet Systems Consortium.
Apr 26 13:41:29 myhost dhclient: All rights reserved.
Apr 26 13:41:29 myhost dhclient: For info, please visit https://www.isc.org/software/dhcp/
Apr 26 13:41:29 myhost dhclient: 
Apr 26 13:41:29 myhost NetworkManager[899]: <info> (eth0): DHCPv4 state changed nbi -> preinit
Apr 26 13:41:29 myhost dhclient: Listening on LPF/eth0/d4:3d:7e:4b:47:dc
Apr 26 13:41:29 myhost dhclient: Sending on   LPF/eth0/d4:3d:7e:4b:47:dc
Apr 26 13:41:29 myhost dhclient: Sending on   Socket/fallback
Apr 26 13:41:29 myhost dhclient: DHCPREQUEST of 192.160.0.200 on eth0 to 255.255.255.255 port 67
Apr 26 13:41:29 myhost dhclient: DHCPNAK from 192.168.1.1
Apr 26 13:41:29 myhost NetworkManager[899]: <info> (eth0): DHCPv4 state changed preinit -> expire
Apr 26 13:41:29 myhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
Apr 26 13:41:29 myhost NetworkManager[899]: <info> (eth0): DHCPv4 state changed expire -> preinit
Apr 26 13:41:29 myhost dhclient: DHCPREQUEST of 192.168.1.3 on eth0 to 255.255.255.255 port 67
Apr 26 13:41:29 myhost dhclient: DHCPOFFER of 192.168.1.3 from 192.168.1.1
Apr 26 13:41:29 myhost dhclient: DHCPACK of 192.168.1.3 from 192.168.1.1
Apr 26 13:41:29 myhost dhclient: bound to 192.168.1.3 -- renewal in 32841 seconds.
Apr 26 13:41:29 myhost NetworkManager[899]: <info> (eth0): DHCPv4 state changed preinit -> bound
Apr 26 13:41:29 myhost NetworkManager[899]: <info>   address 192.168.1.3
Apr 26 13:41:29 myhost NetworkManager[899]: <info>   prefix 24 (255.255.255.0)
Apr 26 13:41:29 myhost NetworkManager[899]: <info>   gateway 192.168.1.1
Apr 26 13:41:29 myhost NetworkManager[899]: <info>   nameserver '192.168.1.1'
Apr 26 13:41:29 myhost NetworkManager[899]: <info>   domain name 'chello.pl'
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Apr 26 13:41:29 myhost NetworkManager[899]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) started...
Apr 26 13:41:29 myhost avahi-daemon[904]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.1.3.
Apr 26 13:41:29 myhost avahi-daemon[904]: New relevant interface eth0.IPv4 for mDNS.
Apr 26 13:41:29 myhost avahi-daemon[904]: Registering new address record for 192.168.1.3 on eth0.IPv4.
Apr 26 13:41:30 myhost NetworkManager[899]: <info> (eth0): device state change: ip-config -> activated (reason 'none') [70 100 0]
Apr 26 13:41:30 myhost NetworkManager[899]: <info> ((null)): writing resolv.conf to /sbin/resolvconf
Apr 26 13:41:30 myhost dnsmasq[2395]: setting upstream servers from DBus
Apr 26 13:41:30 myhost dnsmasq[2395]: using nameserver 192.168.0.1#53
Apr 26 13:41:30 myhost dnsmasq[2395]: using nameserver 192.168.1.1#53
Apr 26 13:41:30 myhost NetworkManager[899]: <info> Activation (eth0) successful, device activated.
Apr 26 13:41:30 myhost NetworkManager[899]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) complete.
Apr 26 13:41:30 myhost dbus[876]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Apr 26 13:41:30 myhost dbus[876]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Apr 26 13:41:30 myhost named[12135]: invalid command from 127.0.0.1#46668: bad auth
Apr 26 13:41:31 myhost avahi-daemon[904]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::d63d:7eff:fe4b:47dc.
Apr 26 13:41:31 myhost avahi-daemon[904]: New relevant interface eth0.IPv6 for mDNS.
Apr 26 13:41:31 myhost avahi-daemon[904]: Registering new address record for fe80::d63d:7eff:fe4b:47dc on eth0.*.
Apr 26 13:41:49 myhost NetworkManager[899]: <info> (eth0): IP6 addrconf timed out or failed.
Apr 26 13:41:49 myhost NetworkManager[899]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Apr 26 13:41:49 myhost NetworkManager[899]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Apr 26 13:41:49 myhost NetworkManager[899]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Apr 26 13:42:03 myhost dhcpcd[27383]: eth0: dhcpcd already running on pid 11852 (/var/run/dhcpcd-eth0.pid)
Apr 26 13:42:03 myhost dhcpcd[27383]: eth0: exiting
Apr 26 13:42:11 myhost ntpdate[27364]: Can't find host ntp.ubuntu.com: Name or service not known (-2)
Apr 26 13:42:11 myhost ntpdate[27364]: no servers can be used, exiting
Apr 26 13:42:45 myhost dhcpcd[11852]: eth0: received SIGTERM, stopping
Apr 26 13:42:45 myhost dhcpcd[11852]: eth0: removing default route via 192.168.0.1 metric 0
Apr 26 13:42:45 myhost dhcpcd[11852]: eth0: netlink: No such process
Apr 26 13:42:45 myhost dhcpcd[11852]: eth0: removing route to 169.254.0.0/16 metric 0
Apr 26 13:42:45 myhost dhcpcd[11852]: eth0: removing IP address 192.160.0.200/24
Apr 26 13:42:45 myhost dhcpcd[11852]: eth0: netlink: Cannot assign requested address
Apr 26 13:42:45 myhost dhcpcd[11852]: eth0: exiting
Apr 26 13:42:45 myhost dhcpcd.sh: interface eth0 has been brought down
Apr 26 13:43:01 myhost dhcpcd[27430]: eth0: dhcpcd 3.2.3 starting
Apr 26 13:43:01 myhost dhcpcd[27430]: eth0: hardware address = d4:3d:7e:4b:47:dc
Apr 26 13:43:01 myhost dhcpcd[27430]: eth0: removing IP address 192.168.1.3/24
Apr 26 13:43:01 myhost avahi-daemon[904]: Withdrawing address record for 192.168.1.3 on eth0.
Apr 26 13:43:01 myhost avahi-daemon[904]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.1.3.
Apr 26 13:43:01 myhost avahi-daemon[904]: Interface eth0.IPv4 no longer relevant for mDNS.
Apr 26 13:43:01 myhost dhcpcd[27430]: eth0: DUID = 00:01:00:01:18:ab:f5:fd:d4:3d:7e:4b:47:dc
Apr 26 13:43:01 myhost dhcpcd[27430]: eth0: broadcasting for a lease
Apr 26 13:43:02 myhost dhcpcd[27430]: eth0: offered 192.160.0.202 from 192.168.0.1
Apr 26 13:43:02 myhost dhcpcd[27430]: eth0: checking 192.160.0.202 is available on attached networks
Apr 26 13:43:03 myhost dhcpcd[27430]: eth0: leased 192.160.0.202 for 7200 seconds
Apr 26 13:43:03 myhost dhcpcd[27430]: eth0: no renewal time supplied, assuming 3600 seconds
Apr 26 13:43:03 myhost dhcpcd[27430]: eth0: no rebind time supplied, assuming 6300 seconds
Apr 26 13:43:03 myhost dhcpcd[27430]: eth0: adding IP address 192.160.0.202/24
Apr 26 13:43:03 myhost dhcpcd[27430]: eth0: adding default route via 192.168.0.1 metric 0
Apr 26 13:43:03 myhost dhcpcd[27430]: eth0: adding route to 169.254.0.0/16 metric 0
Apr 26 13:43:03 myhost dhcpcd[27430]: eth0: exiting
Apr 26 13:43:03 myhost avahi-daemon[904]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.160.0.202.
Apr 26 13:43:03 myhost avahi-daemon[904]: New relevant interface eth0.IPv4 for mDNS.
Apr 26 13:43:03 myhost avahi-daemon[904]: Registering new address record for 192.160.0.202 on eth0.IPv4.
Apr 26 13:43:03 myhost dhcpcd.sh: interface eth0 has been configured with new IP=192.160.0.202
Apr 26 13:53:12 myhost named[26017]: listening on IPv4 interface eth0, 192.160.0.202#53
Apr 26 13:53:12 myhost named[26017]: no longer listening on 192.160.0.200#53

答案1

kill -9首先,除非常规方法不起作用,否则不要使用kill。其次,您的描述很难理解,但听起来您有两个路由器,一个插入另一个。你不应该这样做。我猜你让第二个路由器通过常规端口连接到第一个路由器,而不是第二个路由器的 WAN/UPLINK 端口。如果这样做,您必须禁用第二个路由器中的路由/NAT/DHCP 功能。否则,您需要使用 WAN/UPLINK 端口将其连接到上游路由器。

相关内容