AULA 8 - INTRODUÇÃO AO OSPF.,
AULA 8 - INTRODUÇÃO AO OSPF.,
AULA 8 - INTRODUÇÃO AO OSPF.,
OSPF!
FRR – RouterOS v6 e V7 - VRP
Cronograma
1. O que é o OSPF?
2. Roteamento estático x dinâmico
3. IGP? EGP?
4. Dijkstra? SPT?
5. Exemplos de Configurações
2
O que é o OSPF?
Roteamento dinâmico
IGP
Link State Protocol
Open Shortest Path First
3
Estático x Dinâmico
R1 R2 R3 R4 R5
LAN1 LAN2 LAN3 LAN4 LAN5
4
IGP x EGP
OSPF
AS30
AS20 BGP
AS10
BGP OSPF
6
O que configurar?
1. Interface Loopback e IP /32
2. IPs de ponto a ponto
3. Instância OSPF
4. Router-ID
5. Area, Networks e/ou Interfaces OSPF
7
O que planejar?
2. IPs de LOOPBACK/RouterID
3. IPs de LAN
8
Planejamento da Topologia
9
/interface bridge add name=loopback
/interface ethernet set [ find default-name=ether1 ] name=ether1-gerencia
Configuração do
/interface ethernet set [ find default-name=ether2 ] name=ether2-frr RouterOS v6
/interface ethernet set [ find default-name=ether3 ] name=ether3-routeros-v7
/routing ospf instance set [ find default=yes ] router-id=10.64.255.2
/ip address add address=10.64.102.2/24 interface=ether3-routeros-v7
/ip address add address=10.64.255.2 interface=loopback network=10.64.255.2
/ip address add address=10.64.101.2/24 interface=ether2-frr network=10.64.101.0
/ip dhcp-client add !dhcp-options disabled=no interface=ether1-gerencia
/routing ospf network add area=backbone comment="R3 ROUTEROS-V7"
network=10.64.102.0/24
/routing ospf network add area=backbone comment=LOOPBACK-ROUTER-ID
network=10.64.255.2/32
/routing ospf network add area=backbone network=10.64.101.0/24
/system identity set name=R2-ROUTEROS-V6
10
/interface bridge add name=loopback
/interface ethernet set [ find default-name=ether1 ] name=ether1-gerencia
Configuração do
/interface ethernet set [ find default-name=ether2 ] name=ether2-routeros-v6 RouterOS v7
/interface ethernet set [ find default-name=ether3 ] name=ether3-huawei
/routing ospf instance add disabled=no name=ospf-instance-1-ipv4 router-id=10.64.255.3
/routing ospf area add disabled=no instance=ospf-instance-1-ipv4 name=backbone
/ip address add address=10.64.255.3 interface=loopback network=10.64.255.3
/ip address add address=10.64.102.3/24 interface=ether2-routeros-v6 network=10.64.102.0
/ip address add address=10.64.103.3/24 interface=ether3-huawei network=10.64.103.0
/routing ospf interface-template add area=backbone disabled=no networks=10.64.102.0/24
/routing ospf interface-template add area=backbone disabled=no interfaces=loopback
/routing ospf interface-template add area=backbone disabled=no networks=10.64.103.0/24
/system identity set name=R3-ROUTEROS-V7
11
configure terminal
interface lo
Configuração do
ip address 10.64.255.1/32 FRRouting
exit
do show interface brief
interface ens4
ip address 10.64.101.1/24
exit
router ospf
ospf router-id 10.64.255.1
network 10.64.101.0/24 area 0
network 10.64.255.1/32 area 0
exit
exit
write
12
apt-get update
apt-get install -y apt-transport-https software-properties-common wget gnupg
Configuração do
wget -q -O - https://packages.grafana.com/gpg.key | apt-key add - Huawei VRP 5
add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"
apt-get update
apt-get install -y grafana
#
grafana-cli plugins install alexanderzobnin-zabbix-app
systemctl restart grafana-server Por fim vamos instalar o plugin para Zabbix.
3
13