cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
965
Views
0
Helpful
1
Replies

Cisco : How to route a single server IP which is already in a routed nerwork

annahernandez99
Level 1
Level 1

Just a simple question, it is possible to route a single IP to the default route when this IP is in a range that is already routed.

I have to route this whole range to a certain IP : 10.0.0.0/8 This range goes from 10.0.0.1 to 10.255.255.254

The fact is that we are connected trough a VPN to a server with the IP 10.173.90.171.

Can I make my switch route every IP on the range 10.0.0.0/8 except the single IP 10.173.90.171 and make it go to the default route ?

Many Thanks

Homeheavenz

1 Reply 1

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Take a look at Policy Based Routing. Assuming Eth1/1 was the ingress interface for 10.0.0.0/8 traffic it could look like:

 

!
int Eth1/1
  ip policy route-map FOO
!
access-list 10 permit ip host 10.173.90.171 any
!
route-map FOO permit 10
 match ip address 10
 set ip next-hop <your_default_route>
!

cheers,

Seb.