Use IW2200 wireless network card In Debian

Source: Internet
Author: User
The IW2200 wireless network card In Debian uses the Linux Release Technology-Debian information. The following is a detailed description. INTEL has been launched for several years, and the wireless network card has been replaced by two generations. However, it seems that the application of INTEL Wireless Network Card In debian has always been a problem.

Because I recently bought a local database, this problem that I didn't care about before suddenly becomes important. After searching for information and experimenting all morning, I finally found the latest and simplest solution.

First, let's talk about my network connection method. The ADSL cat is connected to a wireless router. The router automatically dials up to obtain the DNS server address. The Router does not activate the DHCP service, and the WEP encryption is set to open. The wireless network card is 2200BG.

Debian settings are as follows:

1. download and install the latest 2.6.15-1-686 Kernel
Since the 2.6.8 kernel that comes with the sarge-31r1a installation image cannot load all USB modules when starting the system, leading to system locking, you must upgrade to the new kernel.

Another reason is that the previous IPW2200 compilation scheme and NDISWrapper scheme on the Internet were time-consuming and laborious, and were not necessarily effective.

2. Check whether the module of IPW2200 is automatically loaded.

# Lsmod | grep ipw2200

If the module has been loaded, clear it first.

# Rmmod ipw2200

Then, reload with the necessary parameters:

# Modprobe ipw2200 associate = 1 led = 1 channel = 11

The first associate = 1 is to enable the wireless network adapter to automatically contact the router to determine various connection parameters. If it is set to 0, it is to manually set all necessary parameters. We recommend that you set it to 1, otherwise, you may be mad at by those parameters and cannot connect to a wireless router, as I did just now. :-)

The second parameter led = 1 is used to enable the working status light of the wireless network card. If the light is not flashing, it is difficult to know if it is working. We recommend that you enable it. If you don't want to see it, change it to 0.

The third parameter channel = 11 is used to set the channel for communications between the wireless network card and the wireless router. This may vary according to the specific settings of the wireless router. My router end is 11, so here it is also set to 11.

3. After loading the kernel module correctly, we have already completed half of the operation. The following is how to contact the wireless network card with the router.

Activate it first:

# Ifconfig eth1 up

Because the default eth0 is an on-board 8139 Nic, the wireless Nic is eth1. if there is only one Nic in the system, the wireless Nic should be eth0.

Then, set the IP address and subnet mask of the NIC:

# Ifconfig eth0 192.168.1.30 netmask 255.255.255.0

Next, set the route:

# Route add-host 192.168.1.30 gw 192.168.1.1
# Route add default gw 192.168.1.1

If no error occurs, the route table looks like this:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.30 192.168.1.1 255.255.255.255 UGH 0 0 0 eth1
192.168.1.0*255.255.255.0 U 0 0 0 eth1
Default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1

If you have not edited/etc/resolv. conf before, edit it to specify the DNS address in the following format:
Nameserver 202.97.224.69

4. Install a network adapter tool kit as follows:

# Apt-get install wireless-tools

After the connection is complete, set the essid name required for the connection:

# Iwconfig eth1 essid dlink

Next, set the WEP Password required for the connection:

# Iwconfig eth1 enc xxxxxxxxxx
This is different based on the individual password.

First, use iwlist to search for available wireless networks:
# Iwlist scanning

Then use iwconfig to connect to the appropriate wireless network:
# Iwconfig eth1 essid default rate auto

Use iwconfig to check the connection status. If the connection status is normal, you can manually configure the IP address or use dhclient for dhcp configuration.

After that, check the current status of the wireless network adapter:

# Iwconfig

All the parameters are available, and the password is complete.

Ping the gateway to see if the gateway is reachable:

# Ping-c 3 192.168.1.1
If there is no problem, ping the Internet again:

# Ping-c 3 www.linuxsir.org

Successful. At this point, the wireless network card has started to work.

You can modify the/etc/network/interfaces file to add the following lines without setting these parameters every time you start the system:

# The secondary network interface
Auto eth1
Iface eth1 inet static
Wireless-essid dlink
Wireless-key xxxxxxxxxxxxxxxx
Wireless-channel 11
Address 192.168.1.30
Netmask 255.255.255.0
Gateway 192.168.1.1

After the system is started, the wireless network will be automatically connected.

The last thing you need to talk about is that you don't need to download N multiple software packages or compile them. As long as you are a debianer, everything is so easy!
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.