인터페이스를 구성할 수 없습니다

인터페이스를 구성할 수 없습니다

나는 두 대의 컴퓨터를 가지고 있습니다 :

  • Ubuntu 12.04.4, 3.5.0-45-generic("myGoodPC"라고 함)
  • Ubuntu 12.04.3, 3.8.0-35-generic("myBadPC"라고 함)

myBadPCESXi 5.0.0의 가상 머신에서 실행 중입니다.

myGoodPC무선 인터페이스를 올바르게 구성한 후 :

root@myGoodPC:~# sudo iw --debug dev wlan0 set channel 10 HT40-
-- Debug: Sent Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 44
    .nlmsg_type = 24 <0x18>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1398703424
    .nlmsg_pid = 14796
  [PAYLOAD] 28 octets
    02 00 00 00 08 00 03 00 08 00 00 00 08 00 26 00 99 09 ..............&...
    00 00 08 00 27 00 02 00 00 00                         ....'.....
---------------------------  END NETLINK MESSAGE   ---------------------------
-- Debug: Received Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 36
    .nlmsg_type = 2 <ERROR>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 1398703424
    .nlmsg_pid = 14796
  [ERRORMSG] 20 octets
    .error = 0 "Success"
  [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .nlmsg_type = 24 <0x18>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1398703424
    .nlmsg_pid = 14796
---------------------------  END NETLINK MESSAGE   ---------------------------

또한 WiFi 패킷(ICMP/ping 패킷)을 성공적으로 스니핑했습니다.

구성하려고 할 때 오류가 발생합니다 myBadPC.

root@myBadPC:~# sudo iw --debug dev wlan0 set channel 10 HT40-
-- Debug: Sent Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 44
    .nlmsg_type = 25 <0x19>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1398698982
    .nlmsg_pid = 14533
  [PAYLOAD] 28 octets
    02 00 00 00 08 00 03 00 03 00 00 00 08 00 26 00 99 09 ..............&...
    00 00 08 00 27 00 02 00 00 00                         ....'.....
---------------------------  END NETLINK MESSAGE   ---------------------------
-- Debug: Received Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 64
    .nlmsg_type = 2 <ERROR>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 1398698982
    .nlmsg_pid = 14533
  [ERRORMSG] 20 octets
    .error = -16 "Device or resource busy"
  [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .nlmsg_type = 25 <0x19>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1398698982
    .nlmsg_pid = 14533
---------------------------  END NETLINK MESSAGE   ---------------------------
command failed: Device or resource busy (-16)

분명히 이 명령 후에는 패킷(ICMP/ping)을 스니핑할 수 없습니다(그러나 브로드캐스트는 표시됩니다).

참고: 명확성을 위해 위 코드에서 다른 명령(예: ifconfig wlan0 down이전 iw또는 iwconfig wlan0 mode monitor이후 명령 ifconfig wlan0 up) 을 제거했습니다.

wlan0에서 오류의 원인은 무엇입니까 myBadPC?

관련 정보