LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-03-2004, 05:01 PM   #1
Malren
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 3
Posts: 12

Rep: Reputation: 0
can't connect to internet with Bellsouth DSL


I'm new to Linux, and I really need some help. I'm dualbooting (using GRUB) "hda" has Windows XP, "hdb" has Fedora Core 1. I connect to the internet using Bellsouth DSL (I connect to the 2Wire modem through USB). My problem is this: I can get on the internet just fine with Windows XP, but I can't get Linux to connect. If it helps at all, I have a dynamic IP (that changes each time I start), but I have a default gateway, subnet mask, and an IP (the one that I see when I go into the command prompt in Windows and type "ipconfig")

IP= 172.16.1.34
Subnet Mask= 255.255.0.0
Default Gateway= 172.16.0.1

When I go to 2Wire's home page and look at the information about my computer, I see the above information, but I can also get more information, which shows me the IP that changes each time I connect. Please help me get Linux to connect to the internet.
 
Old 05-03-2004, 05:20 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
I use bellsouth dsl also,only difference is I use a ethernet card,intel onboard,and have no problems at all,I do know to use DHCP,the USB may give you some problems,what dist.are you using,david
 
Old 05-03-2004, 05:39 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Going by my own experiences and those of others on the boards, ethernet is a lot less problematic and easier to set up.

Also, I seem to remember being told (around a year ago) that ethernet also gives better speeds than usb because with ethernet all the work is done by the card and modem, whereas with usb, the pc/processor is doing most of the work.

Also, ethernet is more expandable - if you need to give another machine net access, it's a simple matter of adding a 4port hub (or whatever number) to the mix.

Hope this helps.
 
Old 05-04-2004, 04:38 PM   #4
Malren
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 3
Posts: 12

Original Poster
Rep: Reputation: 0
That's helpful, but it's not an option that's open to me
The only way I can connect to the internet is through the USB. The modem is in a room across the house, and my mother's computer connects to our modem with it's only ethernet port. The only way I can connect is by connecting from my USB into our house's structured wiring, the modem also connects to the structured wiring, which provides the only link between my computer and modem. If there's no way to get Linux to connect with my current setup, please tell me... But this is my only option. Thanks for the help!
 
Old 05-04-2004, 06:37 PM   #5
CBlue
Member
 
Registered: Mar 2004
Location: South Carolina, USA
Distribution: Mepis
Posts: 287

Rep: Reputation: 30
You need to set up your network/modem to get the ip from dhcp. You will need to find out what the name of your modem's module is. Then have that module installed by adding it to your /etc/modutils/aliases file. I'm not sure how you would write it out because I only know how to write it for ethernet cards. You will need to do some googling to find out what module you need to run for your modem in Linux and also how you should install it.
 
Old 05-20-2004, 01:58 AM   #6
nebul
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
I figured it out.

First you can set your external interface (eth0 or eth1, whatever) to be dhcp, just to get to the modem. It will give you a DHCP IP that is a local one (non-routable) 172.16/12 or 192.168/16.

You'll be able to access internet and all, but you still have a non-routable IP number.

Anyway, your network card will be configured as DHCP. If DHCP doesn't work for you, you can set up the route manually:
ifconfig eth0 up 192.168.1.77
route add -host 192.168.1.254

The latter is the address of the modem, the former is made up from the range of DHCP of the modem when it acts as a DHCP server. For your 172.16/12 network they would be similar -- figure them out. This setup worked for me.

Then you need to go to http://192.168.1.254/ and play with the ADVANCED settings of the modem. In the Configure->Connection set it to Bridged, and in Configure->DHCP turn it off -- you'll have reset the modem after each step -- it will ask you, just say yes.

This will make you modem be true DSL modem (just a modem).

Then you're ready to set up PPP. Assuming that you already have it installed on your machine this is how my /etc/sysconfig/network-scrips/ifcfg-ppp0 looks like:

USERCTL=yes
ONBOOT=yes
BOOTPROTO=dialup
NAME=DSLppp0
DEVICE=ppp0
TYPE=xDSL
PIDFILE=/var/run/pppoe-adsl.pid
#LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
FIREWALL=NONE
PING=.
PPPOE_TIMEOUT=320
LCP_FAILURE=3
LCP_INTERVAL=80
CLAMPMSS=1412
CONNECT_POLL=6
CONNECT_TIMEOUT=60
DEFROUTE=yes
SYNCHRONOUS=no
ETH=eth1
PROVIDER=DSLppp0
USER=<your user id>@bellsouth.net
PEERDNS=yes

And my ifcfg-eth1 looks like this:

DEVICE=eth1
BOOTPROTO=
ONBOOT=yes
USERCTL=no


Then edit your /etc/ppp/pap-secrets and /etc/ppp/chap-secrets file
to have the proper userid@bellsouth.net and your password.

After all this you can restart the network:
/etc/init.d/network restart

After some wait, your ppp should start and you should be on the network.

Let me know if you have any questions.

Last edited by nebul; 05-20-2004 at 02:02 AM.
 
Old 05-20-2004, 02:31 AM   #7
nebul
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
About your question regarding connectivity -- you can set up a Linux host be multihomed, i.e. having 2 or more network cards belonging to different nets.

Then you can configure one of those network cards be the external one -- the one connecting to your DSL modem, and the other is the internal one.

You'll have to set up IP forwarding and all, through the iptables package. It's really not that hard.

Then the internal network interface you can connect to a switch or a hub and connect as many computers there as you want; you'll also have to configure and run dhcpd, so that those internal computers get a DHCP FROM YOU, when they connect, this has nothing to do with the external world -- your IP provider will NEVER KNOW that you have an internal network at home -- to them it all looks like traffic to/from one machine one IP, one network card.

Before you do that though, I suggest you get your DSL modem working right.

I.e. my beef was that I was only getting a "private net" IP address, 192.168/16, in my case, and I don't want that! I want an externally visible IP assigned to my external network card.
My above message describes how to do that.

Else you can always set up your network card BOOTPROTO=dhcp and it'll work for you but you'll get a private net IP.

Uuuuh, anyway, ask questions if the above doesn't make sense -- it's way too late and I'm dying for some sleep.

Last edited by nebul; 05-20-2004 at 02:32 AM.
 
Old 05-21-2004, 12:38 PM   #8
Malren
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 3
Posts: 12

Original Poster
Rep: Reputation: 0
Okay, I've been trying some stuff, but still I'm without internet in Linux. Everything seems to trace back to one single problem: I don't have a device driver for 2wire in linux, and I don't know where to find one. Also, here's how my connection works:

I have my computer. connected to it is 2wire's USB-to-phone line converter. I have a normal telephone cable, one end connected to 2wire's converter, the other connected to my wall (the structured wiring of my house).

If anyone can tell me how to set this connection up, or knows where to find a Linux driver for 2wire, I will be very thankful.

(Linux automatically configures th 2wire connection in the hardware manager during startup, but I still can't connect to the internet.)

Thanks for all the help!

~Malren AKA.
 
Old 06-01-2004, 05:15 PM   #9
emsti
Newbie
 
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
Nebul, did your setup work for a NIC or USB?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux with bellsouth dsl jardim Linux - Networking 2 05-18-2005 04:56 PM
BellSouth DSL on RedHat 9 karenandbrian Linux - Newbie 1 04-23-2004 03:53 PM
bellsouth dsl ethernet modem pidden77 Linux - Networking 1 07-31-2003 06:02 AM
Bellsouth DSL BorgKing Linux - Newbie 14 06-25-2002 01:09 PM
Bellsouth DSL (again...) BorgKing Linux - Software 0 06-12-2002 01:06 PM


All times are GMT -5. The time now is 05:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration