私はDebianを使用しています。 NICを静的IP(192.168.1.56)で構成しました。
ネットワークに接続しようとすると、最初はifconfig eth2
で(正しく)次のようになります。
eth2 inet addr:192.168.1.56 ....
inet6 addr: fe80:221:ff:fe96:4598/64
しかし、数秒後に192.168.1.56
が消え、他の数秒後にinet6アドレスも消えます。 nm-applet
を押すとパスワードが必要ですが、その間に接続を試みます。
私の大学では、接続はDHCP接続です。最初の数秒間は機能しますが、その後は機能しません。これを修正するにはどうすればよいですか?
これがsyslogの関連部分です:(静的IP構成)
Jan 5 16:38:29 patina dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth2 for sub-path eth2.dbus.get.reason
Jan 5 16:38:29 patina NetworkManager: <debug> [1294245509.629163] nm_device_802_11_wireless_get_activation_ap(): Forcing AP 'Cagei2'
Jan 5 16:38:29 patina NetworkManager: <info> User Switch: /org/freedesktop/NetworkManager/Devices/eth2 / Cagei2
Jan 5 16:38:29 patina NetworkManager: <info> Deactivating device eth2.
Jan 5 16:38:29 patina NetworkManager: <WARN> nm_device_802_11_wireless_set_wep_enc_key(): error setting key for device eth2: Invalid argument
Jan 5 16:38:29 patina NetworkManager: <info> Device eth2 activation scheduled...
Jan 5 16:38:29 patina NetworkManager: <info> Activation (eth2) started...
Jan 5 16:38:29 patina NetworkManager: <info> Activation (eth2) Stage 1 of 5 (Device Prepare) scheduled...
Jan 5 16:38:29 patina NetworkManager: <info> Activation (eth2) Stage 1 of 5 (Device Prepare) started...
Jan 5 16:38:29 patina NetworkManager: <info> Activation (eth2) Stage 2 of 5 (Device Configure) scheduled...
Jan 5 16:38:29 patina NetworkManager: <info> Activation (eth2) Stage 1 of 5 (Device Prepare) complete.
Jan 5 16:38:29 patina NetworkManager: <info> Activation (eth2) Stage 2 of 5 (Device Configure) starting...
Jan 5 16:38:29 patina NetworkManager: <info> Activation (eth2/wireless): access point 'Cagei2' is encrypted, but NO valid key exists. New key needed.
Jan 5 16:38:29 patina NetworkManager: <info> Activation (eth2) New wireless user key requested for network 'Cagei2'.
Jan 5 16:38:29 patina NetworkManager: <info> Activation (eth2) Stage 2 of 5 (Device Configure) complete.
Jan 5 16:40:15 patina dhclient: There is already a pid file /var/run/dhclient.eth0.pid with pid 2304
Jan 5 16:40:15 patina dhclient: killed old client process, removed PID file
Jan 5 16:40:15 patina dhclient: Internet Systems Consortium DHCP Client V3.1.1
Jan 5 16:40:15 patina dhclient: Copyright 2004-2008 Internet Systems Consortium.
Jan 5 16:40:15 patina dhclient: All rights reserved.
Jan 5 16:40:15 patina dhclient: For info, please visit http://www.isc.org/sw/dhcp/
Jan 5 16:40:15 patina dhclient:
Jan 5 16:40:15 patina dhclient: Listening on LPF/eth0/00:23:8b:54:96:5d
Jan 5 16:40:15 patina dhclient: Sending on LPF/eth0/00:23:8b:54:96:5d
Jan 5 16:40:15 patina dhclient: Sending on Socket/fallback
Jan 5 16:40:15 patina dhclient: DHCPRELEASE on eth0 to 192.168.1.1 port 67
Jan 5 16:40:15 patina avahi-autoipd(eth0)[2133]: Got SIGTERM, quitting.
Jan 5 16:40:15 patina avahi-autoipd(eth0)[2133]: Callout STOP, address 169.254.6.95 on interface eth0
Jan 5 16:40:48 patina dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth2 for sub-path eth2.dbus.get.reason
Jan 5 16:40:48 patina NetworkManager: <debug> [1294245648.742672] nm_device_802_11_wireless_get_activation_ap(): Forcing AP 'Cagei2'
Jan 5 16:40:48 patina NetworkManager: <info> User Switch: /org/freedesktop/NetworkManager/Devices/eth2 / Cagei2
Jan 5 16:40:48 patina NetworkManager: <info> Deactivating device eth2.
Jan 5 16:40:48 patina NetworkManager: <info> Activation (eth2): cancelling...
Jan 5 16:40:48 patina NetworkManager: <info> Activation (eth2) cancellation handler scheduled...
Jan 5 16:40:48 patina NetworkManager: <info> Activation (eth2): waiting for device to cancel activation.
Jan 5 16:40:48 patina NetworkManager: <info> Activation (eth2) cancellation handled.
Jan 5 16:40:48 patina NetworkManager: <info> Activation (eth2): cancelled.
Jan 5 16:40:48 patina NetworkManager: <WARN> nm_device_802_11_wireless_set_wep_enc_key(): error setting key for device eth2: Invalid argument
Jan 5 16:40:48 patina NetworkManager: <info> Device eth2 activation scheduled...
Jan 5 16:40:48 patina NetworkManager: <info> Activation (eth2) started...
Jan 5 16:40:48 patina NetworkManager: <info> Activation (eth2) Stage 1 of 5 (Device Prepare) scheduled...
Jan 5 16:40:48 patina NetworkManager: <info> Activation (eth2) Stage 1 of 5 (Device Prepare) started...
Jan 5 16:40:48 patina NetworkManager: <info> Activation (eth2) Stage 2 of 5 (Device Configure) scheduled...
Jan 5 16:40:48 patina NetworkManager: <info> Activation (eth2) Stage 1 of 5 (Device Prepare) complete.
Jan 5 16:40:48 patina NetworkManager: <info> Activation (eth2) Stage 2 of 5 (Device Configure) starting...
Jan 5 16:40:48 patina NetworkManager: <info> Activation (eth2/wireless): access point 'Cagei2' is encrypted, but NO valid key exists. New key needed.
Jan 5 16:40:48 patina NetworkManager: <info> Activation (eth2) New wireless user key requested for network 'Cagei2'.
Jan 5 16:40:48 patina NetworkManager: <info> Activation (eth2) Stage 2 of 5 (Device Configure) complete.
Jan 5 16:40:54 patina kernel: [ 1397.945334] lo: Disabled Privacy Extensions
Jan 5 16:41:06 patina NetworkManager: <info> Activation (eth2) New wireless user key for network 'Cagei2' received.
Jan 5 16:41:06 patina NetworkManager: <info> Activation (eth2) Stage 1 of 5 (Device Prepare) scheduled...
Jan 5 16:41:06 patina NetworkManager: <info> Activation (eth2) Stage 1 of 5 (Device Prepare) started...
Jan 5 16:41:06 patina NetworkManager: <info> Activation (eth2) Stage 2 of 5 (Device Configure) scheduled...
Jan 5 16:41:06 patina NetworkManager: <info> Activation (eth2) Stage 1 of 5 (Device Prepare) complete.
Jan 5 16:41:06 patina NetworkManager: <info> Activation (eth2) Stage 2 of 5 (Device Configure) starting...
Jan 5 16:41:06 patina NetworkManager: <info> Activation (eth2/wireless): access point 'Cagei2' is encrypted, and a key exists. No new key needed.
Jan 5 16:41:08 patina NetworkManager: <info> SUP: sending command 'INTERFACE_ADD eth2#011#011wext#011/var/run/wpa_supplicant#011'
Jan 5 16:41:08 patina kernel: [ 1411.596736] ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready
Jan 5 16:41:08 patina NetworkManager: <info> SUP: response was 'OK'
Jan 5 16:41:08 patina NetworkManager: <info> SUP: sending command 'AP_SCAN 1'
Jan 5 16:41:08 patina NetworkManager: <info> SUP: response was 'OK'
Jan 5 16:41:08 patina NetworkManager: <info> SUP: sending command 'ADD_NETWORK'
Jan 5 16:41:08 patina NetworkManager: <info> SUP: response was '0'
Jan 5 16:41:08 patina NetworkManager: <info> SUP: sending command 'SET_NETWORK 0 ssid 436167656932'
Jan 5 16:41:08 patina NetworkManager: <info> SUP: response was 'OK'
Jan 5 16:41:08 patina NetworkManager: <info> SUP: sending command 'SET_NETWORK 0 proto WPA2'
Jan 5 16:41:08 patina NetworkManager: <info> SUP: response was 'OK'
Jan 5 16:41:08 patina NetworkManager: <info> SUP: sending command 'SET_NETWORK 0 key_mgmt WPA-PSK'
Jan 5 16:41:08 patina NetworkManager: <info> SUP: response was 'OK'
Jan 5 16:41:08 patina NetworkManager: <info> SUP: sending command 'SET_NETWORK 0 psk <key>'
Jan 5 16:41:08 patina NetworkManager: <info> SUP: response was 'OK'
Jan 5 16:41:08 patina NetworkManager: <info> SUP: sending command 'ENABLE_NETWORK 0'
Jan 5 16:41:08 patina NetworkManager: <info> SUP: response was 'OK'
Jan 5 16:41:08 patina NetworkManager: <info> Activation (eth2) Stage 2 of 5 (Device Configure) complete.
Jan 5 16:41:08 patina NetworkManager: <info> Supplicant state changed: 1
Jan 5 16:41:08 patina NetworkManager: <info> Activation (eth2/wireless) Stage 2 of 5 (Device Configure) successful. Connected to access point 'Cagei2'.
Jan 5 16:41:08 patina NetworkManager: <info> Activation (eth2) Stage 3 of 5 (IP Configure Start) scheduled.
Jan 5 16:41:08 patina NetworkManager: <info> Activation (eth2) Stage 3 of 5 (IP Configure Start) started...
Jan 5 16:41:09 patina NetworkManager: <info> Activation (eth2) Beginning DHCP transaction.
Jan 5 16:41:09 patina NetworkManager: <info> Activation (eth2) Stage 3 of 5 (IP Configure Start) complete.
Jan 5 16:41:09 patina NetworkManager: <info> DHCP daemon state is now 12 (successfully started) for interface eth2
Jan 5 16:41:09 patina dhclient: Internet Systems Consortium DHCP Client 4.1.1-P1
Jan 5 16:41:09 patina dhclient: Copyright 2004-2010 Internet Systems Consortium.
Jan 5 16:41:09 patina dhclient: All rights reserved.
Jan 5 16:41:09 patina dhclient: For info, please visit https://www.isc.org/software/dhcp/
Jan 5 16:41:09 patina dhclient:
Jan 5 16:41:09 patina dhclient: Listening on LPF/eth2/00:21:00:96:45:98
Jan 5 16:41:09 patina dhclient: Sending on LPF/eth2/00:21:00:96:45:98
Jan 5 16:41:09 patina dhclient: Sending on Socket/fallback
Jan 5 16:41:10 patina dhclient: DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 7
Jan 5 16:41:17 patina dhclient: DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 12
Jan 5 16:41:18 patina kernel: [ 1421.604521] eth2: no IPv6 routers present
Jan 5 16:41:29 patina dhclient: DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 19
Jan 5 16:41:48 patina dhclient: DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 14
Jan 5 16:41:54 patina NetworkManager: <info> Device 'eth2' DHCP transaction took too long (>45s), stopping it.
Jan 5 16:41:54 patina dhclient: Internet Systems Consortium DHCP Client 4.1.1-P1
Jan 5 16:41:54 patina dhclient: Copyright 2004-2010 Internet Systems Consortium.
Jan 5 16:41:54 patina dhclient: All rights reserved.
Jan 5 16:41:54 patina dhclient: For info, please visit https://www.isc.org/software/dhcp/
Jan 5 16:41:54 patina dhclient:
Jan 5 16:41:54 patina dhclient: Listening on LPF/eth2/00:21:00:96:45:98
Jan 5 16:41:54 patina dhclient: Sending on LPF/eth2/00:21:00:96:45:98
Jan 5 16:41:54 patina dhclient: Sending on Socket/fallback
Jan 5 16:41:54 patina dhclient: DHCPRELEASE on eth2 to 137.222.253.66 port 67
Jan 5 16:41:54 patina dhclient: send_packet: Network is unreachable
Jan 5 16:41:54 patina dhclient: send_packet: please consult README file regarding broadcast address.
Jan 5 16:41:55 patina NetworkManager: <info> Activation (eth2) Stage 4 of 5 (IP Configure Timeout) scheduled...
Jan 5 16:41:55 patina NetworkManager: <info> DHCP daemon state is now 14 (normal exit) for interface eth2
Jan 5 16:41:55 patina NetworkManager: <info> DHCP daemon state is now 14 (normal exit) for interface eth2
Jan 5 16:41:55 patina NetworkManager: <info> Activation (eth2) Stage 4 of 5 (IP Configure Timeout) started...
Jan 5 16:41:55 patina NetworkManager: <info> Activation (eth2) failure scheduled...
Jan 5 16:41:55 patina NetworkManager: <info> Activation (eth2) Stage 4 of 5 (IP Configure Timeout) complete.
Jan 5 16:41:55 patina NetworkManager: <info> Activation (eth2) failed for access point (Cagei2)
Jan 5 16:41:55 patina NetworkManager: <info> Activation (eth2) failed.
Jan 5 16:41:55 patina NetworkManager: <info> Deactivating device eth2.
Jan 5 16:41:55 patina NetworkManager: <WARN> nm_device_802_11_wireless_set_wep_enc_key(): error setting key for device eth2: Invalid argument
Jan 5 16:41:56 patina kernel: [ 1460.455299] ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready
Jan 5 16:42:07 patina kernel: [ 1471.332129] eth2: no IPv6 routers present
Jan 5 16:46:00 patina kernel: [ 1703.976186] usb 1-3: new high speed USB device using ehci_hcd and address 2
Jan 5 16:46:00 patina kernel: [ 1704.120840] usb 1-3: New USB device found, idVendor=13fe, idProduct=1e00
Jan 5 16:46:00 patina kernel: [ 1704.120851] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 5 16:46:00 patina kernel: [ 1704.120858] usb 1-3: Product: USB DISK 2.0
Jan 5 16:46:00 patina kernel: [ 1704.120863] usb 1-3: Manufacturer:
Jan 5 16:46:00 patina kernel: [ 1704.120868] usb 1-3: SerialNumber: 078203000F3C
Jan 5 16:46:00 patina kernel: [ 1704.121082] usb 1-3: configuration #1 chosen from 1 choice
Jan 5 16:46:00 patina NetworkManager: <debug> [1294245960.538897] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13fe_1e00_078203000F3C').
Jan 5 16:46:00 patina kernel: [ 1704.328698] Initializing USB Mass Storage driver...
Jan 5 16:46:00 patina kernel: [ 1704.328913] scsi6 : SCSI emulation for USB Mass Storage devices
Jan 5 16:46:00 patina kernel: [ 1704.329254] usbcore: registered new interface driver usb-storage
Jan 5 16:46:00 patina kernel: [ 1704.329263] USB Mass Storage support registered.
Jan 5 16:46:00 patina kernel: [ 1704.331074] usb-storage: device found at 2
Jan 5 16:46:00 patina kernel: [ 1704.331080] usb-storage: waiting for device to settle before scanning
Jan 5 16:46:00 patina NetworkManager: <debug> [1294245960.740962] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13fe_1e00_078203000F3C_if0').
Jan 5 16:46:00 patina NetworkManager: <debug> [1294245960.742373] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13fe_1e00_078203000F3C_if0_scsi_Host').
Jan 5 16:46:05 patina kernel: [ 1709.329094] usb-storage: device scan complete
Jan 5 16:46:05 patina kernel: [ 1709.379165] scsi 6:0:0:0: Direct-Access USB DISK 2.0 PMAP PQ: 0 ANSI: 0 CCS
Jan 5 16:46:05 patina kernel: [ 1709.380922] sd 6:0:0:0: Attached scsi generic sg2 type 0
Jan 5 16:46:05 patina NetworkManager: <debug> [1294245965.792242] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13fe_1e00_078203000F3C_if0_scsi_Host_0').
Jan 5 16:46:05 patina NetworkManager: <debug> [1294245965.795336] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13fe_1e00_078203000F3C_if0_scsi_Host_0_scsi_device_lun0').
Jan 5 16:46:05 patina NetworkManager: <debug> [1294245965.799318] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13fe_1e00_078203000F3C_if0_scsi_Host_0_scsi_device_lun0_scsi_generic').
Jan 5 16:46:06 patina kernel: [ 1710.042152] sd 6:0:0:0: [sdb] 8060928 512-byte logical blocks: (4.12 GB/3.84 GiB)
Jan 5 16:46:06 patina kernel: [ 1710.043009] sd 6:0:0:0: [sdb] Write Protect is off
Jan 5 16:46:06 patina kernel: [ 1710.043020] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
Jan 5 16:46:06 patina kernel: [ 1710.043026] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Jan 5 16:46:06 patina kernel: [ 1710.047632] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Jan 5 16:46:06 patina kernel: [ 1710.047643] sdb: sdb1
Jan 5 16:46:06 patina kernel: [ 1710.113494] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Jan 5 16:46:06 patina kernel: [ 1710.113504] sd 6:0:0:0: [sdb] Attached SCSI removable disk
Jan 5 16:46:06 patina NetworkManager: <debug> [1294245966.835564] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078203000F3C_0_0').
Jan 5 16:46:07 patina NetworkManager: <debug> [1294245967.016379] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/volume_uuid_BCD8_97AF').
Jan 5 16:46:07 patina kernel: [ 1710.696802] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
このような問題は通常、LANにDHCPが設定されている場合でも、IPアドレスの競合が原因で発生します。空きIPを設定してから、他のマシンにpingを実行してみてください。サーバーでDHCPログファイルを確認することもできます。
問題はNetworkManagerです。キースがコメントしたように、それを取り除きます。
Syslog出力の1行目で問題を明確に確認できます。
Jan 5 16:38:29 patina dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth2 for sub-path eth2.dbus.get.reason
静的構成だと言いますが、手動で構成した後、システムがdhcpを介してインターフェイスを構成しようとしているため、手動構成が削除されています。
私はUbuntuを使用していて、同様の症状がありました。この答えは(ハックですが)私の問題を解決しました: https://askubuntu.com/a/736589/194156
解決策は次のとおりです。NetworkManagerに移動し、MTUサイズを8192バイトに設定します。