Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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'm in terminal on RedHat 5 and I need to configure one of the two eth interface with different IP, GATEWAY and SUBNET.
I know ifconfig and route add but I'm not sure what I have to do for configureing the gateway on that particulary eth and, I think, only for that! Thanks

share|improve this question
up vote 1 down vote accepted

route add default gw eth0

Of course you need to replace with the actual gateway. This will add the route into the system routing table.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.