Created
April 28, 2026 15:22
-
-
Save tonusoo/83569fffaf3898cbc6a7361fa3013bd4 to your computer and use it in GitHub Desktop.
Port Address Translation with MS-DPC || j-nsp mailing list thread: https://puck.nether.net/pipermail/juniper-nsp/2026-April/039361.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@lab-mx960> show configuration services | |
| service-set pat-service-set { | |
| nat-rules rule-napt-44; | |
| interface-service { | |
| /* first PIC of MS-DPC in slot 9; Multiservices MIC should use "ms" interface instead of "sp" interface */ | |
| service-interface sp-9/0/0; | |
| } | |
| } | |
| nat { | |
| pool napt-pool { | |
| address 10.1.1.1/32; | |
| port { | |
| automatic { | |
| random-allocation; | |
| } | |
| } | |
| } | |
| rule rule-napt-44 { | |
| match-direction output; | |
| /* such simple conf will also punt the L3VPN BGP session traffic to multiservices line-card */ | |
| term match-all { | |
| then { | |
| translated { | |
| source-pool napt-pool; | |
| translation-type { | |
| napt-44; | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| root@lab-mx960> | |
| root@lab-mx960> show configuration interfaces | |
| ge-2/1/6 { | |
| description L3VPN; | |
| unit 0 { | |
| family inet { | |
| service { | |
| input { | |
| service-set pat-service-set; | |
| } | |
| output { | |
| service-set pat-service-set; | |
| } | |
| } | |
| address 10.1.1.1/31; | |
| } | |
| } | |
| } | |
| ge-2/1/8 { | |
| description LAN; | |
| unit 0 { | |
| family inet { | |
| address 10.4.4.1/24; | |
| } | |
| } | |
| } | |
| sp-9/0/0 { | |
| unit 0 { | |
| family inet; | |
| } | |
| } | |
| fxp0 { | |
| unit 0 { | |
| family inet { | |
| dhcp; | |
| } | |
| } | |
| } | |
| root@lab-mx960> |
tonusoo
commented
Apr 28, 2026
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment