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

    Example: Configuring the Translation Type Between IPv6 and IPv4 Networks

    The following example configures the translation type as basic-nat-pt.

    [edit]
    user@host# show services
    service-set ss_dns {
        nat-rules rule-basic-nat-pt;
        interface-service {
            service-interface sp-1/2/0;
        }
    }
    nat {
        pool p1 {
            address 10.10.10.2/32;
        }
        pool src_pool0 {
            address 20.1.1.1/32;
        }
        pool dst_pool0 {
            address 50.1.1.2/32;
        }
        rule rule-basic-nat-pt {
            match-direction input;
            term t1 {
                from {
                    source-address {
                        2000::2/128;
                    }
                    destination-address {
                        4000::2/128;
                    }
                    applications dns_alg;
                }
                then {
                    translated {
                        source-pool src_pool0;
                        destination-pool dst_pool0;
                        dns-alg-prefix 10:10:10::0/96;
                        translation-type {
                            basic-nat-pt;
                        }
                    }
                }
            }
            term t2 {
                from {
                    source-address {
                        2000::2/128;
                    }
                    destination-address {
                        10:10:10::0/96;
                    }
                }
                then {
                    translated {
                        source-prefix 19.19.19.1/32;
                        translation-type {
                            basic-nat-pt;
                        }
                    }
                }
            }                               
        }                                   
    }                                       
    adaptive-services-pics {                
        traceoptions {                      
            flag all;                       
        }                                   
    }

    Published: 2012-06-27