Options

NAT Command

RS_MCPRS_MCP Member Posts: 352
Hi All,

Could someone please explain what the folllowing command means?

ip nat pool ovrld 217.78.124.88 217.78.124.88 prefix-length 24

Thanks for your help in advance.

:)

Comments

  • Options
    networker050184networker050184 Mod Posts: 11,962 Mod
    What part is confusing to you? It just creates a NAT pool with the name ovrld with those addresses with a /24 mask.
    An expert is a man who has made all the mistakes which can be made.
  • Options
    tha_dubtha_dub Member Posts: 262
    Okay I'll write it out.... (this is partially for my benefit too;))


    IP nat inside
    (Usually the private network interface with the addresses that will be NAT'd outside)

    IP nat outside
    (Applied usually to the internet connected interface. Inside addresses will use this interfaces IP as their return address)

    "ip nat pool ovrld 217.78.124.88 217.78.124.88 prefix-length 24"
    IP nat inside source list 1 pool ovrld "overload"

    This is a dynamic nat type setup however there is only one IP address in the pool. If you had a block of IP addresses you could choose to overload and use PAT or not. In this case if you did not overload you'd only get one outside connection at a time which would be pretty useless.

    This could also be written as follows.

    IP nat inside source list 1 interface serial 0/0 overload

    This assumes the IP address of S0/0 is 217.78.124.88 and that access list 1 permits the private addresses that are to be Nat'd.


    Hope that helps
Sign In or Register to comment.