[j-nsp] "nat outside"

O S oops98 at yahoo.com
Wed Apr 11 12:16:59 EDT 2007


Hi,

I'm looking for a nat configuration example in juniper M7i.  I follow the book setup the
service:

nat {
    pool OUTIP {
        address 10.1.2.3/32;
        port automatic;
    }
    rule goOUT {
        match-direction output;
        term 1 {
            from {
                destination-address {
                    10.10.10.10/32;
                }
            }
            then {
                translated {
                    source-pool OUTIP;
                    translation-type source dynamic;
                }
            }
        }
    }
}
How do I apply the nat service to a interface (I failed to find the example from the book)?  
The router is
Model: m7i
JUNOS Base OS boot [8.0R2.8]
JUNOS Base OS Software Suite [8.0R2.8]
JUNOS Kernel Software Suite [8.0R2.8]
JUNOS Packet Forwarding Engine Support (M7i/M10i) [8.0R2.8]
JUNOS Routing Software Suite [8.0R2.8]
JUNOS Online Documentation [8.0R2.8]

Basically, I would like all packets from interface fe-0/0/0.0 go to server 
10.10.10.10 be nat-ed.

=> [all other interfaces M7i  fe-0/0/0.0] --> 10.10.10.10 where fe-0/0/0.0 has IP 10.1.2.1/24

Thanks a lot,

OS




       
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 


More information about the juniper-nsp mailing list