View Single Post

   
  #1 (permalink)  
Old 01-16-2008, 11:17 AM
bozothedeathmachine
 
Posts: n/a
Default Static route for a specific IP adress

Hi, all I'm having an issue creating a route for a specific IP
address. I need all info coming from a specific IP (172.30.10.85/26)
to use 172.30.10.100 as it's gateway, but everything else on that
segment (172.30.10.64/26) to use the standard gateway at
172.30.10.65. To make it all the more interesting 172.30.10.85 is a
virtual IP addressed assigned to ce2:1. I have tried just adding a
route with destination 172.30.10.100 and gateway 172.30.10.85, but it
was attempting to send packets out of ce0 and not ce2. Is there a way
to manually configure the interface to be used also? I'm pretty
confused here. The network configuration stats are below.

Thanks,
Ben..

utsocs1 root#netstat -rn

Routing Table:
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.10.10.40 10.10.10.40 UGH 1 0
10.10.11.40 10.10.11.40 UGH 1 0
10.10.11.3 10.10.11.3 UGH 1 9587
10.10.10.3 10.10.10.3 UGH 1 11119
172.16.193.2 172.16.194.5 UGH 1 4985
0.0.0.0 172.30.10.85 UG 1 0
172.16.194.4 172.16.194.6 U 1 3242 ce8:2
10.10.10.0 10.10.10.2 U 1 11933 ce1
10.10.10.0 10.10.10.40 U 1 0 ce1:1
10.10.11.0 10.10.11.2 U 1 9589 ce5
10.10.11.0 10.10.11.40 U 1 0 ce5:1
172.30.10.0 172.30.10.17 U 1 7110 ce0
172.30.10.64 172.30.10.80 U 1 6662 ce2
172.30.10.64 172.30.10.85 U 1 0 ce2:1
172.16.0.128 172.16.0.129 U 1 10612 ce4
172.16.1.0 172.16.1.1 U 1 10600 ce8
172.16.193.0 127.0.0.1 U 1 0 lo0
default 172.30.10.65 UG 1 12370
default 172.30.10.1 UG 1 12341
127.0.0.1 127.0.0.1 UH 244206164 lo0
utsocs1 root#ifconfig -a
lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
inet 127.0.0.1 netmask ff000000
lo0:1: flags=8849<UP,LOOPBACK,RUNNING,MULTICAST,PRIVATE> mtu 8232
inet 172.16.193.1 netmask ffffffff
ce0: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.30.10.17 netmask ffffffc0 broadcast 172.30.10.63
ether 0:3:ba:dc:ec:47
ce1: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.10.2 netmask ffffffc0 broadcast 10.10.10.63
ether 0:3:ba:dc:ec:47
ce1:1: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.10.40 netmask ffffffc0 broadcast 10.10.10.63
ce2: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.30.10.80 netmask ffffffc0 broadcast 172.30.10.127
ether 0:3:ba:dc:ec:47
ce2:1: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.30.10.85 netmask ffffffc0 broadcast 172.30.10.127
ce5: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.11.2 netmask ffffffc0 broadcast 10.10.11.63
ether 0:3:ba:dc:ec:47
ce5:1: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.11.40 netmask ffffffc0 broadcast 10.10.11.63
ce9: flags=842<BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.30.10.18 netmask ffff0000 broadcast 172.30.255.255
ether 0:3:ba:dc:ec:47
ce8: flags=8843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE> mtu 1500
inet 172.16.1.1 netmask ffffff80 broadcast 172.16.1.127
ether 0:3:ba:dc:ec:47
ce8:2: flags=8843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE> mtu 1500
inet 172.16.194.6 netmask fffffffc broadcast 172.16.194.7
ce4: flags=8843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE> mtu 1500
inet 172.16.0.129 netmask ffffff80 broadcast 172.16.0.255
ether 0:3:ba:dc:ec:47

Reply With Quote