define a gateway address

Mar 17, 2005 1 Replies

Hi, I want to ping another network segment. How I define a gateway address for the eth0? Thank you.


You need to add an entry to the routing table. Mostly you want to add the default route (0.0.0.0) to the gateway:

$ route add default gw x.x.x.x

Paul

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required