Whois:

Sometimes daily ramblings & articles from a 30 something developer from North West England. Passionate about not just web standards, but all things life. Long time user of Debian/GNU Linux for Web Servers & my Desktops. >>>


» 29/10/2006, 11:40:57 / / / Subscribe

So I finally got the upgrade from BT that I should have got when I ordered my 8mb Broadband back in August. I run a home network so the idea of having a router appealed to me greatly. My thoughts were I could just bang it in to my 8-port hub and away I was surfing. Sadly this wasn't true because I have used non-routeable IP's on my home network so I had a bit of sorting out to do. I didn't want to use DHCP on the network because I need to know different boxes IP addresses for SSH, Apache, Mail and of course my MP3 collection for the hardware media player ;o)

This guide tells you how to get the router working with Debian, because let's face it, BT just don't support anything other than Microsoft Windows and really only XP properly. For the sake of ease I'm going to do it the GUI way.

Boot Debian and log in as Root (you will NOT be staying in the root account this is just so you can edit the system using the GUI and not su at the command line) I use KDE so if you use GNOME you'll just have to cope. Browse to "/etc" folder and open the hosts file. Under your local IP you'll need to add or edit the IP to something that is one up from the router (192.168.1.1) so edit to:

192.168.1.2

and save it. Back to "/etc" and open the networks file and add/edit the IP to the same one you just used. Once again back to "/etc" and open the resolv.conf file and ensure it is:

search home
nameserver 192.168.1.1


Back to "/etc" and open the folder "network" then open the file "interfaces"

ensure it looks like this (but ensure your HOSTNAME is your own):

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.1.1
dns-search YOUR HOSTNAME HERE
name Ethernet LAN card
address 192.168.1.2
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1



Save it and that's pretty much it. Of course because Linux is far superior to Windows we don't need to reboot the system for the network changes to take place. Just open a terminal window and enter:

/etc/init.d/networking restart

This will restart the ethernet interface. Keep the terminal window open and try a "apt-get update" and ensure the router is providing the connection now. Now we need to connect to the router and configure some aspects of the router. I was happy to see that MOST of it was secure enough by default. However the default admin password and username are SOMETHING YOU MUST CHANGE!!!! So follow the instructions provided to do that. Also you might want to change the hostname to something easy to type in to a browser. I used "firewall" but I'll leave you to come up with something funky. When you make these sorts of changes the router will need to reboot so don't panic when it takes about 20 secs to come back up, this is normal. The router itself is quite configurable but I'll write something else another time for things like setting up home servers and so on.

If you want to add more devices use a hub like me and follow the same instructions above but ensure the IP is something higher than the first machine you configured.

Log out of the root account and log back in to a user account, you're done.

It fails me why BT can't just add that in to the instructions of the product, editing a few files by hand isn't all that hard.

Tagged Under: , , , , .

Technorati:

Comments:

#1. david
01/11/2006, 13:09:56

Sorry off topic. Can i ask how i can find out where someone is from based on their IP address. Sorry off topic an prob I sound thick for asking. Cheers anyay.

#2. tek
01/11/2006, 14:21:08

By using WhoIs but even that isn't a direct indication of where they are but only where the ISP actually is. Even then I can appear to come from Japan or anywhere in the world if I use a proxy in that country. I could also if i had access to someone elses machine make it look like I was someone totally different too.

Send me the IP in an email and I'll look what I can up if you like.

#3. Narelle
04/11/2006, 02:58:04

Too technical... need pictures... fluff... happy stories...

#4. Neil
05/11/2006, 20:19:41

This article is exactlly why I love you - fully technical, without any effort. A guy at work was telling me he used to code in 1's and 0's.


It's not for me, but you have to respect someone who can get in there and fix stuff.

#5. tek
07/11/2006, 10:41:47

@Narelle - thats what OK magazine is for heh

@Neil - Cheers fella! smile

Add your comments below:

Required

Required

  CAPTCHA imageRequired (enter the six letters)

64-bit 2007 6280 accessibility Accessibility advert ajax angry annoyed apache arcticmonkeys article articles artlab b3ta beast bed bind blog blogging blogs blogsphere bob dylan Boer bookmarklets booze bots browsers bt bunnies bush bye chelsea tractor Chernobyl childhood cms coding coffee cold community copyright cpu cracker dad dark arts DDoS debian design designer development diamonds diy dog dogpile domain Don Ross dragon drm Ebaumsworld email emo en end essex everything exploit Feeling Good firefox Firefox flu fog formats free freedom freelance friday fuck you furQ geek germs google gravatar greenpeace hacker handset hangover hawkwind Helm hindu history Holocaust horse the band hospital hosting hotlinkers humour hype idiot ie ie7 ill images independence indie industry ipaq iraq ireland javascript job kanotix kernel keywords KG800 knoppix legal LG LGChocolate lies linux Linux Lohan lyrics marketing masters of war meme microsoft moblog mod_rewrite mothership motorola mozilla mum music myspace mysql neil net neutrality network new year new_year Nina Simone nirvana nokia nokia6280 northwest nothing office move p2p palm paperless office parties perl phishing photos php piercings plane pmwiki promotion python rant Razr rdf regex renegade resistence resources review rising risingdragon rising dragon hosting rob dougan ror router ruby santa sarge script kiddie security SEO server seven deadly sins shambo slaughter sleep snow Somme so what spam spammers ssh statement strike stuff stupid sun surname techno technorati tek tengine terrorism thinking tikiwiki time torture training tribe twitter ubuntu unix uptime URI US V3 v3 vets viagra video voodoo voyager220v vulnerability wales War war WC3 weapons web web-tribe web2.0 web 2.0 webmaster Web Standards wedding windows wokingham woo woody wordpress work WP WWI xmas xp Ypres ytmnd.com yule zero-day

Articles:

These articles are meant to help others that perhaps come across similar issues I had with Debian/GNU Linux or development of some kind. Others might just be of a rather random nature. I will try to keep up with any questions, responses, comments and even flames added to them. I am however not resposible for any "rm -rf * type issues that might occur, consider the previous words as my legal disclaimer :-)


» 11/08/2005, 22:12:41 / Comments (3) / Printable / Subscribe


» 24/05/2005, 23:28:12 / Comments (12) / Printable / Subscribe

Friends:

Bumble / Ratatak / Mal / Neil / Bizzos / Skeddy / Thinkattack / Nefariousmuse / Static Silence / Growchat / Bawdeep / Tristan / David Bamford / Narelle / Monday by Noon / Angry Ginger / Inkognitoh / Bob / Caolan

Moblog:

    • 06/06/07 - 07:06:27 :: Mmm... :: Bbq 12/03/07 - 06:03:40 :: New moblog :: does this still work? 10/05/06 - 08:05:45 :: Its all about the moon... No wait... :: its all about the sun yer know. 03/05/06 - 09:05:54 :: I said good morning :: its morning and i already wanna go to bed 27/03/06 - 11:03:44 :: Oh :: yes yes 05/03/06 - 07:03:41 :: Quick snack :: nice bit of soup!
    • 02/03/06 - 01:03:32 :: Yum. Subway rawks! :: considering its a foot long i think thats a real buttie! 11/02/06 - 01:02:24 :: ... :: it would appear not! 24/01/06 - 10:01:09 :: tek :: err me 16/01/06 - 07:01:21 :: Beer! :: indeed! 16/01/06 - 12:01:12 :: LOL! :: what a fantastic name for a shop! 15/01/06 - 04:01:04 :: Yep! :: nights in with the bavaria
    • 08/01/06 - 11:01:29 :: Mmm revels! :: tasty 19/12/05 - 04:12:49 :: Interesting :: strange pic taken on the way to a meeting 16/12/05 - 11:12:31 :: Woo! :: The Red Wings 15/12/05 - 10:12:26 :: ... :: out of the dust 05/12/05 - 02:12:08 :: aye! :: booty booty 04/12/05 - 12:12:14 :: Oh yes :: its only going to get more banging woo yay!