LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Adsl Nat (https://www.linuxquestions.org/questions/linux-networking-3/adsl-nat-39268/)

guanyu 12-24-2002 06:04 AM

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

guanyu 12-24-2002 09:44 AM

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:1C:D3
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?

Miky 12-26-2002 06:34 PM

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

guanyu 12-26-2002 11:48 PM

i figured it out. route del default. route add my internal and external traffic. thanks


All times are GMT -5. The time now is 05:17 PM.