Networking Forums

Networking Forums > Computer Networking > Linux Networking > nat works with ppp but not eth0

Reply
Thread Tools Display Modes

nat works with ppp but not eth0

 
 
roger
Guest
Posts: n/a

 
      01-30-2004, 04:16 AM
Anyone know why the router function of my computer works when I am dialed
up using an external modem but when i switch to using a cable modem for the
internet access, the router function doesn't seem to work because the other
computers on the lan cannot access the internet. They can't even ping the
dns server numbers successfully.

I could give my setup but I don't know if that would help. Here is a look:

localhost:~/1scripts# ifconfig
eth0 Link encap:Ethernet HWaddr 00:48:54:395:6E
inet addr:xxx.xxx.xxx.xxx Bcast:255.255.255.255
Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:31980 errors:332 dropped:0 overruns:0 frame:0
TX packets:10176 errors:0 dropped:0 overruns:0 carrier:0
collisions:811 txqueuelen:100
RX bytes:5828111 (5.5 MiB) TX bytes:4067774 (3.8 MiB)
Interrupt:11 Base address:0x8000

eth0:0 Link encap:Ethernet HWaddr 00:48:54:395:6E
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0x8000

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:476 errors:0 dropped:0 overruns:0 frame:0
TX packets:476 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:438256 (427.9 KiB) TX bytes:438256 (427.9 KiB)


 
Reply With Quote
 
 
 
 
Horst Knobloch
Guest
Posts: n/a

 
      01-30-2004, 10:16 AM
roger <(E-Mail Removed)> wrote:

> Anyone know why the router function of my computer works when I am dialed
> up using an external modem but when i switch to using a cable modem for
> the internet access, the router function doesn't seem to work because the
> other computers on the lan cannot access the internet. They can't even
> ping the dns server numbers successfully.
>
> I could give my setup but I don't know if that would help.


This would clearly help. Please provide also the output of
"route -n" and "iptables-save".

Ciao, Horst
--
»When pings go wrong (It hurts me too)« E.Clapton/E.James/P.Tscharn
 
Reply With Quote
 
roger
Guest
Posts: n/a

 
      01-30-2004, 02:00 PM
Horst Knobloch wrote:

> roger <(E-Mail Removed)> wrote:
>
>> Anyone know why the router function of my computer works when I am dialed
>> up using an external modem but when i switch to using a cable modem for
>> the internet access, the router function doesn't seem to work because the
>> other computers on the lan cannot access the internet. They can't even
>> ping the dns server numbers successfully.
>>
>> I could give my setup but I don't know if that would help.

>
> This would clearly help. Please provide also the output of
> "route -n" and "iptables-save".
>
> Ciao, Horst


don't think it has to do with any of those things. clearly the routing
works with dialup just fine. its a more complex issue!
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      01-31-2004, 01:56 AM
On Fri, 30 Jan 2004 05:16:41 GMT, roger <(E-Mail Removed)> wrote:
> Anyone know why the router function of my computer works when I am dialed
> up using an external modem but when i switch to using a cable modem for the
> internet access, the router function doesn't seem to work because the other
> computers on the lan cannot access the internet. They can't even ping the
> dns server numbers successfully.
>
> I could give my setup but I don't know if that would help. Here is a look:
>
> localhost:~/1scripts# ifconfig
> eth0 Link encap:Ethernet HWaddr 00:48:54:395:6E
> inet addr:xxx.xxx.xxx.xxx Bcast:255.255.255.255
> Mask:255.255.248.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:31980 errors:332 dropped:0 overruns:0 frame:0
> TX packets:10176 errors:0 dropped:0 overruns:0 carrier:0
> collisions:811 txqueuelen:100
> RX bytes:5828111 (5.5 MiB) TX bytes:4067774 (3.8 MiB)
> Interrupt:11 Base address:0x8000
>
> eth0:0 Link encap:Ethernet HWaddr 00:48:54:395:6E
> inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> Interrupt:11 Base address:0x8000


It is probably NOT a good idea to use a single nic for both public and
private internet traffic since your local cable leg may see your private
traffic. But it should be possible, assuming that your LAN box(es) use
192.168.0.3 as their default gateway, and this box has proper routing and
iptables rules to masquerade your LAN.

I actually did that once to masquerade an alias 10.x.x.x subnet as a
192.168.x.x IP on the same nic and wire, but it was all behind a NAT
router, just so the 10.x.x.x could use the router expecting 192.168.x.x
IPs on its LAN side. It was easy to configure with SuSEfirewall2, but I
am not that knowledgeable about manually setting iptables rules.

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      02-04-2004, 04:01 AM
"roger" <(E-Mail Removed)> quoted and wrote in message
news:(E-Mail Removed) s.com

>>> Anyone know why the router function of my computer works when I am
>>> dialed up using an external modem but when i switch to using a
>>> cable modem for the internet access, the router function doesn't
>>> seem to work because the other computers on the lan cannot access
>>> the internet. They can't even ping the dns server numbers
>>> successfully.
>>>
>>> I could give my setup but I don't know if that would help.

>>
>> This would clearly help. Please provide also the output of
>> "route -n" and "iptables-save".

>
> don't think it has to do with any of those things. clearly the routing
> works with dialup just fine. its a more complex issue!


Maybe as complex as "echo 1 > /proc/sys/net/ipv4/ip_forward"? But of course
if your routing and iptables rulesets aren't configured to specifically
address the interface connected to the cable modem relative to the LAN
interface(s), then such problems as you're experiencing will most certainly
exist.

When you ask for help, and someone offers to examine your setup so as to
provide advice if it's in error, it's really rather counter-productive to
argue with them when you yourself are "in the dark".

Most people don't care to play guessing games with you.


tony

--
use hotmail for any email replies



-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get eth0 up (wired) - e1000 device eth0 does not seem to be present, delaying initialization. OtisUsenet Linux Networking 2 06-06-2007 02:57 AM
eth0 works with Linksys hub but not Netgear switch?!? pt Linux Networking 3 07-11-2005 02:54 PM
eth0 works, but needs to ping the gateway to jumpstart it Aaron E. Klemm Linux Networking 5 01-23-2005 03:07 AM
ifconfig eth0 down works but it won't go up! Al. C Linux Networking 8 11-20-2004 05:59 PM
how tho change source address of eth0/eth0:1 ? news Linux Networking 2 06-09-2004 03:25 PM



1 2 3 4 5 6 7 8 9 10 11