Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 1 down vote accepted

route add default gw 1.2.3.4 eth0

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

share|improve this answer
add comment

Your Answer

 
discard

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.