LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-31-2005, 09:22 AM   #1
Seicherl BoB
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
Question Again debian and ADSL


I want to use my Debian as ADSL-Router for my homenetwork.

I did the following:

- plug in a second NIC

- configure second NIC (eth1) so my interfaces-file looks like:
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.0.10
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.99

auto eth1
iface eth1 inet static
        address 10.0.0.140
        netmask 255.0.0.0
        gateway 10.0.0.138
eth0 always worked fine for the LAN, eth1 is the new one, which should be connected to the ADSL-modem via ethernet.

- connect modem to eth1 as mentioned.

- configure ppp ( /etc/ppp/options )
Code:
name ***username***
noauth
noipdefault
defaultroute
mtu 1492
mru 2400
- configure chap and pap by adding username and password

- adding my ISPs nameservers to my /etc/resolv.conf

- connect to my ISP with
Code:
pptp 10.0.0.138
WELL....
It says, that CHAP-authentification is successful
I receive my dynamic IP
I receive my remote-hosts IP

But I can't ping anything at all!!
Everything thats available for me ist my remote-host
But I dont have a connection to anyone else?
Have I forgot anything?

PLZ help, my ISPs service center doesnt support linux and I start getting more and more confused!

grz, BoB

PS: i use console-only. no x-server, no kde or anything like that!

Last edited by Seicherl BoB; 10-31-2005 at 09:31 AM.
 
Old 10-31-2005, 12:08 PM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
hi,

You shouldn't have 2 gateways. Remove the one configured with eth0.
The gateway is the IP to send packets for which you have no route defined (route -n to see the routing table), so having 2 gateways is meaningfull only when your doing some load-balancing over 2 links to different routers.
 
Old 10-31-2005, 01:38 PM   #3
Seicherl BoB
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks, I allready figured it out myself.

Deleting all gateway entries... how simple a solution can be...

Now, lets set up some ip-tables...

Cya, BoB
 
  


Reply



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
SBCYahoo+ADSL+Debian!=conection insinu8 Linux - Newbie 2 12-05-2004 03:07 AM
Cannot connect ADSL Debian chestnut Linux - Networking 0 07-07-2004 06:11 PM
Debian & adsl Mikessu Linux - Networking 0 12-26-2003 05:43 PM
Debian netinstall via ADSL slashrsm Debian 2 12-04-2003 07:40 AM
ADSL on Debian eogandix Linux - Networking 1 09-02-2003 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:20 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration