Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Example: Configuring Static Source Translation in an IPv4 Network

    The following configuration sets up one-to-one mapping between a private subnet and a public subnet.

    [edit]
    user@host# show services 
    service-set s1 {
        nat-rules rule-basic-nat44;
        interface-service {
            service-interface ms-1/2/0;
        }
    }
    nat {
        pool src_pool {
            address 10.10.10.2/32;
        }
        rule rule-basic-nat44 {
            match-direction input;
            term t1 {
                from {
                    source-address {
                        3.1.1.2/32;
                    }
                }
                then {
                    translated {
                        source-pool src_pool;
                        translation-type {
                            basic-nat44;
                        }
                    }
                }
            }
        }
    }
    adaptive-services-pics {
        traceoptions {
            flag all;
        }
    }

    Published: 2012-06-27