特殊:Badtitle/NS100:WifiDocs/RalinkRT2500Old:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/WifiDocs/RalinkRT2500Old}} {{Languages|UbuntuHelp:WifiDocs/RalinkRT2500Old}} <!> These are old instructions. The new version can be found at [[U... |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/WifiDocs/RalinkRT2500Old}} | {{From|https://help.ubuntu.com/community/WifiDocs/RalinkRT2500Old}} | ||
{{Languages|UbuntuHelp:WifiDocs/RalinkRT2500Old}} | {{Languages|UbuntuHelp:WifiDocs/RalinkRT2500Old}} | ||
<!> These are old instructions. The new version can be found at [[UbuntuHelp:WifiDocs/Driver/RalinkRT2500]] | <!> These are old instructions. The new version can be found at [[UbuntuHelp:WifiDocs/Driver/RalinkRT2500]] | ||
== How to Setup Wireless Cards Based on the RT2500 Chipset == | == How to Setup Wireless Cards Based on the RT2500 Chipset == | ||
This guide explains how to set up and configure a wireless network card based on the RT2500 chipset, which is manufactured by R''''''link and incorperated in many wireless network cards. | This guide explains how to set up and configure a wireless network card based on the RT2500 chipset, which is manufactured by R''''''link and incorperated in many wireless network cards. | ||
If you are unsure whether your wireless card is based on the RT2500 chipset, visit [http://ralink.rapla.net this page] for a list of cards based on the chipset. | If you are unsure whether your wireless card is based on the RT2500 chipset, visit [http://ralink.rapla.net this page] for a list of cards based on the chipset. | ||
{i} Since Ubuntu 5.10 (Breezy Badger) the rt2500 driver is installed out of the box, so your wireless card should visible as "ra0" if you open the Networking utility found under the '''System->Administration->Networking''' menu. | {i} Since Ubuntu 5.10 (Breezy Badger) the rt2500 driver is installed out of the box, so your wireless card should visible as "ra0" if you open the Networking utility found under the '''System->Administration->Networking''' menu. | ||
<!> If you run an older version of Ubuntu, or the instruction on this page for setting up WPA or WEP encryptions don't work for you, then you may have to compile the driver and/or one of the R''''''aConfig or R''''''utilT utilities as described in /DriverAndRaconfig. | <!> If you run an older version of Ubuntu, or the instruction on this page for setting up WPA or WEP encryptions don't work for you, then you may have to compile the driver and/or one of the R''''''aConfig or R''''''utilT utilities as described in /DriverAndRaconfig. | ||
<!> The rt2500 driver is for pci/pcmcia cards. If you have a usb device you will need the rt2570 driver. | <!> The rt2500 driver is for pci/pcmcia cards. If you have a usb device you will need the rt2570 driver. | ||
=== Configuration for Networks without WPA encryption === | === Configuration for Networks without WPA encryption === | ||
If your wireless network is not protected by the WPA encryption method (i.e. if it's open or protected by the WEP encryption method) follow these steps: | If your wireless network is not protected by the WPA encryption method (i.e. if it's open or protected by the WEP encryption method) follow these steps: | ||
1. Plug in your card. | 1. Plug in your card. | ||
2. Open '''System->Administration->Networking''' in the menu. | 2. Open '''System->Administration->Networking''' in the menu. | ||
3. Click "Properties" | 3. Click "Properties" | ||
4. Enter your wireless access point's ESSID and WEP Key (if appropriate), and click OK. | 4. Enter your wireless access point's ESSID and WEP Key (if appropriate), and click OK. | ||
5. Click the "Activate" button. You should now be connected to your wireless network! | 5. Click the "Activate" button. You should now be connected to your wireless network! | ||
In the future, all you'll need to do is click the Activate button to connect to the wireless network. If you wish Ubuntu to connect to the network on startup, follow these steps: | In the future, all you'll need to do is click the Activate button to connect to the wireless network. If you wish Ubuntu to connect to the network on startup, follow these steps: | ||
1. Open a "Terminal" window. | 1. Open a "Terminal" window. | ||
2. Type: | 2. Type: | ||
<pre><nowiki>gksudo gedit /etc/network/interfaces | <pre><nowiki>gksudo gedit /etc/network/interfaces | ||
</nowiki></pre> | </nowiki></pre> | ||
3. In the text editor window that opened search for a stanza beginning with "iface ra0". | 3. In the text editor window that opened search for a stanza beginning with "iface ra0". | ||
4. Add the following line to the beginning of the stanza: | 4. Add the following line to the beginning of the stanza: | ||
<pre><nowiki>auto ra0 | <pre><nowiki>auto ra0 | ||
</nowiki></pre> | </nowiki></pre> | ||
5. Save the file and close the editor. | 5. Save the file and close the editor. | ||
[[Anchor(wpa)]] | [[Anchor(wpa)]] | ||
=== WPA configuration === | === WPA configuration === | ||
If your wireless network uses the WPA encryption method, follow these steps: | If your wireless network uses the WPA encryption method, follow these steps: | ||
1. Open a "Terminal" window. | 1. Open a "Terminal" window. | ||
2. Type: | 2. Type: | ||
<pre><nowiki>gksudo gedit /etc/network/interfaces | <pre><nowiki>gksudo gedit /etc/network/interfaces | ||
</nowiki></pre> | </nowiki></pre> | ||
3. In the text editor window that opened add the following stanza: | 3. In the text editor window that opened add the following stanza: | ||
<pre><nowiki>iface ra0 inet dhcp | <pre><nowiki>iface ra0 inet dhcp | ||
pre-up ifconfig ra0 up | pre-up ifconfig ra0 up | ||
第70行: | 第44行: | ||
pre-up iwpriv ra0 set WPAPSK="A shared key" | pre-up iwpriv ra0 set WPAPSK="A shared key" | ||
pre-up ifconfig ra0 up</nowiki></pre> | pre-up ifconfig ra0 up</nowiki></pre> | ||
You should replace "myssid" with the SSID of your network, and "A shared key" with your network's WPA pre shared key. If your network uses the AES encryption type, replace "TKIP" with "AES". If your network operates a mode other than Managed, replace "Managed" with the appropriate mode - but notice that some modes are not supported by the driver, or may not be fully functional. | You should replace "myssid" with the SSID of your network, and "A shared key" with your network's WPA pre shared key. If your network uses the AES encryption type, replace "TKIP" with "AES". If your network operates a mode other than Managed, replace "Managed" with the appropriate mode - but notice that some modes are not supported by the driver, or may not be fully functional. | ||
If you wish Ubuntu to connect to the network on startup, add the following line to the beginning of the stanza: | If you wish Ubuntu to connect to the network on startup, add the following line to the beginning of the stanza: | ||
<pre><nowiki>auto ra0 | <pre><nowiki>auto ra0 | ||
</nowiki></pre> | </nowiki></pre> | ||
If you want to use a static IP address rather than DHCP, you should replace the first line of the stanza above with something like | If you want to use a static IP address rather than DHCP, you should replace the first line of the stanza above with something like | ||
<pre><nowiki>iface ra0 inet static | <pre><nowiki>iface ra0 inet static | ||
address 192.168.1.45 | address 192.168.1.45 | ||
netmask 255.255.255.0</nowiki></pre> | netmask 255.255.255.0</nowiki></pre> | ||
(Use the address and netmask appropriate for your network's settings) | (Use the address and netmask appropriate for your network's settings) | ||
5. In the terminal window, type: | 5. In the terminal window, type: | ||
<pre><nowiki>sudo ifup ra0 | <pre><nowiki>sudo ifup ra0 | ||
</nowiki></pre> | </nowiki></pre> | ||
You should now be connected to your wireless network! | You should now be connected to your wireless network! | ||
{i} If the above did not work for you, try one of the following stanzas instead (the same notes apply to these stanzas as well): | {i} If the above did not work for you, try one of the following stanzas instead (the same notes apply to these stanzas as well): | ||
<pre><nowiki>iface ra0 inet dhcp | <pre><nowiki>iface ra0 inet dhcp | ||
pre-up iwpriv ra0 auth 3 | pre-up iwpriv ra0 auth 3 | ||
第101行: | 第64行: | ||
pre-up iwpriv ra0 wpapsk A shared key | pre-up iwpriv ra0 wpapsk A shared key | ||
pre-up iwconfig ra0 essid myssid </nowiki></pre> | pre-up iwconfig ra0 essid myssid </nowiki></pre> | ||
<pre><nowiki>auto ra0 | <pre><nowiki>auto ra0 | ||
iface ra0 inet dhcp | iface ra0 inet dhcp | ||
第111行: | 第73行: | ||
pre-up iwpriv ra0 set WPAPSK="A shared key" | pre-up iwpriv ra0 set WPAPSK="A shared key" | ||
pre-up iwpriv ra0 set TxRate=0</nowiki></pre> | pre-up iwpriv ra0 set TxRate=0</nowiki></pre> | ||
{i} If you need WPA support and the native method described here doesn't work, you may have to download and compile ''''''RaConfig as described in /DriverAndRaconfig. It's not necessary to compile the driver if that's already working out of the box. | {i} If you need WPA support and the native method described here doesn't work, you may have to download and compile ''''''RaConfig as described in /DriverAndRaconfig. It's not necessary to compile the driver if that's already working out of the box. | ||
=== Daily Use for Multiple Networks === | === Daily Use for Multiple Networks === | ||
Obviously, typing `sudo ifup ra0` everytime you want to connect to the network is less than desirable, and the ''''''RaConfig2500 utility only connects to the wireless network - it has no options for setting an IP address. | Obviously, typing `sudo ifup ra0` everytime you want to connect to the network is less than desirable, and the ''''''RaConfig2500 utility only connects to the wireless network - it has no options for setting an IP address. | ||
Gnome users report that saving a SSID & WEP key pair in the Gnome network manager tool works well. | Gnome users report that saving a SSID & WEP key pair in the Gnome network manager tool works well. | ||
This will add a couple of lines like the following into the `/etc/network/interfaces` file: | This will add a couple of lines like the following into the `/etc/network/interfaces` file: | ||
第125行: | 第83行: | ||
wireless-key abcdef01234567890 | wireless-key abcdef01234567890 | ||
</nowiki></pre> | </nowiki></pre> | ||
{i} ''The above is also incorrect, wireless-key is either to be given in HEX or it has to be prefixed by s: for a plaintext key.'' | {i} ''The above is also incorrect, wireless-key is either to be given in HEX or it has to be prefixed by s: for a plaintext key.'' | ||
KDE users might wish to have the SSIDs & corresponding WEP keys of several wireless networks managed by kWiFiManager, which can be configured to run at start-up in the panel next to the clock. This only runs if the interface is already up, so you may wish to add these lines to /etc/network/interfaces. | KDE users might wish to have the SSIDs & corresponding WEP keys of several wireless networks managed by kWiFiManager, which can be configured to run at start-up in the panel next to the clock. This only runs if the interface is already up, so you may wish to add these lines to /etc/network/interfaces. | ||
<pre><nowiki> | <pre><nowiki> | ||
iface ra0 inet static | iface ra0 inet static | ||
第137行: | 第90行: | ||
netmask 255.255.255.255 | netmask 255.255.255.255 | ||
</nowiki></pre> | </nowiki></pre> | ||
kWifiManager has an option to "Execute script connect" - if you enter `su - root /sbin/dhclient ra0 up &` it seems to work, but only if you open the Configuration Editor page & click on the "Activate" button. If you find a better way of managing this then please update this wikipage. | kWifiManager has an option to "Execute script connect" - if you enter `su - root /sbin/dhclient ra0 up &` it seems to work, but only if you open the Configuration Editor page & click on the "Activate" button. If you find a better way of managing this then please update this wikipage. | ||
The most comprehensive way to manage multiple wireless networks may well be - for the time being at least - to abandon all this GUI nonsense and keep all your SSIDs & WEP keys in /etc/network/interfaces. This is not pretty for new users, but may allow a degree of flexibility for those capable of a bit of scripting; man interfaces explains that using a "mapping" stanza in /etc/network/interfaces requires a script to be specified, which when run should specify the mapping (such as "home" or "work") to allocate to the interface. The SSID & WEP key, IP address or dhcp, and any other network parameters can be allocated to the interface based on the mapping, and the script called could probably determine the mapping based on the MAC address of a detected access-point. | The most comprehensive way to manage multiple wireless networks may well be - for the time being at least - to abandon all this GUI nonsense and keep all your SSIDs & WEP keys in /etc/network/interfaces. This is not pretty for new users, but may allow a degree of flexibility for those capable of a bit of scripting; man interfaces explains that using a "mapping" stanza in /etc/network/interfaces requires a script to be specified, which when run should specify the mapping (such as "home" or "work") to allocate to the interface. The SSID & WEP key, IP address or dhcp, and any other network parameters can be allocated to the interface based on the mapping, and the script called could probably determine the mapping based on the MAC address of a detected access-point. | ||
[http://ubuntuforums.org/showpost.php?p=103031&postcount=6 This forums posting] recommends wifi radar. | [http://ubuntuforums.org/showpost.php?p=103031&postcount=6 This forums posting] recommends wifi radar. | ||
=== Resources === | === Resources === | ||
Thanks to those in the forums who solved this problem for us! | Thanks to those in the forums who solved this problem for us! | ||
* [http://forums.fedoraforum.org/showthread.php?t=60081&page=3 FedoraForums discussion of WPA] on which this description is based | * [http://forums.fedoraforum.org/showthread.php?t=60081&page=3 FedoraForums discussion of WPA] on which this description is based | ||
* [http://www.ubuntuforums.org/showthread.php?t=78250 Ubuntuforums discussion of WPA] on which this is also based | * [http://www.ubuntuforums.org/showthread.php?t=78250 Ubuntuforums discussion of WPA] on which this is also based | ||
第155行: | 第102行: | ||
* Someone who has found [http://www.livejournal.com/~stinerman/81697.html problems with the native WPA support] | * Someone who has found [http://www.livejournal.com/~stinerman/81697.html problems with the native WPA support] | ||
* [http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access Wikipedia on WPA] | * [http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access Wikipedia on WPA] | ||
=== Reader Comments === | === Reader Comments === | ||
From: TheCat | From: TheCat | ||
Date: Sun, 1 Jan 2006 | Date: Sun, 1 Jan 2006 | ||
I couldn't get the native WPA to work - it wouldn't connect. After some playing around with the Gnome network control panel, it started working. As far as I can tell, the only change to the above instructions was to add these lines to the end of the stanza: | I couldn't get the native WPA to work - it wouldn't connect. After some playing around with the Gnome network control panel, it started working. As far as I can tell, the only change to the above instructions was to add these lines to the end of the stanza: | ||
<pre><nowiki> | <pre><nowiki> | ||
gateway 10.0.1.1 | gateway 10.0.1.1 | ||
wireless-essid "my essid" | wireless-essid "my essid" | ||
</nowiki></pre> | </nowiki></pre> | ||
From: TrevorNightingale | From: TrevorNightingale | ||
Date: Fri, 21 Oct 2005 | Date: Fri, 21 Oct 2005 | ||
I have a Zonet ZEW1601 wireless pci adapter working with Breezy. Followed the above instructions, however I did not compile or use the raconfig utility. The card would appear as active in the Gnome Network Settings dialog but would not connect to my network. To resolve this problem I copied the RT2500STA.dat file to /etc/Wireless/RT2500STA directory (as stated in the README file) and edited to match my configuration: | I have a Zonet ZEW1601 wireless pci adapter working with Breezy. Followed the above instructions, however I did not compile or use the raconfig utility. The card would appear as active in the Gnome Network Settings dialog but would not connect to my network. To resolve this problem I copied the RT2500STA.dat file to /etc/Wireless/RT2500STA directory (as stated in the README file) and edited to match my configuration: | ||
<pre><nowiki> | <pre><nowiki> | ||
[Default] | [Default] | ||
第183行: | 第123行: | ||
TxRate=0 | TxRate=0 | ||
PSMode=CAM | PSMode=CAM | ||
SSID=YourSSID | SSID=YourSSID | ||
NetworkType=Infra | NetworkType=Infra |
2007年11月30日 (五) 22:25的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/WifiDocs/RalinkRT2500Old }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/af | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|Afrikaans| [[::WifiDocs/RalinkRT2500Old/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/ar | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|العربية| [[::WifiDocs/RalinkRT2500Old/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/az | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|azərbaycanca| [[::WifiDocs/RalinkRT2500Old/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/bcc | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|جهلسری بلوچی| [[::WifiDocs/RalinkRT2500Old/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/bg | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|български| [[::WifiDocs/RalinkRT2500Old/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/br | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|brezhoneg| [[::WifiDocs/RalinkRT2500Old/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/ca | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|català| [[::WifiDocs/RalinkRT2500Old/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/cs | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|čeština| [[::WifiDocs/RalinkRT2500Old/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/de | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|Deutsch| [[::WifiDocs/RalinkRT2500Old/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/el | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|Ελληνικά| [[::WifiDocs/RalinkRT2500Old/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/es | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|español| [[::WifiDocs/RalinkRT2500Old/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/fa | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|فارسی| [[::WifiDocs/RalinkRT2500Old/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/fi | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|suomi| [[::WifiDocs/RalinkRT2500Old/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/fr | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|français| [[::WifiDocs/RalinkRT2500Old/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/gu | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|ગુજરાતી| [[::WifiDocs/RalinkRT2500Old/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/he | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|עברית| [[::WifiDocs/RalinkRT2500Old/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/hu | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|magyar| [[::WifiDocs/RalinkRT2500Old/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/id | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|Bahasa Indonesia| [[::WifiDocs/RalinkRT2500Old/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/it | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|italiano| [[::WifiDocs/RalinkRT2500Old/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/ja | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|日本語| [[::WifiDocs/RalinkRT2500Old/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/ko | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|한국어| [[::WifiDocs/RalinkRT2500Old/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/ksh | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|Ripoarisch| [[::WifiDocs/RalinkRT2500Old/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/mr | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|मराठी| [[::WifiDocs/RalinkRT2500Old/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/ms | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|Bahasa Melayu| [[::WifiDocs/RalinkRT2500Old/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/nl | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|Nederlands| [[::WifiDocs/RalinkRT2500Old/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/no | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|norsk| [[::WifiDocs/RalinkRT2500Old/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/oc | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|occitan| [[::WifiDocs/RalinkRT2500Old/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/pl | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|polski| [[::WifiDocs/RalinkRT2500Old/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/pt | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|português| [[::WifiDocs/RalinkRT2500Old/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/ro | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|română| [[::WifiDocs/RalinkRT2500Old/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/ru | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|русский| [[::WifiDocs/RalinkRT2500Old/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/si | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|සිංහල| [[::WifiDocs/RalinkRT2500Old/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/sq | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|shqip| [[::WifiDocs/RalinkRT2500Old/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/sr | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|српски / srpski| [[::WifiDocs/RalinkRT2500Old/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/sv | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|svenska| [[::WifiDocs/RalinkRT2500Old/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/th | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|ไทย| [[::WifiDocs/RalinkRT2500Old/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/tr | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|Türkçe| [[::WifiDocs/RalinkRT2500Old/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/vi | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|Tiếng Việt| [[::WifiDocs/RalinkRT2500Old/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/yue | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|粵語| [[::WifiDocs/RalinkRT2500Old/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/zh | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|中文| [[::WifiDocs/RalinkRT2500Old/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/zh-hans | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|中文(简体)| [[::WifiDocs/RalinkRT2500Old/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old | UbuntuHelp:WifiDocs/RalinkRT2500Old | {{#if: | :}}WifiDocs/RalinkRT2500Old}}/zh-hant | • {{#if: UbuntuHelp:WifiDocs/RalinkRT2500Old|中文(繁體)| [[::WifiDocs/RalinkRT2500Old/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:WifiDocs/RalinkRT2500Old|:WifiDocs/RalinkRT2500Old|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :WifiDocs/RalinkRT2500Old/zh | | {{#ifexist: WifiDocs/RalinkRT2500Old/zh | | {{#ifeq: {{#titleparts:WifiDocs/RalinkRT2500Old|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:WifiDocs/RalinkRT2500Old|1|-1|}} | zh | | }}
<!> These are old instructions. The new version can be found at UbuntuHelp:WifiDocs/Driver/RalinkRT2500
How to Setup Wireless Cards Based on the RT2500 Chipset
This guide explains how to set up and configure a wireless network card based on the RT2500 chipset, which is manufactured by R'link and incorperated in many wireless network cards. If you are unsure whether your wireless card is based on the RT2500 chipset, visit this page for a list of cards based on the chipset. {i} Since Ubuntu 5.10 (Breezy Badger) the rt2500 driver is installed out of the box, so your wireless card should visible as "ra0" if you open the Networking utility found under the System->Administration->Networking menu. <!> If you run an older version of Ubuntu, or the instruction on this page for setting up WPA or WEP encryptions don't work for you, then you may have to compile the driver and/or one of the R'aConfig or R'utilT utilities as described in /DriverAndRaconfig. <!> The rt2500 driver is for pci/pcmcia cards. If you have a usb device you will need the rt2570 driver.
Configuration for Networks without WPA encryption
If your wireless network is not protected by the WPA encryption method (i.e. if it's open or protected by the WEP encryption method) follow these steps: 1. Plug in your card. 2. Open System->Administration->Networking in the menu. 3. Click "Properties" 4. Enter your wireless access point's ESSID and WEP Key (if appropriate), and click OK. 5. Click the "Activate" button. You should now be connected to your wireless network! In the future, all you'll need to do is click the Activate button to connect to the wireless network. If you wish Ubuntu to connect to the network on startup, follow these steps: 1. Open a "Terminal" window. 2. Type:
gksudo gedit /etc/network/interfaces
3. In the text editor window that opened search for a stanza beginning with "iface ra0". 4. Add the following line to the beginning of the stanza:
auto ra0
5. Save the file and close the editor. Anchor(wpa)
WPA configuration
If your wireless network uses the WPA encryption method, follow these steps: 1. Open a "Terminal" window. 2. Type:
gksudo gedit /etc/network/interfaces
3. In the text editor window that opened add the following stanza:
iface ra0 inet dhcp pre-up ifconfig ra0 up pre-up ifconfig ra0 down pre-up ifconfig ra0 up pre-up ifconfig ra0 down pre-up iwconfig ra0 essid "myssid" pre-up iwconfig ra0 mode Managed pre-up iwpriv ra0 set AuthMode=WPAPSK pre-up iwpriv ra0 set EncrypType=TKIP pre-up iwpriv ra0 set WPAPSK="A shared key" pre-up ifconfig ra0 up
You should replace "myssid" with the SSID of your network, and "A shared key" with your network's WPA pre shared key. If your network uses the AES encryption type, replace "TKIP" with "AES". If your network operates a mode other than Managed, replace "Managed" with the appropriate mode - but notice that some modes are not supported by the driver, or may not be fully functional. If you wish Ubuntu to connect to the network on startup, add the following line to the beginning of the stanza:
auto ra0
If you want to use a static IP address rather than DHCP, you should replace the first line of the stanza above with something like
iface ra0 inet static address 192.168.1.45 netmask 255.255.255.0
(Use the address and netmask appropriate for your network's settings) 5. In the terminal window, type:
sudo ifup ra0
You should now be connected to your wireless network! {i} If the above did not work for you, try one of the following stanzas instead (the same notes apply to these stanzas as well):
iface ra0 inet dhcp pre-up iwpriv ra0 auth 3 pre-up iwpriv ra0 enc 3 pre-up iwconfig ra0 essid myssid pre-up iwpriv ra0 wpapsk A shared key pre-up iwconfig ra0 essid myssid
auto ra0 iface ra0 inet dhcp pre-up iwconfig ra0 essid " myssid " pre-up iwconfig ra0 mode managed pre-up iwpriv ra0 set Channel=11 pre-up iwpriv ra0 set AuthMode=WPAPSK pre-up iwpriv ra0 set EncrypType=TKIP pre-up iwpriv ra0 set WPAPSK="A shared key" pre-up iwpriv ra0 set TxRate=0
{i} If you need WPA support and the native method described here doesn't work, you may have to download and compile 'RaConfig as described in /DriverAndRaconfig. It's not necessary to compile the driver if that's already working out of the box.
Daily Use for Multiple Networks
Obviously, typing `sudo ifup ra0` everytime you want to connect to the network is less than desirable, and the 'RaConfig2500 utility only connects to the wireless network - it has no options for setting an IP address. Gnome users report that saving a SSID & WEP key pair in the Gnome network manager tool works well. This will add a couple of lines like the following into the `/etc/network/interfaces` file:
iface ra0 inet dhcp wireless-essid belkin54g wireless-key abcdef01234567890
{i} The above is also incorrect, wireless-key is either to be given in HEX or it has to be prefixed by s: for a plaintext key. KDE users might wish to have the SSIDs & corresponding WEP keys of several wireless networks managed by kWiFiManager, which can be configured to run at start-up in the panel next to the clock. This only runs if the interface is already up, so you may wish to add these lines to /etc/network/interfaces.
iface ra0 inet static address 0.0.0.0 netmask 255.255.255.255
kWifiManager has an option to "Execute script connect" - if you enter `su - root /sbin/dhclient ra0 up &` it seems to work, but only if you open the Configuration Editor page & click on the "Activate" button. If you find a better way of managing this then please update this wikipage. The most comprehensive way to manage multiple wireless networks may well be - for the time being at least - to abandon all this GUI nonsense and keep all your SSIDs & WEP keys in /etc/network/interfaces. This is not pretty for new users, but may allow a degree of flexibility for those capable of a bit of scripting; man interfaces explains that using a "mapping" stanza in /etc/network/interfaces requires a script to be specified, which when run should specify the mapping (such as "home" or "work") to allocate to the interface. The SSID & WEP key, IP address or dhcp, and any other network parameters can be allocated to the interface based on the mapping, and the script called could probably determine the mapping based on the MAC address of a detected access-point. This forums posting recommends wifi radar.
Resources
Thanks to those in the forums who solved this problem for us!
- FedoraForums discussion of WPA on which this description is based
- Ubuntuforums discussion of WPA on which this is also based
- Rt2x00 support forum
- Rt2x00 wiki
- List of wireless cards based on Rt2500
- Someone who has found problems with the native WPA support
- Wikipedia on WPA
Reader Comments
From: TheCat Date: Sun, 1 Jan 2006 I couldn't get the native WPA to work - it wouldn't connect. After some playing around with the Gnome network control panel, it started working. As far as I can tell, the only change to the above instructions was to add these lines to the end of the stanza:
gateway 10.0.1.1 wireless-essid "my essid"
From: TrevorNightingale Date: Fri, 21 Oct 2005 I have a Zonet ZEW1601 wireless pci adapter working with Breezy. Followed the above instructions, however I did not compile or use the raconfig utility. The card would appear as active in the Gnome Network Settings dialog but would not connect to my network. To resolve this problem I copied the RT2500STA.dat file to /etc/Wireless/RT2500STA directory (as stated in the README file) and edited to match my configuration:
[Default] CountryRegion=0 WirelessMode=0 TXBurst=0 TurboRate=0 BGProtection=0 ShortSlot=0 TxRate=0 PSMode=CAM SSID=YourSSID NetworkType=Infra Channel=1 AuthMode=SHARED EncrypType=WEP #DefaultKeyID=1 Key1Type=0 Key1Str=YourKeyGoesHere #Key2Type=0 #Key2Str= #Key3Type=0 #Key3Str= #Key4Type=0 #Key4Str= #WPAPSK=abcdefghijklmnopqrstuvwxyz #RTSThreshold=2312 #FragThreshold=2312 PSMode=CAM #RFMON=0