Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a computer with CENTOS installed as operating system with 2 NIC. One NIC is connected to the internet while the other is connected to a switch that is connected to 3 other computers.

These are the IP address for each computer:

Comp1: (DHCP) Comp2: (DHCP) Comp3: (STATIC)

My question is how I can access Comp1 in Comp3?

I've tried to search about routing in centos but I was unable to find a working tutorial. Please guys I really need your help to solve this problem.

share|improve this question

migrated from Aug 21 '13 at 9:57

This question came from our site for professional and enthusiast programmers.

Why is there two different networks ( and I guess) on your Switch ? I would say that it is impossible (not really but at least not advised to try to) to access comp1 from comp3 or the opposite in this configuration.

Instead you should configure your DHCP to use addresses inside the same network as Comp3 for Comp1 and Comp2. You NIC on the switch side should also be on this network. On a same switch there should be only one IP network (simplified but a bit true) because the switch doesn't understand how to route IP packets he works on the MAC layer.

Anyway I think you are new to networks and therefore you should read a good introduction to networks book. I would advise Computer Networking: A Top-Down Approach (6th Edition) [James F. Kurose et al.] but that's just my opinion.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.