Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NAT on 1 ethernet

Status
Not open for further replies.

UNIX72

IS-IT--Management
Sep 8, 2000
403
US
I need to provide nat for 2 Class addresses that our hard coded on the board to a 10.x.x.x. The problem is i only have 1 ethernet port on my 2611 router. Is it possible to provide nat between a secondary interface with a primary interface on the same ethernet port? I want to created a secondary subnet which will be 192.x.x.x and then do nat. Is this possible? Can anyone post a sample config, thanks.
 
Yes NAT will work with secondary addresses on the inside and there should not be anything complex to configure here as you will configure the NAT access-list to allow just the primary or secondary or both to pass through the NAT.

Example:

ip nat inside source list 1 interface serial0 overload

interface serial0
ip address XXX.XXX.XXX.XXX SSS.SSS.SSS.SSS
ip nat outisde

interface ethernet0
ip address AAA.AAA.AAA.AAA SSS.SSS.SSS.SSS
ip address AAA.AAA.AAA.AAA SSS.SSS.SSS.SSS secondary
ip nat inside

access-list 1 permit AAA.AAA.AAA.AAA SSS.SSS.SSS.SSS (this is the newtork address range that you would to be able to pass through NAT)


Hope this helps.

Cbum




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top