IP addresing

Setting IP addresses is distribution-specific. On RedHat and derivative distributions, including Mandrake, configuration is stored in /etc/sysconfig/network-scripts, with data for each interface shown in ifcfg-interface. linux-wlan-ng interfaces begin with wlan: wlan0, wlan1, and so forth. An example static IP configuration for the first wireless LAN interface would hold IP address and netmask information just as with any other interface:

[[email protected] network-scripts]# cat ifcfg-wlanO

DEVICE=wlan0

BOOTPROTO=static

IPADDR=192.168.200.125

NETMASK=255.255.255.0

NETWORK=192.168.200.0

BROADCAST=192.168.200.255

ONBOOT=no

Bringing up the interface is a matter of running ifup with the interface name as an argument as root. Most Linux kernels are built without bridging support and cannot by default be configured with two interfaces on the same logical IP subnet. This is often a danger for stations with wireless LAN interfaces because the wireless interface is sometimes used to replace an existing wired interface.

[[email protected] network-scripts]# ifup wlanO

Dynamic IP configuration with DHCP is allowed; refer to your distribution's documentation for details on enabling dynamic boot protocols. DHCP configuration depends on forming a successful association with an access point. If the association fails, the DHCP discovery packets result in "not associated" error messages in the log.

Was this article helpful?

0 0
DIY Battery Repair

DIY Battery Repair

You can now recondition your old batteries at home and bring them back to 100 percent of their working condition. This guide will enable you to revive All NiCd batteries regardless of brand and battery volt. It will give you the required information on how to re-energize and revive your NiCd batteries through the RVD process, charging method and charging guidelines.

Get My Free Ebook


Post a comment