[vox-tech] using a modem and ethernet concurrently

Mark K. Kim vox-tech@lists.lugod.org
Sat, 20 Dec 2003 00:10:44 -0800 (PST)


If you don't have internet connection via eth0 (if you access only LAN via
eth0), then leave out the default gateway in your network configuration
(blank or 0.0.0.0 will hopefully work.)  Then, when eth0 comes up, it
won't have the default gateway entry, and it won't conflict with ppp0.
How you configure eth0 depends on your distribution.

-Mark


On Fri, 19 Dec 2003, Charles McLaughlin wrote:

> Hello,
>
> I'm having problems using my dial up modem and ethernet at the same time.
> This is a real bummer because I'm trying to set up a router/firewall, but I
> think I need to work this out first!  ;-)
>
> I've found that I need to remove an iptable routing entry for the ethernet
> card in order to be able to use the modem.  And it is imperative that I
> remove that iptable entry before I dial up.
>
> Here is what I've done to get it to work:
>
> --------------
>
> The default:
>
> cmclaugh@linux-router:~$ route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
> 0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
>
>
> I have to run the following **before** I dialup or else I won't be able to
> ping anything:
>
> cmclaugh@linux-router:~$ route del default gw 192.168.0.1
>
>
> Then I can dial up and connect:
>
> cmclaugh@linux-router:~$ pon                    # dials the modem, etc
>
> cmclaugh@linux-router:~$ route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 169.237.17.97   0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
> 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
> 0.0.0.0         169.237.17.97   0.0.0.0         UG    0      0        0 ppp0
>
> -----------
>
> Does this seem normal?  To me, what I've done seems like a crude work-
> around.  Is there a better way to allow the modem and ethernet to live
> together in peace?
>
> Thanks for any advice!
>
> Charles
>
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech
>

-- 
Mark K. Kim
AIM: markus kimius
Homepage: http://www.cbreak.org/
Xanga: http://www.xanga.com/vindaci
Friendster: http://www.friendster.com/user.jsp?id=13046
PGP key fingerprint: 7324 BACA 53AD E504 A76E  5167 6822 94F0 F298 5DCE
PGP key available on the homepage