Debian
deban 中的網路介面:wifi 和 usb-ethernet
剛剛在 iMac5,1 上安裝了 Debian。
X11 根本不起作用,所以這一切都在命令行上。
我將內置乙太網連接到我的家庭寬頻集線器。都好。
我想讓wifi正常工作。
# lspci ... 03:00.0 Network controller: Broadcom Limited BCM4321 802.11a/b/g/n (rev 01) ... # apt-get install firmware-b43-installer # apt-get install iw # apt-get install wireless-tools
# apt-get install connman # connmanctl connmanctl> enable wifi Error wifi: Method "SetProperty" with signature "sv" on interface "net.connman.Technology" doesn't exist connmanctl>
怎麼辦?!如何判斷驅動程序是否確實已安裝並正常工作?
第二:我有一個 USB 乙太網適配器——最終我會想要橋接網路。
# lsusb ... Bus 001 Device 002: ID 0b95:772a ASIX Electronics Corp. AX88772A Fast Ethernet ...
再次:現在呢?
而這第三個介面:是wifi還是USB?
# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp2s0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:16:cb:9c:eb:ce brd ff:ff:ff:ff:ff:ff inet 192.168.1.51/24 brd 192.168.1.255 scope global enp2s0 valid_lft forever preferred_lft forever inet 192.168.2.14/24 brd 192.168.2.255 scope global enp2s0 valid_lft forever preferred_lft forever inet6 fe80::216:cbff:fe9c:ebce/64 scope link valid_lft forever preferred_lft forever 3: enx00808e8c92f8: <NO-CARRIER,BROADCAST,MULTICAST,DYNAMIC,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000 link/ether 00:80:8e:8c:92:f8 brd ff:ff:ff:ff:ff:ff
(我希望機器具有靜態地址 192.168.1.51 並進行
/etc/network/interfaces
相應設置,但它似乎忽略了這一點並從路由器獲取另一個地址。)更新:出現 wlan0 並且介面被忽略
root@imac51:~# cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface #allow-hotplug enp2s0 auto enp2s0 iface enp2s0 inet static address 192.168.1.51 netmask 255.255.255.0 gateway 192.168.1.1 root@imac51:~# root@imac51:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp2s0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:16:cb:9c:eb:ce brd ff:ff:ff:ff:ff:ff inet 192.168.2.14/24 brd 192.168.2.255 scope global enp2s0 valid_lft forever preferred_lft forever inet6 fe80::216:cbff:fe9c:ebce/64 scope link valid_lft forever preferred_lft forever 3: enx00808e8c92f8: <NO-CARRIER,BROADCAST,MULTICAST,DYNAMIC,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000 link/ether 00:80:8e:8c:92:f8 brd ff:ff:ff:ff:ff:ff 4: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 00:17:f2:99:7b:9b brd ff:ff:ff:ff:ff:ff root@imac51:~#
重新啟動似乎已經
wlan0
出現並且connmann
正在做某事。關閉再打開的情況…擺弄了一下
connmanctrl
,現在它似乎已經連接了——在另一次重新啟動之後。是否可以更改路由器上顯示的電腦名稱?
看來這
connman
對 DHCP 有作用。無論如何都沒有必要,所以最好不要使用它。使用iw
(command for do things with wifi) 和wpasupplicant
(addwpa-
commands to/etc/network/interfaces
) 和 this 在/etc/network/interfaces
:auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-ssid RWB wpa-psk password
請注意,對於這台機器,WiFi 硬體是 Broadcom 4321,正確的封裝是
firmware-bc43-installer
;安裝程序猜到另一個錯誤的包,結果是它將加入 AP 但無法訪問網路。這會影響 Ubuntu 20 和 Mint 10 安裝程序。