SOLVED.
STABLE CONNECTION ACHIEVED.
ROUTING ESTABLISHED.
FIREWALL ESTABLISHED.
Well I finally got the linux box working alone (with no Netgear in front of it). It's working which makes May feel like Christmas, but it's kinda weird if you ask me.
Check it out-----
Here's the final report for anyone that comes after me and might benefit from my trials and errors.
# /etc/conf.d/net:
$Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
# Global config file for net.* rc-scripts
# This is basically the ifconfig argument without the ifconfig $iface
#
# ADDRESS 111.111.111.134 IS WHAT SBC STATED AS THE
# "GATEWAY" ADDRESS FOR ALL MY STATIC IP'S.
# THE NETMASK WAS ALSO STATED BY SBC, AS USED IN
# EXAMPLE HERE.
iface_eth0="111.111.111.134 broadcast 111.111.111.134 netmask 255.255.255.248"
iface_eth1="199.199.169.1 broadcast 199.199.169.255 netmask 255.255.255.0"
iface_eth2="199.199.170.1 broadcast 199.199.170.255 netmask 255.255.255.0"
# I WAS ABLE TO GET THIS "ADSL" SETUP TO WORK TOO.
# BUT I WANTED TO FILL IN THE STATIC VALUES IN ORDER
# TO MAKE NETMOUNT WORK PROPERLY UPON BOOTING GENTOO.
#
#ifconfig_eth0="adsl"
#
# For setting the default gateway
#
gateway="eth0/111.111.111.1"
_________________
I don't know why using 111.111.111.1 works, as it is definitely NOT in my block of static ip's: *.128 - *.135
But certainly try it in your setup; it is working for me.
The following to be used in conjunction with rp-pppoe software -
/etc/ppp/pppoe.conf:
ETH='eth0'
USER='full_username@sbcglobal.net'
DEMAND=no
# YOU COULD PROBABLY SET DNS MANUALLY TOO.
# HAVEN'T TRIED IT YET.
DNSTYPE=SERVER
PEERDNS=no
# Make the PPPoE connection your default route. Set to
# DEFAULTROUTE=no if you don't want this.
DEFAULTROUTE=yes
# - If you have a computer acting as a gateway for a LAN, choose "1412".
# The setting of 1412 is safe for either setup, but uses slightly more
# CPU power.
CLAMPMSS=1412
____________________________
/etc/ppp/pap-secrets:
"full_username@sbcglobal.net" * "password"
_____________________________
While testing all of the above, make sure your iptables firewall is NOT running.
In Gentoo, as root: /etc/init.d/iptables stop
If you are using eth0 as your WAN device (internet-facing NIC for routers), then you must change every mention of "eth0" in your iptables firewall to "ppp0". Once the rp-pppoe software is started, the connected NIC becomes ppp0 and takes the static ip address you placed in /etc/conf.d/net.
________________________________
To finish off, I put the command /usr/sbin/adsl-start into /etc/conf.d/local.start, so the routerbox boots, NIC modules get loaded, NIC devices are assigned ip addresses, firewall starts, ip forwarding starts, and finally the dsl connection is commenced with the adsl-start command.
_______________________________
Now that I've had a little time to take some looks at the connection, I do find this pppoe system a little strange.
The results of route -n:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
204.60.4.34 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
111.111.111.128 0.0.0.0 255.255.255.248 U 0 0 0 eth0
199.199.170.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
199.199.169.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 204.60.4.34 0.0.0.0 UG 0 0 0 ppp0
The "Destination" and "Gateway" for my ppp0 device are now set at 204.60.4.34. A super-cool fella over in the
http://www.dslreports.com forums made it clear that this address represents the next hop up the ISP chain of routers.
Here's the results of ifconfig:
ppp0
Link encap:Point-to-Point Protocol
inet addr:111.111.111.134 P-t-P:204.60.4.34 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:764708 errors:0 dropped:0 overruns:0 frame:0
TX packets:758450 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:137166037 (130.8 Mb) TX bytes:51826617 (49.4 Mb)
eth0
Link encap:Ethernet HWaddr 00:11:3P:A9:G3:37
inet addr:111.111.111.134 Bcast:111.111.111.134 Mask:255.255.255.248
Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:766749 errors:0 dropped:0 overruns:0 frame:0
TX packets:760509 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:154116739 (146.9 Mb) TX bytes:68584026 (65.4 Mb)
Interrupt:11 Base address:0xe000
So the only mind-bending questions left are why does eth0 get switched to *.128 when I have manually set it to *.134, and why does setting eth0 gateway to *.1 work even though it's not within my block of static ip's.
For now, it's just nice to have it working. I'll try to answer these questions later.
Peace,
Floog