View Single Post

   
  #3 (permalink)  
Old 01-16-2008, 10:17 AM
Johan Andersson
 
Posts: n/a
Default Re: Static route for a specific IP adress

bozothedeathmachine skrev:
> 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.
>


Im confused... I'm no network guru but I though a 26 bit netmask would
give you four networks...

Network Host-Range Broadcast
..00 172.30.10.0 001-062 063
..01 172.30.10.64 065-126 127
..10 172.30.10.128 129-190 191
..11 172.30.10.192 193-254 255

and that would put both the .85 and the .100 address inside the .64
network which would mean using that nets gateway out. Your .64 net
has two default gateways defined in the list...

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

both going out on the same physical interface, ce2
you were seing it sending packets on ce0?

you also got two default routes in your list... so which is it to use on
unknown ip's?, since you see packages coming on ce0 I assume the ce0
default is used...

Very strange setup to me, what are you trying to accomplish?

/Johan A




Reply With Quote