LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-22-2004, 03:14 PM   #1
ganewton
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Rep: Reputation: 0
dsl network setup


Hi. I'm using a different computer with dialup to try to find help setting up
my linux box onto a dsl hookup in the house with four or five other users.

I can ping to 192.168.1.1 from linux.

I Know the other users are using numbers such as 10.0.0.3 and 10.0.0.4.

The guy with the main connection doesn't use linux, but he has some
kind of a two computer server type thing set up that i don't know the
details about.

I had a windows machine running with the numbers 192.168.1.1 and
10.0.0.6, but i can't get that going any more.

I tried messing around with /sbin/ifconfig and /sbin/route with some of the
numbers above and got some encouraging results but no connection. I don't know which numbers are supposed to be ip addresses and which are gateways and so forth. It seems like if a pinging works then it shouldn't be too hard to get things going if there is someone knowledgable who doesn't mind helping.

thanks,
greg.
 
Old 07-22-2004, 06:30 PM   #2
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
If you are using redhat or fedora you can open a terminal session
make sure you are root if not type in
su

now you can use

setup

choose option
Network configuration
and choose dhcp to get the ip adress en dns adres from the dls router
 
Old 07-22-2004, 09:32 PM   #3
ganewton
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
thanks for the reply arno. I tried to run setup as root, and then /sbin/setup because i know that one needs to type in /sbin/ifconfig and /sbin/route to get those to run. Those didn't work and so i did "locate setup" and found /usr/sbin/setup, and so it ran with that command.
i am running redhat linux 7.1, which is a dated version. But i can't upgrade just yet because i have some urgent things to do with files that are in the system and i don't have the opportunity to upgrade yet.
In setup i marked the top box that said
[] use dynamic IP configuration (BOOTP/DHCP)
and pressed OK,
the ping still was good to 192.168.1.1, but the connection still was not there.
I wonder if the setup command should give me the IP values that exist or something.
 
Old 07-23-2004, 03:17 PM   #4
ganewton
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
still trying

Hi, and thanks for viewing. I am still trying to get connected to the internet via linux 7.1. I went back to the windows boot and now the internet connection is working fine once again for some reason. I found that the windows has the parameters 192.168.1.1 as the DNS server, and 10.0.0.6 as the IP address. Before, I was thinking that 192.168.1.1 should be the IP address for linux and 10.0.0.6 should be the "gateway". I still don't know what a gateway is exactly.
These seem to be the only numbers that are needed to make the connection for the windows OS. Today, I am supposing that 192.168.1.1 is the address of the ISP because the name of the provider is listed above that number in the TCP/IP properties box. I was pinging this address while in linux and thinking it was the connection to the internet, but I think I had ran the ifconfig -net 192.168.1.1 netmask 255.255.255.0 eth0 up, and so I probably had set the address of eth0 to 192.168.1.1 and I must have been pinging myself!
Yesterday I started trying different things to try to get things fixed up in the linux mode. I tried the "setup" command as suggested by arno. I think he suggested using the dynamic IP configuration (BOOTP/DHCP), but that didn't seem to help. I also tried a few other commands like hostname, domainname, and adsl-setup. I think I might try adsl setup again today because that seems to have to do with the IP address of the ISP's primary DNS server, which now I think is the number 192.168.1.1, and which I now am thinking is the way to get to the internet.
I am hoping that I have not gotten things in the various files too screwed up by messing around.
If any viewers might have some suggestions to offer it would be appreciated. Thanks!

PS, I ran a DOS prompt command tracert www.yahoo.com and found that the first address shown was 10.0.0.1 and then 192.168.1.1, and then others. I think my friend in the place here that takes care of the dsl connection said his server had the 10.0.0.1 address. As I mentioned, he does not know or run any linux so he cannot help me.

PSS, on the DOS i just pinged successfully the addresses 10.0.0.6 (myself i think), 10.0.0.1 (probably the house server?), 192.168.1.1 (probably the ISP DNS server?), 10.0.0.4 and 10.0.0.3 (other computers at the house i think). Supposedly the type of setup here is a "hub" as opposed to a "router". I have used a router before at another place with cable modem and it seemed easier.
 
Old 07-23-2004, 04:52 PM   #5
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
I am presuming from reading that u r using a hub? ur local network connection usually uses the 192.168.xxx.xxx and I am presuming that u r connecting ur linux box to a windows dial up connection. Could u tell me which version of windows u r connecting to and if u can gain access to the windows machine and in network tcp/ip connections what address is being used...usually this would belong to the 192.168 group in which case we can then put this number into the relevant place in linux. It would prob be easier not to use dhcp/bootp and to put it all in manually. Will wait to read ur post + we can take it from there :-)

Last edited by mermxx; 07-23-2004 at 04:58 PM.
 
Old 07-23-2004, 05:00 PM   #6
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
if u r using win 98 or b4 on your win machine then whilst connected to ur dial up then go to start>run and type winipcfg this will bring up a box from which u can get ur isp dns address
 
Old 07-23-2004, 05:38 PM   #7
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
The "server" with the adress 10.0.0.1 is used as a router but not as a dhcp server.


If you have access to one of the windows machine in yout network you kan check the default GW and DNS by using
ipconfig /all
if not use the settings below


using the setup you can configure your network ( tcp-ip settings ), ( in redhat 9 you can use redhat-config-network with which you can add more information)

use
ip adress: 10.0.0.6
netmask: 255.255.255.0
def GW: 10.0.0.1
Pr NS: 10.0.0.1

PS A gateway is an (ip)-adres where request are send if the adres of the computer does not mach the combination of your ip-adress and yout netmask.
eg if your adress is 10.0.0.6 with mask 255.255.255.0 and your destination is 80.20.10.1
then the request is send the gateway which is a router
 
Old 07-23-2004, 10:20 PM   #8
ganewton
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Hi. Thanks arno and mermxx for suggestions, and thanks to all for viewing.

I am running the windows 98 boot now from my machine which is up and running on the web, from where i am working now.

First mermxx's suggestions,...

>I am presuming from reading that u r using a hub?

yes, my friend with the connection said "it is a hub and not a router".

>ur local network connection usually uses the 192.168.xxx.xxx and I am >presuming that u r connecting ur linux box to a windows dial up connection.

I think the local connections are the 10.0.0.x ones, at least those are the local machine addresses, including this one. Mine is a dual boot windows 98 and linux redhat 7.1. I am almost sure that it is going to a windows dial up connection because my friend who manages the connection doesn't know linux and he has two machines, and I suppose that arno is correct that one of his machines would be a router and not a server. But anyway, would that be called a "windows dial up connection"???

>Could u tell me which version of windows u r connecting to and if u can gain >access to the windows machine and in network tcp/ip connections what >address is being used...usually this would belong to the 192.168 group in >which case we can then put this number into the relevant place in linux.

I will ask him later which version of windows he is running for the router, that is if the things i do with winifcfg and ipconfig / all don't give enough info. I could also ask him about the tcp/ip connection addresses being used. The only 192.168.x.x address that i know about is the 192.168.1.1, which seems to be the DNS server, wherever and whatever that is,.. i suppose that is maybe at the isp. It would be very nice to find the place in linux to put that.

>It would prob be easier not to use dhcp/bootp and to put it all in manually. >Will wait to read ur post + we can take it from there :-)

d'accord, as they say in france.

>if u r using win 98 or b4 on your win machine then whilst connected to ur >dial up then go to start>run and type winipcfg this will bring up a box from >which u can get ur isp dns address

The following copied to the mouse when i did a copy from the winifcfg window:
( I have changed my windows OS from 10.0.0.6 to 10.0.0.3 since the last post.)

Windows 98 IP Configuration

Host Name . . . . . . . . . : BioStar
DNS Servers . . . . . . . . : 192.168.1.1
Node Type . . . . . . . . . : Broadcast
NetBIOS Scope ID. . . . . . :
IP Routing Enabled. . . . . : No
WINS Proxy Enabled. . . . . : No
NetBIOS Resolution Uses DNS : Yes

Ethernet adapter :

Description . . . . . . . . : PPP Adapter.
Physical Address. . . . . . : 44-45-53-54-00-00
DHCP Enabled. . . . . . . . : Yes
IP Address. . . . . . . . . : 0.0.0.0
Subnet Mask . . . . . . . . : 0.0.0.0
Default Gateway . . . . . . :
DHCP Server . . . . . . . . : 255.255.255.255
Primary WINS Server . . . . :
Secondary WINS Server . . . :
Lease Obtained. . . . . . . :
Lease Expires . . . . . . . :

Ethernet adapter :

Description . . . . . . . . : Kingston EtheRx KNE111TX PCI Fast Ethernet Adapter
Physical Address. . . . . . : 00-C0-F0-77-0D-84
DHCP Enabled. . . . . . . . : No
IP Address. . . . . . . . . : 10.0.0.3
Subnet Mask . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . : 10.0.0.1
Primary WINS Server . . . . :
Secondary WINS Server . . . :
Lease Obtained. . . . . . . :
Lease Expires . . . . . . . :

(the copy thingy is a convenient feature in those boxes)

I think the PPP adapter is for a modem and is irrelevant. By the way, I changed the address for the windows machine to 10.0.0.3 from 10.0.0.6 because the latter would fail at times for some reason. I pinged 10.0.0.3 and there was no response and so i presumed it was an open address, and it has been working ok so far in windows. Evidently the default gateway 10.0.0.1 is relevant somehow. Recall that that was the first address in the list when i ran tracert in the DOS commands.

Now to arnos suggestions and comments....

>The "server" with the adress 10.0.0.1 is used as a router but not as a dhcp >server.

I'm sure you are correct that it is a router and not a server, thanks for correcting me. And i guess you are right that that machine would be routing to this machine. From the information from winifcfg above i suppose that it would also be called the default gateway, and it being the first on the list in the tracert list.


>If you have access to one of the windows machine in yout network you kan >check the default GW and DNS by using
>ipconfig /all
>if not use the settings below

The ipconfig /all gives the exact same info as in winifcfg, so I won't repeat it, but thanks for the suggestion. I guess one is a window thingy and one is a DOS prompt command.

>using the setup you can configure your network ( tcp-ip settings ), ( in >redhat 9 you can use redhat-config-network with which you can add more >information)

>use
>ip adress: 10.0.0.6
>netmask: 255.255.255.0
>def GW: 10.0.0.1
>Pr NS: 10.0.0.1

I will go back into linux and try to insert some of these things again, even though I don't have too much new information to try...only that I'm quite sure now that 192.168.1.1 is the DNS server (from the isp??, or at my friend's machine???), 10.0.0.3 is this machine's ip address (that is, since i've changed it from 10.0.0.6), and I guess I'm quite sure now that 10.0.0.1 is the "default gateway" as well as the "hub router", which is my friend's machine with the connection. I might have messed things up in the various files by running all these different things in linux and I might need help straightening them all out, so any help will be very much appreciated,.. this forum is a nice thing to find.

>PS A gateway is an (ip)-adres where request are send if the adres of the >computer does not mach the combination of your ip-adress and yout >netmask.
>eg if your adress is 10.0.0.6 with mask 255.255.255.0 and your destination >is 80.20.10.1

I'm not quite sure what you mean about the distinction between the address of the computer and that of the ip address, and I 'm not quite sure what you mean by destination, unless that is a site that one is trying to connect to.

>then the request is send the gateway which is a router

Yep, thanks for that info, i was confused about what is the gateway, and the difference between a router and a server.

And so I am going back into linux and try some things again...Thanks for helping!!!! Please help some more if you can!!!
 
Old 07-23-2004, 10:26 PM   #9
ganewton
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
sorry about the >'s

Sorry about the misplaced >'s in the above post. I put them at the beginning of each line of arno and mermxx's comments to identify them, but they didn't come out at the beginning of the lines in the post.
 
Old 07-24-2004, 02:36 AM   #10
ganewton
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Hi there, and thanks for viewing, and especially thanks to arno and mermxx for the help. Incredibly, i am writing this to the web from out of linux now instead of windows. I finally did something to get things going. I ran a program called /sbin/netconf, which presented the usual things that were in linuxconf networking, but in a different fashion, with separate windows instead of tabs. I think what i did was under the "routes to other networks" was change the default gateway to 10.0.0.1 and press "enable routing", let the IP of eth0 be 10.0.0.3, and put the "IP of name server 1" to be 192.168.1.1. I also did /sbin/ifup eth0 to be sure eth0 was up, which I did because no longer the response to ping 192.168.1.1 was an immediate "network is unreachable", but it hung after pinging that address. But now it pings ok after /sbin/ifup eth0.
going to bed now, but logging off the web because of all these open root windows.
Best of luck with everyone's networking. Thanks for viewing and helping.
g'night.
 
Old 07-24-2004, 03:11 PM   #11
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
Glad u got it sorted Ganewton, it`s not so difficult once u get an idea of what address is representing what and in this case, when u r not connecting directly to the internet from ur own system ur dns (domain nameserver)(which if u were connecting directly to the internet from ur machine would have been provided by your isp) is the address of your friends internet connection 192.168.1.1 and ur ip address was 10.0.0.3 ur friends machine address 10.0.0.1 was ur gateway.
But well done mate for sticking with it :-)
 
  


Reply



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
dsl setup paul62 *BSD 4 06-01-2005 07:37 AM
dsl setup flux Linux - Newbie 8 11-07-2004 11:26 AM
DSL/ Linksys DSL Router/ Linux cant see the network... Robert0380 Linux - Networking 9 04-03-2002 04:09 AM
DSL Setup Golem Linux - Newbie 3 01-31-2002 02:16 PM
DSL Setup ChristArt Linux - Software 10 10-31-2001 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:42 PM.

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
Open Source Consulting | Domain Registration