首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何配置dhcp?

如何配置dhcp?
EN

Ask Ubuntu用户
提问于 2013-04-25 23:23:23
回答 1查看 1.5K关注 0票数 0

在使用Ubuntu12.10的网络上,我仍然存在互联网连接问题。我有路由器NetGear 192.168.1.1,然后then在他的192.168.1.2上运行,Ubuntu通过电线连接到then,连接到192.168.0.200。它运行正常,但有时IP没有更新,我失去了互联网。我是通过插头和连线的方式过来的,我有192.168.1.3或192.168.0.200 IP,然后是kill-9并重新启动dhcpcd eth0。我无法从192.168.1.3这个我认为是我问题来源的地址中找出去向。我在dhcp liases文件中看到了这个:

代码语言:javascript
复制
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 addr: fe80:d63d:7eff:fe4b:47dc/64作用范围:连接广播运行多播MTU:1500米:1 RX数据包:10496363错误:0丢弃:0溢出:0帧:0帧:0TX数据包:9349273错误:0被丢弃:0溢出:0载波:0冲突:0 TX字节:5312676815(5.3GB)TX字节:781747139 (781.7 MB) lo Link :本地回回阀 inet :127.0.0.1掩码:255.0.0.0 inet6 addr: 1/128作用域:主机上循环运行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.info:

代码语言:javascript
复制
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那里得到这个想法的:

代码语言:javascript
复制
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-链接是插入到局域网端口在NetGear (因为互联网在NetGear的广域网),这是TP-链接的广域网-如此正确。现在还有一个问题:我重新启动了连接,失去了连接,当我再次插入连接线时,TP-Link在DHCP客户端列表中列出了具有正确IP的Ubuntu,而在ARP列表中,我的Ubuntu映射到了这个IP中,因此看起来可能正确地看到和识别了我的主机,但是主机本身又说没有连接:杀死dhcpcd eth0并再次启动它,给我信息,主机IP上的配置是正确的。然而,这次我确实杀了人,而不是-9,我有消息说:

接口eth0已经配置了新的IP=192.168.0.202

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

代码语言:javascript
复制
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
EN

回答 1

Ask Ubuntu用户

发布于 2013-04-26 01:22:38

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

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/285621

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档