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

link|improve this question

73% accept rate
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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