nat src and dst

HI everybody !

I have a little problem about nat :

I have to nat both source and destination address on ip packet from

192.168.254.0/24 or 10.1.1.0/24 to 136.156.103.0/24. There is only one interface (ethernet2/0) 192.168.254.0/24 10.1.1.0/24 | | | | ----------------------- ______|______ | router | ------------- ______________ | | nat box | .------------- | cisco |---| |136.156.12.1| .---136.156.0.0/16

-------------- ______|_______ | firewall | -------------- | 192.168.103.0/24

I want packet 192.168.254.0->136.156.103.0 beeing "nated" as

136.156.12.1->192.168.103.0. Same for source 10.1.1.0.

since i can't test this configuration, i would like you to confirm if it could work like this :

----cisco config--- ip nat inside source list 101 interface Ethernet2/0 overload ip nat outside source static network 192.168.103.0 136.156.103.0 /24 ! interface Loopback0 ip address 192.168.251.1 255.255.255.252 ip nat inside ! interface Ethernet2/0 ip address 136.156.12.1 255.255.0.0 no ip redirects no ip directed-broadcast ip nat outside ip policy route-map Nat ! ip route 192.168.103.0 255.255.255.0 136.156.4.6 ! access-list 101 permit ip 10.1.0.0 0.0.255.255 136.156.103.0 0.0.0.255 access-list 101 permit ip 192.168.254.0 0.0.0.255 136.156.103.0 _ 0.0.0.255 ! route-map Nat permit 10 match ip address 101 set ip next-hop 192.168.251.2

-------------------

thank you ! Laurent.

Reply to
Laurent
Loading thread data ...

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.