Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

NAT a whole subnet to secondary address?

I've got an 1811 router running 15.4 IOS and a cable modem with 5 static IP's attached to Fa0. I would like to dedicate one of those IP's to a dedicated internal subnet (10.0.30.0/24) but I am not sure how to accomplish this?

What would be the best method to accomplish this? Unsure of where to begin.....

Thanks for any insight.

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: NAT a whole subnet to secondary address?

Stephen,

If you want 10.0.30.0/24 to go out as 192.168.1.5/24, you could do something like:

int fa0/0

ip address 192.168.1.1 255.255.255.0

ip nat out

int fa0/1

ip address 10.0.30.1 255.255.255.0

ip nat insid

access-list 101 permit ip 10.0.30.0 0.0.0.255 any

ip nat pool Outbound 192.168.1.5 192.168.1.5 prefix 24

ip nat inside source list 101 pool Outbound overload

HTH,

John

HTH, John *** Please rate all useful posts ***
3 REPLIES

Re: NAT a whole subnet to secondary address?

Stephen,

If you want 10.0.30.0/24 to go out as 192.168.1.5/24, you could do something like:

int fa0/0

ip address 192.168.1.1 255.255.255.0

ip nat out

int fa0/1

ip address 10.0.30.1 255.255.255.0

ip nat insid

access-list 101 permit ip 10.0.30.0 0.0.0.255 any

ip nat pool Outbound 192.168.1.5 192.168.1.5 prefix 24

ip nat inside source list 101 pool Outbound overload

HTH,

John

HTH, John *** Please rate all useful posts ***
Community Member

Re: NAT a whole subnet to secondary address?

This works perfectly! Thanks for the response

Re: NAT a whole subnet to secondary address?

Glad to hear it Stephen!

HTH, John *** Please rate all useful posts ***
794
Views
0
Helpful
3
Replies
CreatePlease to create content