LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-29-2002, 12:54 AM   #1
kbaldor
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat 7.2
Posts: 21

Rep: Reputation: 15
sharing cable modem connection using router


I have two computers which are dual boot windoze 98 and Red Hat Linux 7.2. They are each connected to an ethernet hub which is connected to a cable modem router. The router is then connected to the cable modem of course.

In windoze, they are aware of each other and can share files, printers, and anything else that I want.

However, in linux, neither can ping the other.

Both computers are using DHCP and can access the internet simultaneously.

When we installed linux, both machines had the default hostname localhost.localdomain.

I used the "neat" utility to change one of the hostnames, so that I could use the hostname to find the other machine (or so I hoped).

My question is this. What do I need to do to enable these two computers to ping each other, share files, etc?
Thanks,

kbaldor
 
Old 01-29-2002, 08:29 AM   #2
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
1. find out what IP's your router is giving you when you use windows. Use winipcfg for win98/me and ipconfig for NT/2000 dont know what xp uses. write down all the info: IP address, name server address(DNS), default gateway. (default gateway for linksys is 192.168.1.1)Write them down
2. Boot up into linux, and run netconfig or linuxconf if you installed it.
3. netconfig: type netconfig in console, and it will bring up a window, dont select "use dhcp" instead enter the ip that the router was giving windows or you can use one that is in the same range ie; if your router was giving out 192.168.1.100 you can use any 192.168.1.2 through 192.168.1.254. next put in the netmask default is 255.255.255.0. Next default gateway, this is the lan side of your router, default for linksys is 192.168.1.1. Next is name server(DNS), When done click ok, and it should restart networking, if it doesnt work try rebooting.

I find that i have less problems when i put everything in static.
 
Old 01-29-2002, 02:08 PM   #3
kbaldor
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat 7.2
Posts: 21

Original Poster
Rep: Reputation: 15
How about the other computer on the network

How do I allow internet access for both computers using this plan? Do they each have a different address in windows? (I haven't checked yet) If not, how do they communicate with each other?

Thanks,

kbaldor
 
Old 01-29-2002, 05:44 PM   #4
kbaldor
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat 7.2
Posts: 21

Original Poster
Rep: Reputation: 15
It works

Just for anyone esle who is trying to do the same thing.

The IP address given by winipcfg was different for each computer on my lan, so I manually set each computer.

By the way, the IP addresses and gateway looked pretty generic, so if anyone needs to do this and does not have windows installed, try these IP addresses (they come from the pool of local addresses which wouldn't be valid as public addresses)

first computer:

192.168.1.1

second computer

192.168.1.2

if I had more, I could just add them following the same pattern

the network mask is

255.255.255.0

and the gateway is

192.168.1.254
 
  


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
My cable connection through router is like 56K connection ExtremeSupremacy Linux - Networking 1 07-10-2005 03:01 AM
Sharing internet connection between Slackware and XP via crossover cable islord Linux - Networking 3 01-24-2005 10:38 AM
Cable modem and router - connection lost koswo Linux - Networking 13 01-09-2004 11:19 AM
Sharing Cable Modem ShawnC Linux - Newbie 1 11-13-2003 12:41 PM
Help with Router /Cable connection Soulex Linux - Networking 1 02-17-2003 12:19 PM

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

All times are GMT -5. The time now is 12:55 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
Open Source Consulting | Domain Registration