centos 系統 筆記本無線網卡串連wifi 筆記

來源:互聯網
上載者:User

標籤:linux配置無線網卡   centos 配置無限網卡   


由於用筆記本連線路由器,所以折騰了好一陣,我去不管如何反正是配置好了
其中碰到了幾個問題在這兒小計一下,從一開始用

首先硬體保證開啟無限網卡的開關,比如我的是FN+F3鍵

然後執行下:
iwconfig wlan0 txpower on

第一確保是有網卡驅動的

[[email protected] ~]# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"LiebaoFree979"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 08:57:00:61:CD:E4   
          Bit Rate=1 Mb/s   Tx-Power=20 dBm   
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off


          Link Quality=70/70  Signal level=-31 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

sit0      no wireless extensions.


上邊是有的,要是全是 no wireless...這個標誌,我想就悲劇了,得自己單獨安裝驅動,好在我的上邊不是,嘿嘿
有驅動了,接下來就是要配置的問題了。






首先先建立一個設定檔  如下
[[email protected] ~]# more /etc/network/wlan0_conf
ctrl_interface=/etc/network/wpa_supplicant
ctrl_interface_group=wheel
update_config=0
network={
ssid="LiebaoFree979"
proto=WPA
key_mgmt=WPA-PSK
psk="Sb123123"
}

其中 psk 是密碼,  ssid 是我的wifi的名稱


執行如下命令
[[email protected] ~]# wpa_supplicant -d -Dwext -iwlan0 -c/etc/network/wlan0_conf

接下來會運行一大堆的資訊


[[email protected] ~]# ping www.baidu.com
connect: Network is unreachable
[[email protected] ~]# service network restart
正在關閉介面 wlan0:                                       [確定]
關閉環回介面:                                             [確定]
彈出環回介面:                                             [確定]
彈出介面 eth0:
正在決定 eth0 的 IP 資訊...失敗;無連結。檢查電纜嗎?
                                                           [失敗]
[[email protected] ~]# ifup wlan0

正在決定 wlan0 的 IP 資訊...完成。
[[email protected] ~]# ping www.baidu.com
PING www.a.shifen.com (61.135.169.125) 56(84) bytes of data.
64 bytes from 61.135.169.125: icmp_seq=1 ttl=57 time=11.8 ms
64 bytes from 61.135.169.125: icmp_seq=9 ttl=57 time=4.91 ms
64 bytes from 61.135.169.125: icmp_seq=10 ttl=57 time=218 ms
64 bytes from 61.135.169.125: icmp_seq=11 ttl=57 time=5.03 ms

--- www.a.shifen.com ping statistics ---
11 packets transmitted, 4 received, 63% packet loss, time 10000ms
rtt min/avg/max/mdev = 4.914/60.022/218.329/91.441 ms

看到這兒基本就是ok拉,哈哈,習慣性的看下IP,如下wlan0

[[email protected] ~]# ifconfig
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:2065 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2065 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2564655 (2.4 MiB)  TX bytes:2564655 (2.4 MiB)

wlan0     Link encap:Ethernet  HWaddr EC:55:F9:7A:BC:7F  
          inet addr:20.20.0.111  Bcast:20.20.255.255  Mask:255.255.0.0
          inet6 addr: fe80::ee55:f9ff:fe7a:bc7f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6628 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6917 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5493110 (5.2 MiB)  TX bytes:1017924 (994.0 KiB)



恩,在中途配置的時候出現過,網路屬性 配錯的,啟動提示 network is unreanable的,還有提示 網路錯誤132的等等
恩,基本上整個折騰過程就這樣了,希望能幫到和我這樣用筆記本的同學~~~







centos 系統 筆記本無線網卡串連wifi 筆記

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.