|
The man page has quite a few examples which should help you out.
example% route add default hostname -interface
hostname is the name or IP address associated with the net-
work interface all packets should be sent over. On a host
with a single network interface, hostname is normally the
same as the nodename returned by uname -n (see uname(1)).
Adding a net route:
/usr/sbin/route add -net 10.140 172.16.186.1 1
Adding a host route:
/usr/sbin/route add -host 152.148.50.34 172.16.1.9 0
For your situation, you want to bind to a certain interface.
route add xxx.xxx.xxx.xxx yourhostname -interface
You don't put -hme0 or -qfe0 on this - you tell it the hostname of the interface or the IP of the interface (in case you did not make a secondary hostname for the interface)
So if xxx.xxx.xxx.xxx is 10.140.0.0 and yourhostname is myhost-qfe0,
# route add 10.140.0.0 myhost-qfe0 -interface
|