I'm trying to set up my Red Hat 7.1 Linux box to be a gateway to my DSL connection. I've got two ethernet cards, one going to the DSL modem (eth1), and the other to my hub (eth0). Linux recognizes and configures both ethernet cards, and successfully starts the Roaring Penguin PPPoE client. But I cannot ping any external internet sites, either using their domain name or IP address. The output from route shows my default destination's gateway is my internal LAN card (eth0), not my ppp0 connection, as the DSL-HOWTO shows in section 3.2.3. I'm pretty sure thats the problem, but I don't know what to do now. My DSL IP is dynamic, so I can't just hard code it. Below is the output from route and ifconfig. Thanks in advance for any help.
Code:
route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
216.249.74.1 * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.1.254 0.0.0.0 UG 0 0 0 eth0
ifconfig:
eth0 Link encap:Ethernet HWaddr 00:10:B5:B7:1F:EF
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
eth1 Link encap:Ethernet HWaddr 00:04:5A:4A:9B:8A
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
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:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
ppp0 Link encap:Point-to-Point Protocol
inet addr:216.249.74.126 P-t-P:216.249.74.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0