LinuxQuestions.org
Help answer threads with 0 replies.
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 04-09-2006, 07:14 AM   #1
xrado
Member
 
Registered: Dec 2004
Distribution: Zenwalk/Slackware
Posts: 98

Rep: Reputation: 15
help me understand routing


for instance i have:
router 192.168.1.1
comp1 192.168.1.111
comp2 192.168.0.112

both computers are connected to router. How do i make computer to see each other?
what routes do i have to set?

thanks for any advice!

Last edited by xrado; 04-09-2006 at 07:26 AM.
 
Old 04-09-2006, 10:31 AM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Both computers are conected to the same router then all need to be in the same Class C address if that is what you are using. Netmask 255.255.255.0 indiactes class C So since the router is on 192.168.1.1 then all computers need to be on an IP of their own of 192.168.1.* where the * is 2-254.

Should look like this
router 192.168.1.1
comp1 192.168.1.111
comp2 192.168.1.112

The machines should have the following info based on store bought routers.
netmask 255.255.255.0
gateway 192.168.1.1
dns can be 192.168.1.1 or your providers dns values.

The only way to get the two to talk to each other the way you had is to have a router between the comp1 anf comp2 to move from one class c level to the other.

Brian1
 
Old 04-09-2006, 02:46 PM   #3
xrado
Member
 
Registered: Dec 2004
Distribution: Zenwalk/Slackware
Posts: 98

Original Poster
Rep: Reputation: 15
i know that C class will work, but im try to access to another subnet..
some one just gave me advice about changing netmask to 255.255.0.0 (on comp1,2,router)
that should work...
thx anyway!
 
Old 04-09-2006, 06:44 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Yes that will work. This will be a class B which gives about 65025 IP network veruses a Class C which is 255 IP network. Your not really going from one subnet to another they all exist in the same subnet now.

Brian1
 
  


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
Help me understand what this is saying. Distorted.Clarity Linux - Newbie 11 12-13-2005 08:31 PM
Help me Understand what I have to do... cjkeeme Linux - Networking 5 05-15-2005 03:05 PM
understand 1.4 mAineAc Linux - Software 6 01-06-2005 02:59 AM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 04:11 PM
i don't understand... humanveal Linux - Software 17 05-20-2003 04:24 AM

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

All times are GMT -5. The time now is 06:12 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