LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Connecting to my new broadband service (https://www.linuxquestions.org/questions/linux-networking-3/connecting-to-my-new-broadband-service-543911/)

Greebstreebling 04-06-2007 06:08 PM

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

rtspitz 04-06-2007 06:44 PM

please test this on your linux box:

default gateway: 192.168.1.1 (router ip)

/etc/resolv.conf:

nameserver 192.168.1.1

tredegar 04-07-2007 06:44 AM

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.

Greebstreebling 04-07-2007 02:40 PM

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
:)

tredegar 04-08-2007 01:32 AM

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.


All times are GMT -5. The time now is 12:30 AM.