Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to configure ADSL modem with network card?

Status
Not open for further replies.

taneujin

MIS
Aug 14, 2001
61
SG
I had a previous posting with the same problem.

I am using a mandrake linux with 2 network cards. One for internal and other is connected to an ADSL modem. The internet connection is an unlimited access and dynamic IP and no need to dial out.

I used adsl-setup to configure my ADSL connection. It promted me for username, password, Pri DNS, Sec DNS and firewall. I filled them in and then typed adsl-start/adsl-connect but I get a connection timed out. When I looked into /var/log/messages, I see that there is a PAD0 packet timed out.

I would like to know how I can make this connection work. Is there any configuration somewhere else I need to change?

Also, the ISP said that they are using PPPOA but in my /etc/ppp, all I see is pppoe.conf and some other pppoe stuffs. Is there a difference? If I need PPPOA, how do I get it?

I also tried linuxconf to try to configure the ADSL as well as ppp but all did not work. I also tried the Comman Center of Mandrake but it does not have the Internet Configuration tab for me to have the gui configuration (probably my Mandrake is too old).

I would like to know also, do I need to configure eth0(the one linked to the modem) for anything? And I only configured eth1 for internal ip, is that correct?

I would like the users to all have internet access, would it be possible to configure the linux box to let them all surf the web from their terminal?

Thank you for your advice.
 
I have tried pppoe already. Just that this service provider uses pppoa. I have no idea about it and have never done anything with pppoa. pppoe does not work. It gave a time out for waiting for PAD0 packet.

Could it be because mine is only a modem and therefore does not support PPPOA? I have checked on the website that my modem (Efficient networks 5260 modem) did not state anything about PPPOA but a 5660 router supports PPPOA. So under linux, will I be able to configure the linux box to be be a router and also supports PPPOA (like a Efficient Networks 56660 router)? Please help.
 
The PADO-packet timeout is the answer of you inital PADI frame (PPPoE Active Discovery Initiation). In other words the client broadcasting on ethernet for any access concentrators). The respons, (PADO PPPoE Active Discovery Offer) should instead of timing out say "morning dear client I'm an access concentrator, Do you want to hook up with me?"

I've never seen PPPoA and I'm a bit suprised that people acutally have pppoA. I thought that PPPoE and Bridge/DHCP was more or less standard. But stranger things have happened.
PPPoE = Point to Point Protocol over Ethernet
PPPoA = Point to Point Protocol over ATM
Do you have an internal ATM controller or ethernet controller?

I recently setup ADSL at home.
My ISP uses DHCP instead of PPPoE which I think is very convenient. Here's how I did it anyway.
Have you tried setting eth0 as a DHCP client?
in RedHat...
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp

Bring the interface up and down once and check with ifconfig eth0 if you recieved an ip. Perhaps you should be on the safe side and do...
/etc/init.d/network restart

It is correct that you should configure eth1 with "internal settings". Leave it as it is.

Of course you should let all users have internet access. It is very possible to configure the linux box to do that.

You should read up on ip-masquerading, ip-chains/ip-tables, NAT and such before continuing. I know a lot of security-minded people are gonna scream know, but here's how to get it working as simple as possible...

echo 1 >/proc/sys/net/ipv4/ip_forward
/sbin/modprobe ip_tables iptable_nat iptable_nat_ftp
/sbin/iptables -t nat -A POSTROUTING -o eth0 -i eth1 -j MASQUERADE

also check out...
/Sören
 
I have found out an answer that will help not only me but to all.

# adsl-setup

This sets up the adsl connection as well as the 2 network cards for NAT in my case.

All I require to do is ifconfig eth1 and leave eth0 as it is. Run adsl-setup and follow the prompts. And I choose masquerade for the NAT part and then type adsl-start and everything works great!

No need for squid nor ipchains as all the rules will be set when masquerade option is selected.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top