set default gateway on headless server (via ssh)

I'm trying to configure one of the two ethernet interfaces on a headless Xserve. I managed to give it an address and subnet mask with ifconfig, but I can't figure out how to give it a default gateway or dns server.

I tried using this:

sudo route add default gw xxx.xxx.xxx.xxx en0

but I got the error 'route: bad address: gw'

is there something wrong with my syntax, or does this just not work on OS X?

Posted on Jan 5, 2007 9:47 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

set default gateway on headless server (via ssh)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.