I've started the basic of computer networks at college and i am in doubt about how to use the "route add". The professor gave us this scenario:

Machine 1 (M1) with the ip address 192.168.1.1/24 (/24 = netmask 255.255.255.0)
Machine 2 (M2) with two network cards:
-- first ip address: 192.168.1.12/24
-- second ip address: 192.168.3.1/24

Both machines are connected to each other with a network cable.

M1 can ping the first ip address on M2 (they're on the same network). However, the second ip address on M2 is in another network and i can't ping it from M1.

My professor said that i should use the first ip address in M2 as a gateway to the second. I think that i could use this command on M1, to access the 192.168.3 network:

route ADD 192.168.3.0 MASK 255.255.255.0 192.168.1.12

Is it the right thing to do?

link|improve this question
2  
Sounds like homework. – Dave M Feb 23 '11 at 20:42
1  
^ ha, it does. Too bad we won't be there for the test or his/her first day on the job. – Kyle Feb 23 '11 at 20:45
1  
I strongly recommend getting VirtualBox and a TechNet subscription, and trying it out yourself to see if it works. :-) – Iszi Rory or Isznti Feb 23 '11 at 20:52
@DaveM & @Kyle - This is part of my own study. @Kyle: i'm already employed, i've just asked for help in something i didn't understand. Thanks for nothing =D – Diego Doná Feb 26 '11 at 16:07
feedback

closed as off topic by KronoS, random Feb 24 '11 at 4:42

Questions on Super User are expected to generally relate to computer software or computer hardware, within the scope defined in the faq.

Browse other questions tagged or ask your own question.