WiFi 연결에서 DHCP 시간 초과를 디버깅하는 방법은 무엇입니까?

WiFi 연결에서 DHCP 시간 초과를 디버깅하는 방법은 무엇입니까?

최근 공용 WiFi가 있는 곳으로 이사했는데(그래서 라우터나 DHCP 구성에 액세스할 수 없음) Arch 노트북에 연결하는 데 문제가 있습니다.

NetworkManager와 netctl을 사용하여 연결을 시도했지만 둘 다 DHCP 임대를 얻을 수 없습니다. 다른 모든 장치(Android 및 iOS 휴대폰, Windows 및 macOS 노트북)는 문제 없이 이 작업을 수행할 수 있습니다.

어떻게 디버깅할 수 있나요? 패키지가 누락된 걸까요, 아니면 잘못 연결한 걸까요?


네트워크 관리자

나는 nmcli연결하는 데 사용합니다 :

$ nmcli dev wifi

*  SSID            MODE   CHAN  RATE       SIGNAL  BARS  SECURITY 
   ssidOfWifi      Infra  1     54 Mbit/s  52      ▂▄__  WPA2     
   ssidOfWifi      Infra  13    54 Mbit/s  34      ▂▄__  WPA2     
   ssidOfWifi      Infra  13    54 Mbit/s  22      ▂___  WPA2     

$ nmcli dev wifi connect ssidOfWifi password passwordToWifi

Error: Connection activation failed: (5) IP configuration could not be reserved (no available address, timeout, etc.).

$ systemctl status NetworkManager

...
Jan 09 17:49:43 home NetworkManager[5621]: <info>  [1483980583.9385] device (wlp2s0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful.  Connected to wireless network 'ssidOfWifi'.
Jan 09 17:49:43 home NetworkManager[5621]: <info>  [1483980583.9386] device (wlp2s0): state change: config -> ip-config (reason 'none') [50 70 0]
Jan 09 17:49:43 home NetworkManager[5621]: <info>  [1483980583.9390] dhcp4 (wlp2s0): activation: beginning transaction (timeout in 45 seconds)
Jan 09 17:50:29 home NetworkManager[5621]: <info>  [1483980629.0055] dhcp4 (wlp2s0): state changed unknown -> timeout
Jan 09 17:50:29 home NetworkManager[5621]: <info>  [1483980629.0214] dhcp4 (wlp2s0): canceled DHCP transaction
Jan 09 17:50:29 home NetworkManager[5621]: <info>  [1483980629.0215] dhcp4 (wlp2s0): state changed timeout -> done
Jan 09 17:50:29 home NetworkManager[5621]: <info>  [1483980629.0220] device (wlp2s0): state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Jan 09 17:50:29 home NetworkManager[5621]: <info>  [1483980629.0223] manager: NetworkManager state is now DISCONNECTED
Jan 09 17:50:29 home NetworkManager[5621]: <warn>  [1483980629.0233] device (wlp2s0): Activation: failed for connection 'ssidOfWifi'
Jan 09 17:50:29 home NetworkManager[5621]: <info>  [1483980629.0319] device (wlp2s0): state change: failed -> disconnected (reason 'none') [120 30 0]
Jan 09 17:50:29 home NetworkManager[5621]: <info>  [1483980629.0421] device (wlp2s0): set-hw-addr: set MAC address to AA:BB:CC:DD:EE:FF (scanning)
Jan 09 17:50:29 home NetworkManager[5621]: <warn>  [1483980629.0453] sup-iface[0x1d5ec00,wlp2s0]: connection disconnected (reason -3)
Jan 09 17:50:29 home NetworkManager[5621]: <info>  [1483980629.0454] device (wlp2s0): supplicant interface state: completed -> disconnected

네트워크 제어

나는 wifi-menu -o연결을 사용합니다. 이는 nmcli각 액세스 포인트에 대해 하나씩 표시하는 것과 달리 하나의 "ssidOfWifi"만 표시합니다 .

$ sudo wifi-menu -o

Job for netctl@wlp2s0\x2dssidOfWifi.service failed because the control process exited with error code.
See "systemctl status "netctl@wlp2s0\\x2dssidOfNetwork.service"" and "journalctl -xe" for details.

$ journalctl -xe

...
Jan 09 23:10:34 home dhcpcd[14402]: wlp2s0: soliciting a DHCP lease
Jan 09 23:11:03 home dhcpcd[14402]: timed out
Jan 09 23:11:03 home dhcpcd[14402]: dhcpcd exited
Jan 09 23:11:03 home network[14363]: DHCP IPv4 lease attempt failed on interface 'wlp2s0'
Jan 09 23:11:03 home kernel: wlp2s0: deauthenticating from AA:BB:CC:DD:EE:FF by local choice (Reason: 3=DEAUTH_LEAVING)
Jan 09 23:11:03 home network[14363]: Failed to bring the network up for profile 'wlp2s0-ssidOfWifi'
Jan 09 23:11:03 home systemd[1]: netctl@wlp2s0\x2dssidOfWifi.service: Main process exited, code=exited, status=1/FAILURE

답변1

시간이 초과되면 아마도 망가질 것입니다. 특별한 연결 요구 사항이 있는지 관리자에게 문의하세요.

관련 정보