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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

standard NAT acl for n given hosts only

how to change a standard acl from NATing the whole following subnet:

ip nat inside source list 1 interface FastEthernet0/0 overload

access-list 1 permit 10.120.50.0 0.0.0.255

... to some specific hosts on it ... say 10.120.50.1, .3, .5, and .7 only ?

ip nat inside source list 1 interface FastEthernet0/0 overload

access-list 1 permit 10.120.50.1 0.0.0.255

access-list 1 permit 10.120.50.3 0.0.0.255

access-list 1 permit 10.120.50.5 0.0.0.255

access-list 1 permit 10.120.50.7 0.0.0.255

... are the second acl netmask the right ones ?

1841 IOS 12.4(23)

2 ACCEPTED SOLUTIONS

Accepted Solutions
Hall of Fame Super Bronze

Re: standard NAT acl for n given hosts only

Should be

ip nat inside source list 1 interface FastEthernet0/0 overload

access-list 1 permit host 10.120.50.1

access-list 1 permit host 10.120.50.3

access-list 1 permit host 10.120.50.5

access-list 1 permit host 10.120.50.7

HTH,

__

Edison.

Re: standard NAT acl for n given hosts only

If you're doing just hosts, then you would do:

access-list 1 permit host 10.120.50.1

access-list 1 permit host 10.120.50.3

etc....

HTH,

John

HTH, John *** Please rate all useful posts ***
2 REPLIES
Hall of Fame Super Bronze

Re: standard NAT acl for n given hosts only

Should be

ip nat inside source list 1 interface FastEthernet0/0 overload

access-list 1 permit host 10.120.50.1

access-list 1 permit host 10.120.50.3

access-list 1 permit host 10.120.50.5

access-list 1 permit host 10.120.50.7

HTH,

__

Edison.

Re: standard NAT acl for n given hosts only

If you're doing just hosts, then you would do:

access-list 1 permit host 10.120.50.1

access-list 1 permit host 10.120.50.3

etc....

HTH,

John

HTH, John *** Please rate all useful posts ***
119
Views
0
Helpful
2
Replies