Add Static Routes to new physical address

Hi,
I need help to add new route:

10.252.0.138, GW 10.252.0.129 to e1000g1
and
10.252.0.10, GW 10.252.0.1 to e1000g2

tnx

#cd /etc/rc2.d
#vi S99staticroute
Add the following line
route add 10.252.0.138 10.252.0.129
route add 10.252.0.10 10.252.0.1

reboot

Hi,
tnx, but how do you know which one is for interface e1000g1 and which one for e1000g2?

mehrdad

plumb the ip using ifconfig command for e1000g0 and g1.
then touch the /etc/hostname.e1000g0 and g1. put the IP/hostname of that interface inside the file

tThanks alot.

Mehrdad