changing both source and destination with nat

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

  1. 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
     
    , May 11, 2005
    #1
    1. Advertising

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

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Keith B.
    Replies:
    4
    Views:
    640
    shope
    Jan 30, 2004
  2. Dave
    Replies:
    0
    Views:
    1,601
  3. 1388-2/HB
    Replies:
    0
    Views:
    776
    1388-2/HB
    Feb 22, 2007
  4. 1388-2/HB

    Source and destination NAT

    1388-2/HB, Jun 26, 2007, in forum: Cisco
    Replies:
    4
    Views:
    1,025
    usenet
    Jul 4, 2007
  5. Laurent
    Replies:
    2
    Views:
    2,235
    vishal31369
    Jun 24, 2011
Loading...

Share This Page