cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
342
Views
0
Helpful
3
Replies

is it possible to nat only the first digit of an ip adresse ?

kayih
Level 1
Level 1

I would like that all packet that have destination adresse "15.x.x.x " be nated in "10.x.x.x ". does cisco ios support this option ? I don't want to use static nat because I have to many adress to translate. my goal is to nat only the first digit of the destination ip adress. Can I do this with cisco router 1721 ?

thank a lot in advance

3 Replies 3

alexis.fidalgo
Level 1
Level 1

i dont think so.

at least you use the /8 source with the /8 pool.

vkhanduri
Level 1
Level 1

Try this

ip nat pool TEST 10.x.x.1 10.x.x.x netmask 255.255.255.0

ip nat inside source list 101 pool test

access-list 101 permit ip any 15.0.0.0 0.255.255.255

Apply following in the right interfaces

ip nat inside

ip nat outside

Vikas

sconnolly
Level 1
Level 1

You can do this with a Pix, not sure about a 1721. To do it on a Pix use the following command:

static (inside, outside) 10.0.0.0 15.0.0.0 netmask 255.0.0.0