[Techtalk] Modem Woes

Terri Oda terri at zone12.com
Thu Mar 13 12:58:10 EST 2003


> Kernel IP routing table
> Destination     Gateway         Genmask         Flags
> Metric Ref    Use Iface
> xxx.xxx.121.254  0.0.0.0         255.255.255.255 UH   
> 0      0        0 ppp0
> 198.1.1.0       0.0.0.0         255.255.255.0   U    
> 0      0        0 eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U    
> 0      0        0 lo
> 0.0.0.0         198.1.1.254     0.0.0.0         UG   
> 0      0        0 eth0
> 
> I was wondering if I should have the xxx.xxx.121.254
> as my gateway rather than 198.1.1.254??!!!

I think you've got it!  Right now, all your traffic is being routed through
your ethernet card (see that eth0 at the bottom?), so you probably want to
make xxx.xxx.121.254 your default route when you're on the network. 

It's been a while since I did PPP on a RedHat box, though, so I can't help
with the specifics of what config files you'll need to change.  

A quick fix for the moment: Delete that last route ("route del default" or
something along those lines), then add the new one (something like "route
add default gw xxx.xxx.121.254").  You should at least be able to reach
numeric IPs then and do name lookup if you've got DNS set.

That should get you up and running for the moment, but you'll want to change
those config files so that you don't have to do that yourself all the time. 
Unless you regularly route through the ethernet card, I'd just skip
specifying that as default gateway wherever its configured, and your dialer
should write (and remove) the appropriate default gateway stuff on its own.

 Terri



More information about the Techtalk mailing list