LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-06-2007, 06:08 PM   #1
Greebstreebling
Member
 
Registered: Nov 2005
Location: Swansea, Wales, UK
Distribution: debian
Posts: 235

Rep: Reputation: 30
Unhappy Connecting to my new broadband service


Dear folks - I have just acquired Braodband after a long wait in my area. I have Debian 3.1 on one machine, Windows on another, a four port hub and the router thingy which connects out to the internet. I have got the broadband service to work fine with the windows machine but want to use it on the linux box as well.

I have eth1 setup and can ping the router by ping 192.168.1.1 , but when I try to use the service by running up mozilla it can't find the connection for some reason. I'm pretty basic on networking can any one point me at some checks I ought to do please?

Does resolv.conf come into this somewhere? I have not done any setup/ configuration work, just tested using the ping. Not sure where to go from here.

Many thanks,
Greeb
 
Old 04-06-2007, 06:44 PM   #2
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 32
please test this on your linux box:

default gateway: 192.168.1.1 (router ip)

/etc/resolv.conf:

nameserver 192.168.1.1
 
Old 04-07-2007, 06:44 AM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,017

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
You can fix this by modifying the file /etc/network/interfaces
First decide if you want a static or dynamic IP. Static is good if you want to name the computers on your network in /etc/hosts.

For a static IP:
Code:
# /etc/network/interfaces
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

auto eth0
iface eth0 inet static
broadcast 192.168.1.255
# Put on the next line the static IP you want eg 192.168.1.3
address 192.168.1.3
netmask 255.255.255.0
# The next line is the IP of your router
gateway 192.168.1.1
For a dhcp LAN IP:
Code:
# /etc/network/interfaces
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

auto eth0
auto eth1 inet dhcp
Then you need to do (as root)
ifdown eth0
ifup eth0


Your connection should now be working and will be made at boot time (because it says auto eth0) in the interfaces file.
 
Old 04-07-2007, 02:40 PM   #4
Greebstreebling
Member
 
Registered: Nov 2005
Location: Swansea, Wales, UK
Distribution: debian
Posts: 235

Original Poster
Rep: Reputation: 30
Wink Many Thanks Guys, works a treat

Thanks both for the suggestions, works a treat. Do you know if there is a firewall package I should use for debian?

Thanks
Greeb
 
Old 04-08-2007, 01:32 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,017

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Pleased it worked.
For firewalls - Your "four port hub and the router thingy" is probable already running a firewall for you, all the ones I have bought in the last 3 years have done this (and I know for a fact that mine are running linux in that little box!).
If you told us its make and model No., I could confirm this for you.

Otherwise you'll have to take a look at iptables - [Search] button is above! There are many tutorials on the net.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I setup dsl broadband internet service ezz Linux - Networking 5 01-20-2006 06:40 PM
Mandriva 2006.3 can not connect to broadband service futurist Mandriva 21 09-10-2005 08:55 AM
What one should know before takeing a broadband service? anindyanuri Linux - Networking 0 02-23-2005 07:35 PM
connecting to broadband bdrevn Linux - Networking 3 04-27-2004 09:13 PM
Broadband service provider PlatinumRik General 1 07-24-2003 10:24 AM


All times are GMT -5. The time now is 01:03 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration