LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Linux CentOS 5.4 small three computer networking help (https://www.linuxquestions.org/questions/linux-networking-3/linux-centos-5-4-small-three-computer-networking-help-783290/)

linux_newb 01-19-2010 02:35 PM

Linux CentOS 5.4 small three computer networking help
 
Hi guys,

What I want to do is have two different networks connected with my switch. I want one computer to be the server and run dhcp with the ip address 10.3.2.1 and I want the other client machine to be 10.1.X.X. I want the X.X to be assigned automatically from DHCP running on the server. The subnet mask I believe should 255.255.255.0 for both networks. How can I get these two different networks to talk to each other when they are on completely different networks??

acid_kewpie 01-19-2010 02:54 PM

Without a router, you can't. Unless they are on the same subnet, which they will have to be in order to get DHCP working. your thread title mentions three machines. your content mentions two... maybe you're expecting this third machine to be involved?

linux_newb 01-19-2010 03:10 PM

Quote:

Originally Posted by acid_kewpie (Post 3832569)
Without a router, you can't. Unless they are on the same subnet, which they will have to be in order to get DHCP working. your thread title mentions three machines. your content mentions two... maybe you're expecting this third machine to be involved?

Thanks for your quick response. Well the third machine will most likely have the address 10.3.2.1 which i want to be able to talk to my server 10.3.2.1 but I dont want 10.3.2.1 to be able to talk to my the other client 10.1.X.X. I want this client to be able to see the server only? I'm so confused as even where to begin?

Hi guys,

What I want to do is have two different networks connected with my switch. I want one computer to be the server and run dhcp with the ip address 10.3.2.1 and I want the other client machine to be 10.1.X.X. I want the X.X to be assigned automatically from DHCP running on the server. The subnet mask I believe should 255.255.255.0 for both networks. How can I get these two different networks to talk to each other when they are on completely different networks??

acid_kewpie 01-19-2010 04:08 PM

well i'd suggest you're confused as, again, this makes no sense at all. in order to move between different IP subnets you need a Layer 3 device, e.g. a router, firewall, L3 switch or a forwarding server. If you take a server and give it two nics then it can be on both networks and off you go. Additionally, putting two different subnets in the same Layer 2 space (i.e. both on a dumb switch) is *really* *really* bad form too. very messy and against a trillion standards.

linux_newb 01-19-2010 05:25 PM

Quote:

Originally Posted by acid_kewpie (Post 3832646)
well i'd suggest you're confused as, again, this makes no sense at all. in order to move between different IP subnets you need a Layer 3 device, e.g. a router, firewall, L3 switch or a forwarding server. If you take a server and give it two nics then it can be on both networks and off you go. Additionally, putting two different subnets in the same Layer 2 space (i.e. both on a dumb switch) is *really* *really* bad form too. very messy and against a trillion standards.

No there has to be a way to do it. If you set up different subnet masks I'm sure its possible. Its not really a different network but just so certain nodes can see each other and certain ones can't.

acid_kewpie 01-20-2010 01:47 AM

OK, well you go invent an entirely new set of networking protocols and standards. You have fun with that, let me know how it goes when you realise that actaully learning and following exisiting standards is a much better idea.

linux_newb 01-20-2010 10:16 AM

[QUOTE=acid_kewpie;3833128]OK, well you go invent an entirely new set of networking protocols and standards. You have fun with that, let me know how it goes when you realise that actaully learning and following exisiting standards is a much better idea.[/QUOT

I guess I just invented something new because using a dummy switch I'm able to use different subnet masks to allow my 10.2.1.1 network talk to my 10.1.4.6 network and I also have a 10.4.X.X network that can only talk to my server and not to my 10.1.4.6 network.

acid_kewpie 01-20-2010 02:34 PM

"different subnets" presumably means breaking the standards that are there for very good reasons. If you want to describe in more detail what you've done, I can try and explain why it was such a bad idea ;-)


All times are GMT -5. The time now is 06:23 PM.