changing both source and destination with nat

Discussion in 'Cisco' started by cwarden, May 11, 2005.

  1. cwarden

    cwarden Guest

    How can I change both the source and destination addresses of incoming
    packets?

    Assuming the following configuration:

    interface FastEthernet0/0
    description Internet
    ip address x.x.x.1 255.255.255.0
    ip nat outside
    !
    interface FastEthernet0/1
    description Internal Network
    ip address 172.1.1.1 255.255.255.248
    ip nat inside
    !
    ip route 172.2.1.0 255.255.255.0 172.1.1.2

    Incoming packets to x.x.x.2 need to have the destination changed to
    172.2.1.2, and the source set to 172.1.1.1.

    I can change the destination address using:
    ip nat inside source static 172.2.1.2 x.x.x.2
    but how do I also change the source address?

    Any suggestions would be appreciated.
    Thanks,
    Christian
     
    cwarden, May 11, 2005
    #1
    1. Advertisements

  2. Phillip Remaker, May 11, 2005
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.