LinuxQuestions.org
Review your favorite Linux distribution.
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 12-24-2002, 06:04 AM   #1
guanyu
Member
 
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111

Rep: Reputation: 15
Adsl Nat


Hi guys this is the first time I setup NAT using ADSL. I used to setup T3 and cable NAT for linuxbox.
when I did ifconfig,
i got
eth0 Ethernet card(without ip address)

eth1 192.168.1.1(static ip)

lo 127.0.0.1

ppp0 my ISP ip

when I ping from my linux box, it showed that ping from 192.168.1.1(suppose from my isp ip). It's weird. I can't access internet. But my ppp0 grabbed the ip from my ISP. I am pretty sure that I am hookep up with internet.

So I try to pull out eth1 card. But it's worked fine. I have no idea what was going with that? Guys any clue?

Mun
 
Old 12-24-2002, 09:44 AM   #2
guanyu
Member
 
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111

Original Poster
Rep: Reputation: 15
if I bring down my eth1, my linux internet access is working and the ping from my isp.


eth0 Link encap:Ethernet HWaddr 00:E0:29:3A:1C3
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5683 errors:0 dropped:0 overruns:0 frame:0
TX packets:4024 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:6851663 (6.5 Mb) TX bytes:415055 (405.3 Kb)
Interrupt:10 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:92 errors:0 dropped:0 overruns:0 frame:0
TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5976 (5.8 Kb) TX bytes:5976 (5.8 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:219.93.224.181 P-t-P:219.93.216.19 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:5473 errors:0 dropped:0 overruns:0 frame:0
TX packets:3810 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:6718201 (6.4 Mb) TX bytes:317979 (310.5 Kb)

ifi bring up my eth0. my ppp0 is connecting but i can't access the web thru thi box. I guess Redhat is read from the eth0-> eth1-> lo>and ppp0

what is the prob lem?
 
Old 12-26-2002, 06:34 PM   #3
Miky
Member
 
Registered: Dec 2002
Location: London / Paris
Distribution: Debian / OpenBsd
Posts: 74

Rep: Reputation: 15
Ok the forum didn't post my reply so i'll be shorter this time.

I guess you have a routing pb, packets doesn't go through you're ppp0 cause they don't see it as default.

try route -nr to learn more

Ciao
 
Old 12-26-2002, 11:48 PM   #4
guanyu
Member
 
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111

Original Poster
Rep: Reputation: 15
i figured it out. route del default. route add my internal and external traffic. thanks
 
  


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
adsl no-nat dopamina Linux - Networking 4 01-17-2006 11:25 AM
iptables, nat, dhcp with adsl modem/router and wireless AP gjhicks Linux - Wireless Networking 8 05-16-2005 06:15 AM
Setting up a NAT/ Packet filter setup on ADSL router pcwulf Linux - Networking 1 11-28-2003 01:57 PM
NAT ADSL disconnected problem guanyu Linux - Networking 1 02-20-2003 05:48 PM
What's the difference between Linux-NAT and Sygate-NAT? yuzuohong Linux - Networking 0 08-07-2002 04:07 AM

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

All times are GMT -5. The time now is 09:59 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