This is a tutorial I'm putting together to show you how to network 2 computers through a wireless connection using Windows Server 2003 and Red Hat Linux. In this tutorial we'll be using our Linux machine as our gateway to the wireless network. It is assumed that you have 2 computers, one having a wireless NIC as well as a standard ethernet port. The Windows machine needs to have only one NIC. Depending upon your NIC you may need a crossover cable, in my case I did not. It is also assumed that the WAP is your gateway to the internet.

Linux Setup

At this point you'll want to bring your NIC's online and acquire an adress from your WAP using DHCP for eth0 (or whatever your wireless card is named). As root you'll issue the following commands:

#ifconfig eth0 up; pump -i eth0; ifconfig
Make note of the address your assigned and continue on. The next thing we will do is assign a static IP to your second interface:

#ifconfig eth1; ifconfig
I assigned the NIC an IP in a private IP range. These are,, and For mine I chose the address with a mask of just to keep things simple.

The next thing you will want to do is turn on forwarding for the NIC's. In a nutshell, this is what allows your box to route packets.

Note: I will not be covering firewalling here so if this is a consideration please take appropriate measures and educate yourself as to the function of the following commands.

#echo "1" > /proc/sys/net/ipv4/conf/eth0/forwarding
#echo "1" > /proc/sys/net/ipv4/conf/eth0/proxy_arp
#echo "1" > /proc/sys/net/ipv4/conf/eth1/forwarding
#echo "1" > /proc/sys/net/ipv4/conf/eth1/proxy_arp
The next thing we will be doing is checking our routes. Usually Linux will add a route to whatever network your NIC sits on, but just to make sure we'll check:

What we're looking for here is where everything will be going. Mine looks something like this:
Destination	Gateway		Genmask		Flags Metric Ref Use Iface              *                            U       0        0    0     eth0                    *                                    U       0        0    0     eth1
default                                   UG     0        0    0     eth0
What this breaks down to is that everything destined to or from the and network will have to cross through eth1 or eth0 and the kernels routing table. The default route is the route that any packets NOT destined for directly attached networks will take. In this case the gateway is, the IP of my WAP, and the gateway to the internet.

Windows setup

Start off by assigning it a static IP:

*Click* Start > Control Panels > Network Conections

Since we have used the network for simplicity we'll assign the address with a mask of The default gateway will be (the localhost IP)

c:\ipconfig /all
Make sure your settings match what you've set and move on to RRAS. I assume you know your way around RRAS, if not. There is plenty of helpful info at the MS knowledgebase. At this point you'll need to configure your static routes to the other host on your network. First setup a route to yourself. The destination net is, the mask is, and the gateway again, is yourself. Then you'll setup a static route to your linux box. the destination will be, the mask will be and the gateway will be (eth1 on your linux box).

If you did everything correctly now you should be able to ping (eth0) from your windows machine. Congratulations!

WAP setup

There are so many different model WAP's there is no easy way to describe how to go about assigning a static IP, but for most small, home office models the management IP is usually,,, or If its different, you may need to consult with your owners manual, or you may have changed it yourself. They usually assign IP's in the standard network. You *could* continue to use DHCP to get an address, but you'd have to update your static routes by hand everytime your address changes. This is not a problem, just consider this because it *could* save hair. The last thing you will need to do is setup a static route on your WAP that points towards the network. The destination lan IP would be with a mask of The gateway will be eth0 (

At this point its all setup. You should be able to ping the gateway, or the outside world from your Windows machine. The only thing to do is to setup DNS to point towards a suitable (reachable) server on your machines.

If I missed anything by all means point it out. I just decided to write this because I am practicing for my MCSE and I needed to setup a lab. Thing is I didnt have time to run the wires from the other side of the house, so this works for now.



For further reading I'd reccomend Linux TCP/IP Network Administration by Scott Mann. Its a great read. Also the MS knowledge base, the owners manual to your WAP, and good ole google.