OSPFV3 [IPV6], MPLS Example.

Example OSPFv3 MPLS

Router 1

/system identity set name=R1

/ip dhcp-client
remove 0
add interface=ether3 disabled=no

/ip dns
set allow-remote-requests=yes cache-size=8048KiB servers=1.1.1.1,1.0.0.1,8.8.8.8

/ip firewall nat
add chain=srcnat action=masquerade out-interface=ether3

/interface bridge
add name=loopback

/ip address
add address=10.0.0.1 interface=loopback
add address=10.10.1.1/30 interface=ether1
add address=10.10.1.5/30 interface=ether2

/routing ospf
instance set default router-id=10.0.0.1 distribute-default=if-installed-as-type-1 redistribute-connected=as-type-1

/routing ospf
interface add interface=ether1 network-type=point-to-point
interface add interface=ether2 network-type=point-to-point

/routing ospf
network add network=10.10.1.4/30 area=backbone
network add network=10.10.1.0/30 area=backbone

Ospfv3

/ipv6 address
add address=fc00::1/128 interface=loopback eui-64=no advertise=no
add address=fc00::2:1/124 interface=ether1 eui-64=no advertise=no
add address=fc00::2:11/124 interface=ether2 eui-64=no advertise=no

/routing ospf-v3
interface add interface=ether1 area=backbone
interface add interface=ether2 area=backbone

instance set default router-id=10.0.0.1 redistribute-connected=as-type-1

MPLS

/mpls ldp
set enabled=yes lsr-id=10.0.0.1 transport-address=10.0.0.1

/mpls ldp interface
add interface=ether1
add interface=ether2

/mpls
set propagate-ttl=no


Router 2

/system identity set name=R2
/ip dhcp-client remove 0
/interface bridge
add name=loopback

/ip address
add address=10.0.0.2 interface=loopback
add address=10.10.1.6/30 interface=ether1
add address=10.10.1.9/30 interface=ether2

/routing ospf
instance set default router-id=10.0.0.2 redistribute-connected=as-type-1

interface add interface=ether1 network-type=point-to-point
interface add interface=ether2 network-type=point-to-point

network add network=10.10.1.4/30 area=backbone
network add network=10.10.1.8/30 area=backbone

Ospfv3

/ipv6 address
add address=fc00::2/128 interface=loopback eui-64=no advertise=no
add address=fc00::2:12/124 interface=ether1 eui-64=no advertise=no
add address=fc00::2:21/124 interface=ether2 eui-64=no advertise=no

/routing ospf-v3
interface add interface=ether1 area=backbone
interface add interface=ether2 area=backbone

instance set default router-id=10.0.0.2 redistribute-connected=as-type-1

MPLS

/mpls ldp
set enabled=yes lsr-id=10.0.0.2 transport-address=10.0.0.2

/mpls ldp interface
add interface=ether1
add interface=ether2

/mpls
set propagate-ttl=no


Router 3

/system identity set name=R3
/ip dhcp-client remove 0
/interface bridge
add name=loopback

/ip address
add address=10.0.0.3 interface=loopback
add address=10.10.1.2/30 interface=ether1
add address=10.10.1.10/30 interface=ether2

/routing ospf
instance set default router-id=10.0.0.3 redistribute-connected=as-type-1

/routing ospf
interface add interface=ether1 network-type=point-to-point
interface add interface=ether2 network-type=point-to-point

/routing ospf
network add network=10.10.1.0/30 area=backbone
network add network=10.10.1.8/30 area=backbone

Ospfv3

/ipv6 address
add address=fc00::3/128 interface=loopback eui-64=no advertise=no
add address=fc00::2:2/124 interface=ether1 eui-64=no advertise=no
add address=fc00::2:22/124 interface=ether2 eui-64=no advertise=no

/routing ospf-v3
interface add interface=ether1 area=backbone
interface add interface=ether2 area=backbone

instance set default router-id=10.0.0.3 redistribute-connected=as-type-1

MPLS

/mpls ldp
set enabled=yes lsr-id=10.0.0.3 transport-address=10.0.0.3

/mpls ldp interface
add interface=ether1
add interface=ether2

/mpls
set propagate-ttl=no

© 2020 Juvenal Yescas All Rights Reserved.
Theme by hiero