Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/etc/tcp + Default gateway

Status
Not open for further replies.
Joined
Apr 24, 2003
Messages
164
Location
CA
Is it possible to add my default gateway on an Open Server5 box to the /etc/tcp file .... If so would anyone mind showing me the correct syntax (As I will be editing the file remotely ... 4 Hour drive away!)

#
# Interface configuration -- edit as appropriate.
#
ifconfig lo0 127.0.0.1 perf 57344 57344 1
ifconfig -p net1 192.168.2.251 netmask 255.255.255.0 broadcast
192.168.2.255 perf 24576 24576 1
# ifconfig en0 `uname -n` $NETMASK $BROADCAST
/etc/route add 224.0.0.0 192.168.2.251 0 > /dev/null 2>&1
fi

if [ "$do_basic" = 1 ]; then



Any help is greatly appreciated!


--Rory--
 
No don't add it to /etc/tcp as this file gets rebuilt.
Add a file in /etc/rc2.d called S99myroutes and in it have the line:

route add default {gatewayip}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top