Alexander Klink wrote:
> Routing Table: IPv4
>   Destination Gateway Flags Ref Use Interface
> -------------------- -------------------- ----- ----- ---------- ---------
> 10.23.0.0 10.42.0.1 UG 1 0 vnic1
> 10.42.0.0 10.42.0.2 U 1 1 vnic1
> 127.0.0.1 127.0.0.1 UH 1 0 lo0
>  
> Routing Table: IPv6
>   Destination/Mask Gateway Flags Ref Use If
> --------------------------- --------------------------- ----- --- ------- 
> -----
> ::1 ::1 UH 1 0 lo0
> r...@anon:~# ping 10.42.0.1
> 10.42.0.1 is alive
> r...@anon:~# ping 10.23.0.33
> 10.23.0.33 is alive
> r...@anon:~# route add default 10.23.0.34
> add net default: gateway 10.23.0.34: Network is unreachable

The output side of a route (the next hop and/or interface) in general
cannot be another route.  It needs to be a subnet assigned to an
interface.  (There are some confusing exceptions to this in Solaris, but
it's a good general rule and matches the RFCs.  ;-})

If 10.42.0.1 is correct for your 10.23.0.0 route, then it should also be
correct for the default route you're trying to add.

-- 
James Carlson         42.703N 71.076W         <[email protected]>
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to