This example shows you how to configure the MAP-E Border
Relay (BR) solution using a next hop-based style of configuration.
- Create service interface on the device with 100g bandwidth
support.
[edit chassis]
user@host# set fpc 0 pic 0 inline-services bandwidth 100g
- Configure the dual stack service interface unit 0.
[edit interfaces]
user@host# set si-0/0/0 unit 0 family inet
user@host# set si-0/0/0 unit 0 family inet6
- Configure service interface inside the dual stack domain.
[edit interfaces]
user@host# set si-0/0/0 unit 1 family inet
user@host# set si-0/0/0 unit 1 family inet family inet6
user@host# set si-0/0/0 unit 1 service-domain inside
- Configure service interface outside the dual stack domain.
[edit interfaces]
user@host# set si-0/0/0 unit 2 family inet
user@host# set si-0/0/0 unit 2 family inet family inet6
user@host# set si-0/0/0 unit 2 service-domain outside
- Configure the IPv4-facing interface on BR.
[edit interfaces]
user@host# set ge-0/2/7 unit 0 family inet address 10.10.10.1/16
- Configure the CPE-facing interface on BR.
[edit interfaces]
user@host# set ge-0/2/8 unit 0 family inet6 address 3abc::1/16
- Configure the MAP-E softwire concentrator and associated
parameters.
[edit services softwire softwire-concentrator]
user@host# set map-e swire01-rd1 version03
user@host# set map-e swire01-rd1 softwire-address 2001:db8:ffff::1
user@host# set map-e swire01-rd1 ipv4-prefix 10.10.0.0/16 mape-prefix 3040::0/16
user@host# set map-e swire01-rd1 ea-bits-len 16
user@host# set map-e swire01-rd1 psid-offset 6
user@host# set map-e swire01-rd1 psid-length 8
user@host# set map-e swire01-rd1
user@host# set mtu-ipv6 9192
user@host# set map-e swire01-rd1 v4-reassembly
Note: When configuring the MAP-E softwire concentrator, take
the following into consideration:
Possible values for ea-bits-len
is 0 through
48.
Possible values for v4-prefix-len
is 0 through
32.
If v4-prefix-len
is 0 then ea-bits-len
must be non-zero, and vice versa.
It is possible that ea-bits-len
is equal to
0, but psid-len
is non-zero.
If the sum of v4-prefix-len
and ea-bits-len
is less than 32, then the psid-len
must be equal to the
difference between 32 and the sum total of v4-prefix-len
and ea-bits-len
.
The MAP-E IPv4 and IPv6 prefix must be unique per softwire
concentrator.
MAP-E PSID offset has a default value of 4, and MAP-E
tunnel maximum transmission unit (MTU) has a default value of 9192.
- Configure a softwire rule to specify the direction of
traffic to be tunneled and the MAP-E softwire concentrator to be used.
[edit services softwire]
user@host# set rule swire01-r1 match-direction input term t1 then map-e swire01-rd1
- Configure the service set for MAP-E.
[edit services service-set]
user@host# set mape-nh-service-set softwire-rules swire01-r1
user@host# set mape-nh-service-set next-hop-service inside-service-interface si-0/0/0.1 outside-service-interface si-0/0/0.2
For example:
chassis {
fpc 4 {
pic 0 {
inline-services {
bandwidth 100g;
}
}
}
fpc 5 {
pic 0 {
inline-services {
bandwidth 100g;
}
}
}
}
services {
service-set sset1 {
softwire-rules sw-rule1;
next-hop-service {
inside-service-interface si-4/0/0.1;
outside-service-interface si-4/0/0.2;
}
}
service-set sset2 {
softwire-rules sw-rule1;
next-hop-service {
inside-service-interface si-5/0/0.1;
outside-service-interface si-5/0/0.2;
}
}
softwire {
softwire-concentrator {
map-e mape-domain-1 {
softwire-address 2001:db8:ffff::1;
ipv4-prefix 192.0.2.0/24;
mape-prefix 2001:db8:1234:ab00::/56;
ea-bits-len 16;
psid-offset 4;
psid-length 8;
mtu-v6 9192;
version-03;
}
}
rule sw-rule1 {
match-direction input;
term t1 {
then {
map-e mape-domain-1;
}
}
}
}
}
interfaces {
xe-0/1/1 {
unit 0 {
family inet6 {
address 2001:db8::1/32 {
ndp 2001:db8:6434:0:00c0:0002:6400:3400 mac 00:11:22:33:44:55;
}
}
}
}
xe-0/1/2 {
unit 0 {
family inet {
address 100.1.1.1/24 {
arp 100.1.1.2 mac 00:11:22:33:44:55;
}
}
}
}
si-4/0/0 {
unit 1 {
family inet;
family inet6;
service-domain inside;
}
unit 2 {
family inet;
family inet6;
service-domain outside;
}
}
si-5/0/0 {
unit 1 {
family inet6;
service-domain inside;
}
unit 2 {
family inet;
family inet6;
service-domain outside;
}
}
}