Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titlebasic iBGP config
collapsetrue
#vMX1
set interfaces lo0.0 family inet address 11.11.11.11/32

set protocols ospf area 0.0.0.0 interface lo0.0 passive
set protocols ospf area 0.0.0.0 interface em1.0

set routing-options autonomous-system 65100
set protocols bgp group iBGP type internal
set protocols bgp group iBGP neighbor 12.12.12.12

set interfaces em2.0 family inet address 10.12.0.1/24
set interfaces em3.0 family inet address 10.13.0.1/24
set routing-options static route 0/0 next-hop 10.12.0.2
set routing-options static route 0/0 next-hop 10.13.0.2


set policy-options policy-statement injectpolicy1 term injectterm1 from protocol static
set policy-options policy-statement injectpolicy1 term injectterm1 then accept
set protocols bgp export injectpolicy1

#from OSPF
#set policy-options policy-statement injectpolicy1 term injectterm1 from protocol ospf
#set policy-options policy-statement injectpolicy1 term injectterm1 from area 0.0.0.



#vMX2
set interfaces lo0.0 family inet address 12.12.12.12/32

set protocols ospf area 0.0.0.0 interface lo0.0 passive
set protocols ospf area 0.0.0.0 interface em1.0

set routing-options autonomous-system 65100
set protocols bgp group iBGP type internal
set protocols bgp group iBGP neighbor 11111.11.11.11


set interfaces em02.0 family inet address 12.11.10.1/24
set interfaces em03.0 family inet address 12.12.10.1/24
set policy-options policy-statement injectpolicy1 term injectterm1 from protocol direct
set policy-options policy-statement injectpolicy1 term injectterm1 then accept
set protocols bgp group iBGP export injectpolicy1

...