Setting up Wireless router

Nick5324

Diamond Member
Aug 19, 2001
3,267
0
0
I'm well versed in a lot of computer software and hardware, I'm a noob when it comes to networking. I have a cable connection through the local cable compay, and i picked up the ZyXEL wireless router for cheap AR at compusa. I've plugged in the router, connected the WAN port to the Cable modem, and LAN1 to my comp. I used the "quick set-up" guide that came with the router. It had me go into the properties of TCP/IP of my connection and change "Obtain an IP address automatically" to "Use the following IP address" 192.168.1.3, subnet mask of 255.255.255.0 which i did. It also had me check that no gateways were configured, which there are none. Next, i launch a web browser and enter http://192.168.1.1/ This brings up a config window for the router. I run the set-up wizard, the first step is selecting a WAN interface, which i select DHCP client, and click next. The next step is select if you want to enable (default) the Wireless AP and any security you want to use. I haven't changed anything here, as I'll worry about this after i can get the router to play nice with my wired connection. After this, save settings, but no connection. All the appropriate LED's are on (Power, WAN,WLAN, LAN1). If i go back to TCP/IP properties and select "Obtain an IP address automatically", it works fine. What am I missing here?

Cliffs
1 Bought wirelss router
2 Followed "quick start" instructions
3 No go unless i use "Obtain IP automatically"
 

Nick5324

Diamond Member
Aug 19, 2001
3,267
0
0
I went ahead and put the wireless card in my laptop. Installed the card fine, and it even found my wireless network. However, i click connect, and it asks for the network key, (which i did setup on my main computer), and i enter the key. It tries to connect for about a minute, nothing. No error, no connection. I'm starting to think this is more trouble than it is worth, any ideas?
 

Nick5324

Diamond Member
Aug 19, 2001
3,267
0
0
Edit: Went back and turned off all security for the wireless router (for now), and the laptop connected. *Grumble* Edit: I did have the PC Card set to the same security setting (WPA2)
 

IonBlade

Member
Oct 22, 1999
191
0
76
The connections requiring DHCP (obtain automatically) aren't working when you specify them manually because of the fact that you don't have a gateway specified in your static settings. The gateway is the address of the system (in your case a router) that's the link between your network and another network (in this case, between the 192.168.1.x range you're using and the cable company's address range). If you don't specify the gateway when doing static address assignment, any address that requires routing to get to (here, that means any server that's not on your home network behind your router) is going to fail on conection, since it won't be found and your computer won't know where to go to look for it outside of your network.

What you'd want to do is to put the IP address of your router in the gateway field, presuming you want to use static addresses. I'd say to just use DHCP (automatic) and be done with it, unless you have a specific reason to not want to :)
 

Nick5324

Diamond Member
Aug 19, 2001
3,267
0
0
Originally posted by: IonBlade
The connections requiring DHCP (obtain automatically) aren't working when you specify them manually because of the fact that you don't have a gateway specified in your static settings. The gateway is the address of the system (in your case a router) that's the link between your network and another network (in this case, between the 192.168.1.x range you're using and the cable company's address range). If you don't specify the gateway when doing static address assignment, any address that requires routing to get to (here, that means any server that's not on your home network behind your router) is going to fail on conection, since it won't be found and your computer won't know where to go to look for it outside of your network.

What you'd want to do is to put the IP address of your router in the gateway field, presuming you want to use static addresses. I'd say to just use DHCP (automatic) and be done with it, unless you have a specific reason to not want to :)


Thanks for the reply, although i'm still not sure what the hell you are talking about. All the same, the bottom line was to leave it on obtain automatically and move on. I did try putting the IP of the router in the gateway field, and it didn't work. I guess i just can't understand why the first step of set up is to change this setting, yet the only way i can get the damn thing to work is to ignore it and leave it on automatic. I also can't help but wonder if this is effecting the wireless connection and why it will only connect as an unsecured network.

Edit: I've also noticed that the laptop will stay connected wirelessly as long as i use it, but 1 minute of inactivity and it disconnects.
 

IonBlade

Member
Oct 22, 1999
191
0
76
Well, one thing I neglected to mention - even if you put the IP of the router in the gateway field, if the DNS servers are not set, you'll only be able to get to web sites via their IP, not their name. Obtaining an IP automatically handles setting that for you too. Let me explain:

You already probably know that every computer out there on the Internet has an IP address. We'll use your router at 192.168.1.1 and the PC at 192.168.1.3 as an example. Simplifying things (this isn't always the case, but in yours it is), the first 3 numbers of an IP address (192.168.1) specify a whole network of devices (kinda like a country, city, and neighborhood in real life). The last number (such as 1 for your router or 3 for your PC) is a specific network device (or a house).

Now, a computer can *only* talk to computers on its own network (that is, whose first 3 numbers are the same) without external help. If 192.168.1.3 wants to talk to 192.168.1.4, for example, it'll work, because that's in the same network. If, however, it wanted to talk to 123.123.123.123, it wouldn't be able to by itself, since that's on a different network (as it's not the same first 3 numbers). That's where a gateway comes in.

When a computer needs to talk to a device in a *different* network, it forwards its request to a gateway device, which a router is. A gateway just lets two different networks talk to each other. That's why a computer can't get to the web without a gateway specified - it can't talk to the servers you're trying to connect to without the gateway, since they're not on your home network itself, and it gives up on finding it. With the gateway address specified in your settings, you could access the Internet.... almost.

Now, when you had set the gateway, which would let you talk to other networks and hence the Internet, you said that you couldn't get to the web. The thing is that there's one final piece to the puzzle: DNS. When you connect to www.google.com, you're really just connecting to a pretty name on top of the IP address 66.102.7.147. In fact, if you try to put that address in your browser's address bar, you'll get to Google, as google.com is just a pointer to that address. There's a server called a domain name server (DNS) that takes in domains and spits out these proper IP addresses. Without it setup, you can connect to sites via their IP directly, as that contains all the information needed on where a server is due to its structure, but you *can't* connect to a site via its domain name, since that doesn't mean anything to a computer without resolution to an address first. Think of it as what would happen if you wrote just your name on an envelope and dumped it in the mail (the domain) via putting no name, but the full address (IP address) - the mail wouldn't get delivered with just the name unless someone had a giant book they could look up your address in first, which is the job of DNS.

If you also setup your DNS server addresses, then you'd be able to access the web as you're used to.


So, in summary, looking at the Windows TCP/IP settings:

IP Address: Address of your computer, here 192.168.1.3. You'll want it to be in the same network as your router's address so it can talk to the router (remember, different networks can't talk to each other, and if your router / gateway is on a different network than your PC, it won't be able to find it to *ask* it how to get outside in the first place. That would be bad.)

Subnet Mask: 255.255.255.0 Remember how I said I was simplifying things and that the above explanation about how the first 3 digits specifies the network isn't always the case? That's what the subnet mask is for - changing how many bits of the IP address specify which network an IP belongs to and how many bits specify which *device* on an individual network it is. Just keep it at 255.255.255.0, which means to use the first 3 numbers for the network, and the last for the device number.

Default Gateway: Set this to the address of your router (192.168.1.1). By setting this, you're telling your computer who to pass requests on to to get outside your home network.

Preferred DNS Server and Alternate DNS Server: These are going to generally be servers on your ISP, though if you don't know them, 4.2.2.1 and 4.2.2.2 are good generic ones that are part of the Internet's backbone and have always worked for me. By setting them up, your computer will be able to turn domain names you type in into addresses so the computer can know what address it wants to connect to.


When you type in forums.anandtech.com, the process (simplified) is that the computer goes out to the DNS server and turns that into an address. It then looks and sees that that address isn't on its own network, so it forwards the request to the gateway (router). Then your data's on its way to the server.



Having explained all that? Obtaining an IP address automatically lets the router fill all that in for you :) Hope that makes a lot more sense than the first explanation. If not, and you want to know some more, http://computer.howstuffworks.com/internet-infrastructure1.htm and all its "next" links make for good reading!
 

Nick5324

Diamond Member
Aug 19, 2001
3,267
0
0
Originally posted by: IonBlade
Well, one thing I neglected to mention - even if you put the IP of the router in the gateway field, if the DNS servers are not set, you'll only be able to get to web sites via their IP, not their name. Obtaining an IP automatically handles setting that for you too. Let me explain:

You already probably know that every computer out there on the Internet has an IP address. We'll use your router at 192.168.1.1 and the PC at 192.168.1.3 as an example. Simplifying things (this isn't always the case, but in yours it is), the first 3 numbers of an IP address (192.168.1) specify a whole network of devices (kinda like a country, city, and neighborhood in real life). The last number (such as 1 for your router or 3 for your PC) is a specific network device (or a house).

Now, a computer can *only* talk to computers on its own network (that is, whose first 3 numbers are the same) without external help. If 192.168.1.3 wants to talk to 192.168.1.4, for example, it'll work, because that's in the same network. If, however, it wanted to talk to 123.123.123.123, it wouldn't be able to by itself, since that's on a different network (as it's not the same first 3 numbers). That's where a gateway comes in.

When a computer needs to talk to a device in a *different* network, it forwards its request to a gateway device, which a router is. A gateway just lets two different networks talk to each other. That's why a computer can't get to the web without a gateway specified - it can't talk to the servers you're trying to connect to without the gateway, since they're not on your home network itself, and it gives up on finding it. With the gateway address specified in your settings, you could access the Internet.... almost.

Now, when you had set the gateway, which would let you talk to other networks and hence the Internet, you said that you couldn't get to the web. The thing is that there's one final piece to the puzzle: DNS. When you connect to www.google.com, you're really just connecting to a pretty name on top of the IP address 66.102.7.147. In fact, if you try to put that address in your browser's address bar, you'll get to Google, as google.com is just a pointer to that address. There's a server called a domain name server (DNS) that takes in domains and spits out these proper IP addresses. Without it setup, you can connect to sites via their IP directly, as that contains all the information needed on where a server is due to its structure, but you *can't* connect to a site via its domain name, since that doesn't mean anything to a computer without resolution to an address first. Think of it as what would happen if you wrote just your name on an envelope and dumped it in the mail (the domain) via putting no name, but the full address (IP address) - the mail wouldn't get delivered with just the name unless someone had a giant book they could look up your address in first, which is the job of DNS.

If you also setup your DNS server addresses, then you'd be able to access the web as you're used to.


So, in summary, looking at the Windows TCP/IP settings:

IP Address: Address of your computer, here 192.168.1.3. You'll want it to be in the same network as your router's address so it can talk to the router (remember, different networks can't talk to each other, and if your router / gateway is on a different network than your PC, it won't be able to find it to *ask* it how to get outside in the first place. That would be bad.)

Subnet Mask: 255.255.255.0 Remember how I said I was simplifying things and that the above explanation about how the first 3 digits specifies the network isn't always the case? That's what the subnet mask is for - changing how many bits of the IP address specify which network an IP belongs to and how many bits specify which *device* on an individual network it is. Just keep it at 255.255.255.0, which means to use the first 3 numbers for the network, and the last for the device number.

Default Gateway: Set this to the address of your router (192.168.1.1). By setting this, you're telling your computer who to pass requests on to to get outside your home network.

Preferred DNS Server and Alternate DNS Server: These are going to generally be servers on your ISP, though if you don't know them, 4.2.2.1 and 4.2.2.2 are good generic ones that are part of the Internet's backbone and have always worked for me. By setting them up, your computer will be able to turn domain names you type in into addresses so the computer can know what address it wants to connect to.


When you type in forums.anandtech.com, the process (simplified) is that the computer goes out to the DNS server and turns that into an address. It then looks and sees that that address isn't on its own network, so it forwards the request to the gateway (router). Then your data's on its way to the server.



Having explained all that? Obtaining an IP address automatically lets the router fill all that in for you :) Hope that makes a lot more sense than the first explanation. If not, and you want to know some more, http://computer.howstuffworks.com/internet-infrastructure1.htm and all its "next" links make for good reading!

Thanks for the great explanation. I now have it set up using the "generic" DNS servers you suggested, works fine. This also helped with the wireless connection to the laptop somehow, as before i had to open the detected wireless networks, and click connect. It would connect after about a minute, but would disconnect with 1 minute of inactivity. Now, it connects automatically, and stays on for about 5 minutes of inactivity. I also installed a PCI wireless card in the desktop upstairs, worked perfectly right away. Now, I'd like to get the wireless network to work this way with WPA2. Again, thanks for you help IonBlade. :beer: