Quote:
My wireless router does have adsl its a D-Link G604-T.
|
Excellent. I've taken a look at your D-link's manual. It should be a breeze to set it up:
Start by booting linux and commenting out
all that stuff you just did to make the USB thingy work, otherwise you'll end up with 2 "internet connections", one of which will not work, and there'll be confusion. If you had your old setup configured to start at boot, best to unconfigure this and reboot once you have commented out all the references to loading firmware, and connecting to the USB modem.
Plug everything in to your D-link (power, phoneline, ethernet cable to your PC) and turn it all on. Boot to linux (that
is your default, isnt it?)
If you had trouble using the D-link with windows I strongly suggest you first reset it to its factory defaults (Manual P19, well, the
PDF-Manual Page 19, maybe different for the printed one!), before you start. Then.....
Just ignore all that windows stuff (Manual P22-27), you don't need it.
Login to your modem by putting
http://192.168.1.1 into your browser. (Manual p28)
Note (Manual P5) that you must have javascript enabled in your browser.
Use the setup wizard to:
Set a new password for the router (and
write it down in your manual!)
Set the time
Skip to Manual P33
Option: "Select Internet connection Type (WAN)": Select PPPoE/PPPoA
Enter your BT username in the form
xxx@hg-someting.btinternet.com
Enter your BT password
Set VPI to 0, and VCI to 38 (this is only(?) for BT in the UK)
Set your "Connection type" to "PPPoA VC-Mux"
You are done. Click "Restart" like it says in the manual.
The modem will reboot, the lights will flicker for a while, and then (after about a minute), you should be connected to your ISP (BT). Your modem will ask BT's DHCP server for an IP address (from BTs pool of numbers) and for the address of BT's DNS server(s).
If you now reboot your computer you may find that the connection to your router is made automagically (depends on your distro), but if not you need to make this connection, like this, as root:
dhclient eth0
That will ask your router's DHCP server (which is enabled by default) to give your PC an (internal) network address somewhere in the range 192.168.1.2 to 192.168.1.254. It'll also tell your PC that your router will sort out DNS for you (your PC asks your router, your router asks BT, then returns the result to your PC. See page 42 of the manual, you should have "DNS Relay Selection" set to "Use Auto-discovered DNS Server))
If all that worked for you, well done!
When you next install a new distro, just make sure your router is powered up and plugged in before you boot, and your connection will probably "just work". Linux is getting pretty smart.
Once the D-link is configured to connect to BT, it'll also work with windows, but I know nothing about windows networking.
Some more things you may want to set up:
You have a nice secure, reliable ethernet connection, behind a good firewall, so turn the wireless
OFF, for security. (Manual P43). Remember, the wireless is
your side of the firewall, and the default is insecure and unencrypted.
I hate dynamic IP addresses on my machines. Once I have named a machine, I want its network IP address to
stay the same, so once you start plugging other computers into your router, and playing with networks (funfunfun!) you may want to set up static IP addressing for your PCs, instead of using DHCP. There are tons of HOWTOs about how to do that.
Your modem/router has a nice firewall (that piece of USB crap from BT didn't) so....
If you want to
ssh into your PC from the big bad internet, or use VNC to access your linux desktop from work, you'll have to open some ports in the router's firewall and forward them to your PC. (Manual P45).
The (sensible) default is for the firewall to let nobody in from the big bad net, but computers that are plugged into the other ethernet ports on your D-link will be able to talk to one another, and share your ADSL connection, unless they are running their own firewalls.