wlan0
구성을 설정했습니다 ( bcm43
블랙리스트에서 주석 처리 해제됨).
root@NanoPC-T2:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 5e:a5:4f:cc:83:8a
inet addr:195.165.101.232 Bcast:195.165.101.255 Mask:255.255.255.0
inet6 addr: fe80::7ca8:5fff:fecc:738a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21331 errors:0 dropped:11440 overruns:0 frame:0
TX packets:390 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1734079 (1.7 MB) TX bytes:64331 (64.3 KB)
Interrupt:48
ip6tnl0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:1452 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3958 errors:0 dropped:0 overruns:0 frame:0
TX packets:3958 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:293200 (293.2 KB) TX bytes:293200 (293.2 KB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr e2:47:73:46:b9:8f
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 15:a1:a2:a3:c5:4e
inet6 addr: fe80::25d4:a2ff:fea3:c54e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:468 (468.0 B)
그리고 또한 설정/etc/network/interfaces
cat /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 195.165.101.232
netmask 255.255.255.0
gateway 195.165.101.254
iface wlan0 inet static
address 195.165.101.232
netmask 255.255.255.0
gateway 195.165.101.254
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
그리고wpa_supplicant.conf
cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=CN
network={
ssid="V01"
psk="123456"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
저도 똑같이 하는데 ifconfig wlan0 up
이더넷 연결을 끊으면 Wi-Fi에서 IP에 연결하거나 핑할 수 없습니다.
nmcli c
NAME UUID TYPE DEVICE
V01 0c4435f2-7301-8574-9b1b-deb7fd2a7603 802-11-wireless --
V1 1 80b21422-c7ea-568c-8b4c-6f1d8a9dc9f8 802-11-wireless --
답변1
여러 인터페이스에서 동일한 IP 주소를 사용할 수 없습니다. 그러나 본딩을 사용하여 여러 인터페이스를 하나로 결합할 수 있습니다.
따라서 (출력에서 볼 수 있듯이 ifconfig
) wlan0
IPv4 주소가 할당되지 않습니다.