Juniper 18 Настройка OSPF. NSSA, PtP, passive interface, EX1.

preview_player
Показать описание
Настройка OSPF с зоной NSSA, линки Ptp, passive интерфейсы, редистрибьюция и внешние маршруты типа EX1, генерация маршрута по умолчанию.

///////////////SW3_1

set routing-options router-id 10.10.6.1
set protocols ospf area 0.0.0.109 nssa no-summaries
set protocols ospf area 0.0.0.109 interface vlan.109
set protocols ospf area 0.0.0.109 interface vlan.101 passive
set protocols ospf area 0.0.0.109 interface vlan.102 passive
set protocols ospf area 0.0.0.109 interface vlan.103 passive
set protocols ospf area 0.0.0.109 interface ge-0/0/10.0 interface-type p2p
set protocols ospf export POL_OSPF

set policy-options policy-statement POL_OSPF term 1 from protocol direct
set policy-options policy-statement POL_OSPF term 1 from route-filter 10.10.6.1/32 exact
set policy-options policy-statement POL_OSPF term 1 then metric 15
set policy-options policy-statement POL_OSPF term 1 then external type 1
set policy-options policy-statement POL_OSPF term 1 then accept

delete routing-options static route 0.0.0.0/0 next-hop 10.10.7.2

set interfaces lo0 unit 0 family inet address 10.10.6.1/32

//////////////SW_3_2
set routing-options router-id 10.10.6.2
set protocols ospf area 0.0.0.109 nssa no-summaries
set protocols ospf area 0.0.0.109 interface vlan.109
set protocols ospf area 0.0.0.109 interface vlan.101 passive
set protocols ospf area 0.0.0.109 interface vlan.102 passive
set protocols ospf area 0.0.0.109 interface vlan.103 passive
set protocols ospf area 0.0.0.109 interface ge-0/0/10.0 interface-type p2p
set protocols ospf export POL_OSPF

set interfaces lo0 unit 0 family inet address 10.10.6.2/32

delete routing-options static route 0.0.0.0/0 next-hop 10.10.7.6

set policy-options policy-statement POL_OSPF term 1 from protocol direct
set policy-options policy-statement POL_OSPF term 1 from route-filter 10.10.6.2/32 exact
set policy-options policy-statement POL_OSPF term 1 then metric 15
set policy-options policy-statement POL_OSPF term 1 then external type 1
set policy-options policy-statement POL_OSPF term 1 then accept
/////////////////////RO10
del routing-options static route 10.20.0.0/22
del routing-options static route 10.10.0.0/22 next-hop 10.10.7.1
del routing-options static route 10.10.0.0/22 next-hop 10.10.7.5

set routing-options router-id 10.10.6.3
set routing-options generate defaults preference 200
set routing-options generate route 0.0.0.0/0

set policy-options policy-statement POL_DEFAULT term def from route-filter 0.0.0.0/0 exact
set policy-options policy-statement POL_DEFAULT term def then accept

set protocols ospf export POL_DEFAULT
set protocols ospf area 0.0.0.109 nssa default-lsa
set protocols ospf area 0.0.0.109 nssa no-summaries
set protocols ospf area 0.0.0.109 interface fe-0/0/0.0 interface-type p2p
set protocols ospf area 0.0.0.109 interface fe-0/0/1.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface fe-0/0/2.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface fe-0/0/4.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface lo0.0

set interfaces lo0 unit 0 family inet address 10.10.6.3/32

set security zones security-zone trust interfaces lo0

/////////////////////RO20
del routing-options static route 10.10.0.0/22 next-hop 10.10.8.1
del routing-options static route 10.10.0.0/22 next-hop 10.10.8.5

set routing-options router-id 10.20.6.3

set protocols ospf area 0.0.0.0 interface fe-0/0/2.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface fe-0/0/4.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface lo0.0
set interfaces lo0 unit 0 family inet address 10.20.6.3/32

set protocols ospf area 0.0.0.0 interface vlan.201 passive
set protocols ospf area 0.0.0.0 interface vlan.202 passive

set security zones security-zone trust interfaces lo0

/////////////////////////////проверка
show ospf interfaces
show ospf nei
show ospf route
show route
show ospf database
Рекомендации по теме
Комментарии
Автор

Уважаемые зрители! Если видео практики Juniper оказалось полезным,
поддержите ролик лайком и комментарием, это поможет ознакомить
с ним большую аудиторию. Спасибо.

Networkisreachable