Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-29-2002, 12:54 AM
|
#1
|
LQ Newbie
Registered: Jan 2002
Distribution: Red Hat 7.2
Posts: 21
Rep:
|
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
|
|
|
01-29-2002, 08:29 AM
|
#2
|
Member
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717
Rep:
|
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.
|
|
|
01-29-2002, 02:08 PM
|
#3
|
LQ Newbie
Registered: Jan 2002
Distribution: Red Hat 7.2
Posts: 21
Original Poster
Rep:
|
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
|
|
|
01-29-2002, 05:44 PM
|
#4
|
LQ Newbie
Registered: Jan 2002
Distribution: Red Hat 7.2
Posts: 21
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 06:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|