ifconfig에서 wlan1 인터페이스가 사라졌습니다.

ifconfig에서 wlan1 인터페이스가 사라졌습니다.

다음을 편집하여 wlan1 카드(Windows에서 호스트 네트워크 설정과 같은)에 가상 인터페이스를 만들려고 했습니다 /etc/network/interfaces.

auto wlan1:0 
iface wlan1:0 inet static
address 192.168.4.1
netmask 255.255.255.0 
wireless-mode ad-hoc

그것이 실패했을 때 나는 다음을 시도했습니다 ap-hotspot.

sudo apt-get install ap-hotspot
cd /tmp && wget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_i386.deb && sudo dpkg -i hostapd*.deb && sudo apt-mark hold hostapd
sudo ap-hotspot configure

그것도 실패했습니다. 그 후 기본 설정을 설치했는데 network-manager주변에 Wi-Fi 네트워크가 표시되지만 연결할 수는 없는 것으로 나타났습니다. WLAN 드라이버를 다시 설치하려고 시도했지만 아무 것도 시도하지 않았습니다.

내 시스템에서 어떻게 보이는지에 대한 정보를 제공하겠습니다.

sudo airmon-ng
Interface   Chipset     Driver

wlan1       Unknown     iwlwifi - [phy0]

sudo gedit /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x4237 (iwlwifi)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:24:d6:5f:8f:94", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan1"

게다가 이 가상 wlan1:0 인터페이스는 시스템에 계속 남아 있으며 삭제되지 않습니다.ifdown

 sudo lshw -C network
     *-network               
           description: Wireless interface
           product: PRO/Wireless 5100 AGN [Shiloh] Network Connection
           vendor: Intel Corporation
           physical id: 0
           bus info: pci@0000:02:00.0
           logical name: wlan1
           version: 00
           serial: 00:24:d6:5f:8f:94
           width: 64 bits
           clock: 33MHz
           capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
           configuration: broadcast=yes driver=iwlwifi driverversion=3.13.0-46-lowlatency firmware=8.83.5.1 build 33692 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn
           resources: irq:45 memory:90700000-90701fff
      *-network
           physical id: 2
           logical name: mon.wlan1

 sudo ifconfig 
    eth1
    lo
    mon.wlan1:0: error fetching interface information: Device not found

(명확성을 위해 eth1 및 lo 구성을 제거했습니다.) 인터페이스 및 드라이버에 대한 추가 정보:

    :/sys/class/net$ ls -alh
    total 0
    drwxr-xr-x  2 root root 0 mar 14  2015 .
    drwxr-xr-x 54 root root 0 mar 14  2015 ..
    lrwxrwxrwx  1 root root 0 mar 14 20:11 eth1 -> ../../devices/pci0000:00/0000:00:1c.5/0000:03:00.0/net/eth1
    lrwxrwxrwx  1 root root 0 mar 14  2015 lo -> ../../devices/virtual/net/lo
    lrwxrwxrwx  1 root root 0 mar 14 20:11 mon.wlan1:0 -> ../../devices/pci0000:00/0000:00:1c.1/0000:02:00.0/net/mon.wlan1:0
    lrwxrwxrwx  1 root root 0 mar 14 20:11 wlan1 -> ../../devices/pci0000:00/0000:00:1c.1/0000:02:00.0/net/wlan1

 :lspci -vvnn | grep -A 9 Network
02:00.0 Network controller [0280]: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection [8086:4237]
    Subsystem: Intel Corporation WiFi Link 5100 AGN [8086:1311]
    Physical Slot: 1
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 45
    Region 0: Memory at 90700000 (64-bit, non-prefetchable) [size=8K]
    Capabilities: <access denied>

이 wlan1:0 인터페이스를 제거하고 wlan1이 표시되고 작동하도록 하려면 어떻게 해야 합니까?

답변1

매우 혼란스러운 방식으로 많은 정보를 제시하고 계시지만 문제가 심각하지는 않은 것 같습니다. 인터페이스 파일에 다음이 포함되어 있다고 말씀하셨습니다.

auto wlan1:0
iface wlan1:0 inet static
address 192.168.4.1
netmask 255.255.255.0
wireless-mode ad-hoc

다음과 같이 변경해 주세요.

auto wlan1
iface wlan1 inet static
address 192.168.4.1
netmask 255.255.255.0

그리고 재부팅하세요.

그래도 작동하지 않으면 수동으로 설치한 ap-hotspot 및 network-manager를 제거하십시오.

관련 정보