OpenWRT: quagga ospf: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
Created page with "sumber: https://www.nongnu.org/quagga/docs/docs-multi/OSPF-Configuration-Examples.html#OSPF-Configuration-Examples 7.12 OSPF Configuration Examples A simple example, with M..."
 
Onnowpurbo (talk | contribs)
No edit summary
 
Line 1: Line 1:
sumber: https://www.nongnu.org/quagga/docs/docs-multi/OSPF-Configuration-Examples.html#OSPF-Configuration-Examples
sumber: https://www.nongnu.org/quagga/docs/docs-multi/OSPF-Configuration-Examples.html#OSPF-Configuration-Examples


 
!
7.12 OSPF Configuration Examples
interface bge0
 
  ip ospf authentication message-digest
A simple example, with MD5 authentication enabled:
  ip ospf message-digest-key 1 md5 ABCDEFGHIJK
 
!
!
router ospf
interface bge0
  network 192.168.0.0/16 area 0.0.0.1
ip ospf authentication message-digest
  area 0.0.0.1 authentication message-digest
ip ospf message-digest-key 1 md5 ABCDEFGHIJK
!
router ospf
network 192.168.0.0/16 area 0.0.0.1
area 0.0.0.1 authentication message-digest


An ABR router, with MD5 authentication and performing summarisation of networks between the areas:
An ABR router, with MD5 authentication and performing summarisation of networks between the areas:


!
!
password ABCDEF
password ABCDEF
log file /var/log/quagga/ospfd.log
log file /var/log/quagga/ospfd.log
service advanced-vty
service advanced-vty
!
!
interface eth0
interface eth0
ip ospf authentication message-digest
  ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 ABCDEFGHIJK
  ip ospf message-digest-key 1 md5 ABCDEFGHIJK
!
!
interface ppp0
interface ppp0
!
!
interface br0
interface br0
ip ospf authentication message-digest
  ip ospf authentication message-digest
ip ospf message-digest-key 2 md5 XYZ12345
  ip ospf message-digest-key 2 md5 XYZ12345
!
!
router ospf
router ospf
ospf router-id 192.168.0.1
  ospf router-id 192.168.0.1
redistribute connected
  redistribute connected
passive interface ppp0
  passive interface ppp0
network 192.168.0.0/24 area 0.0.0.0
  network 192.168.0.0/24 area 0.0.0.0
network 10.0.0.0/16 area 0.0.0.0
  network 10.0.0.0/16 area 0.0.0.0
network 192.168.1.0/24 area 0.0.0.1
  network 192.168.1.0/24 area 0.0.0.1
area 0.0.0.0 authentication message-digest
  area 0.0.0.0 authentication message-digest
area 0.0.0.0 range 10.0.0.0/16
  area 0.0.0.0 range 10.0.0.0/16
area 0.0.0.0 range 192.168.0.0/24
  area 0.0.0.0 range 192.168.0.0/24
area 0.0.0.1 authentication message-digest
  area 0.0.0.1 authentication message-digest
area 0.0.0.1 range 10.2.0.0/16
  area 0.0.0.1 range 10.2.0.0/16
!
!


A Traffic Engineering configuration, with Inter-ASv2 support.
A Traffic Engineering configuration, with Inter-ASv2 support.
Line 50: Line 45:
- First, the ’zebra.conf’ part:
- First, the ’zebra.conf’ part:


hostname HOSTNAME
hostname HOSTNAME
password PASSWORD
password PASSWORD
log file /var/log/zebra.log
log file /var/log/zebra.log
!
!
interface eth0
interface eth0
ip address 198.168.1.1/24
  ip address 198.168.1.1/24
mpls-te on
  mpls-te on
mpls-te link metric 10
  mpls-te link metric 10
mpls-te link max-bw 1.25e+06
  mpls-te link max-bw 1.25e+06
mpls-te link max-rsv-bw 1.25e+06
  mpls-te link max-rsv-bw 1.25e+06
mpls-te link unrsv-bw 0 1.25e+06
  mpls-te link unrsv-bw 0 1.25e+06
mpls-te link unrsv-bw 1 1.25e+06
  mpls-te link unrsv-bw 1 1.25e+06
mpls-te link unrsv-bw 2 1.25e+06
  mpls-te link unrsv-bw 2 1.25e+06
mpls-te link unrsv-bw 3 1.25e+06
  mpls-te link unrsv-bw 3 1.25e+06
mpls-te link unrsv-bw 4 1.25e+06
  mpls-te link unrsv-bw 4 1.25e+06
mpls-te link unrsv-bw 5 1.25e+06
  mpls-te link unrsv-bw 5 1.25e+06
mpls-te link unrsv-bw 6 1.25e+06
  mpls-te link unrsv-bw 6 1.25e+06
mpls-te link unrsv-bw 7 1.25e+06
  mpls-te link unrsv-bw 7 1.25e+06
mpls-te link rsc-clsclr 0xab
  mpls-te link rsc-clsclr 0xab
!
!
interface eth1
interface eth1
ip address 192.168.2.1/24
  ip address 192.168.2.1/24
mpls-te on
  mpls-te on
mpls-te link metric 10
  mpls-te link metric 10
mpls-te link max-bw 1.25e+06
  mpls-te link max-bw 1.25e+06
mpls-te link max-rsv-bw 1.25e+06
  mpls-te link max-rsv-bw 1.25e+06
mpls-te link unrsv-bw 0 1.25e+06
  mpls-te link unrsv-bw 0 1.25e+06
mpls-te link unrsv-bw 1 1.25e+06
  mpls-te link unrsv-bw 1 1.25e+06
mpls-te link unrsv-bw 2 1.25e+06
  mpls-te link unrsv-bw 2 1.25e+06
mpls-te link unrsv-bw 3 1.25e+06
  mpls-te link unrsv-bw 3 1.25e+06
mpls-te link unrsv-bw 4 1.25e+06
  mpls-te link unrsv-bw 4 1.25e+06
mpls-te link unrsv-bw 5 1.25e+06
  mpls-te link unrsv-bw 5 1.25e+06
mpls-te link unrsv-bw 6 1.25e+06
  mpls-te link unrsv-bw 6 1.25e+06
mpls-te link unrsv-bw 7 1.25e+06
  mpls-te link unrsv-bw 7 1.25e+06
mpls-te link rsc-clsclr 0xab
  mpls-te link rsc-clsclr 0xab
mpls-te neighbor 192.168.2.2 as 65000
  mpls-te neighbor 192.168.2.2 as 65000  


- Then the ’ospfd.conf’ itself:
- Then the ’ospfd.conf’ itself:


hostname HOSTNAME
hostname HOSTNAME
password PASSWORD
password PASSWORD
log file /var/log/ospfd.log
log file /var/log/ospfd.log
!
!
!
!
interface eth0
interface eth0
ip ospf hello-interval 60
  ip ospf hello-interval 60
ip ospf dead-interval 240
  ip ospf dead-interval 240
!
!
interface eth1
interface eth1
ip ospf hello-interval 60
  ip ospf hello-interval 60
ip ospf dead-interval 240
  ip ospf dead-interval 240
!
!
!
!
router ospf
router ospf
ospf router-id 192.168.1.1
  ospf router-id 192.168.1.1
network 192.168.0.0/16 area 1
  network 192.168.0.0/16 area 1
ospf opaque-lsa
  ospf opaque-lsa
  mpls-te
  mpls-te
  mpls-te router-address 192.168.1.1
  mpls-te router-address 192.168.1.1
  mpls-te inter-as area 1
  mpls-te inter-as area 1
!
!
line vty
line vty


A router information example with PCE advsertisement:
A router information example with PCE advsertisement:


!
!
router ospf
router ospf
ospf router-id 192.168.1.1
  ospf router-id 192.168.1.1
network 192.168.0.0/16 area 1
  network 192.168.0.0/16 area 1
capability opaque
  capability opaque
  mpls-te
  mpls-te
  mpls-te router-address 192.168.1.1
  mpls-te router-address 192.168.1.1
router-info area 0.0.0.1
  router-info area 0.0.0.1
  pce address 192.168.1.1
  pce address 192.168.1.1
  pce flag 0x80
  pce flag 0x80
  pce domain as 65400
  pce domain as 65400
  pce neighbor as 65500
  pce neighbor as 65500
  pce neighbor as 65200
  pce neighbor as 65200
  pce scope 0x80
  pce scope 0x80
!
!





Latest revision as of 04:21, 18 November 2018

sumber: https://www.nongnu.org/quagga/docs/docs-multi/OSPF-Configuration-Examples.html#OSPF-Configuration-Examples

!
interface bge0
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 ABCDEFGHIJK
!
router ospf
 network 192.168.0.0/16 area 0.0.0.1
 area 0.0.0.1 authentication message-digest

An ABR router, with MD5 authentication and performing summarisation of networks between the areas:

!
password ABCDEF
log file /var/log/quagga/ospfd.log
service advanced-vty
!
interface eth0
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 ABCDEFGHIJK
!
interface ppp0
!
interface br0
 ip ospf authentication message-digest
 ip ospf message-digest-key 2 md5 XYZ12345
!
router ospf
 ospf router-id 192.168.0.1
 redistribute connected
 passive interface ppp0
 network 192.168.0.0/24 area 0.0.0.0
 network 10.0.0.0/16 area 0.0.0.0
 network 192.168.1.0/24 area 0.0.0.1
 area 0.0.0.0 authentication message-digest
 area 0.0.0.0 range 10.0.0.0/16
 area 0.0.0.0 range 192.168.0.0/24
 area 0.0.0.1 authentication message-digest
 area 0.0.0.1 range 10.2.0.0/16
!

A Traffic Engineering configuration, with Inter-ASv2 support.

- First, the ’zebra.conf’ part:

hostname HOSTNAME
password PASSWORD
log file /var/log/zebra.log
!
interface eth0
 ip address 198.168.1.1/24
 mpls-te on
 mpls-te link metric 10
 mpls-te link max-bw 1.25e+06
 mpls-te link max-rsv-bw 1.25e+06
 mpls-te link unrsv-bw 0 1.25e+06
 mpls-te link unrsv-bw 1 1.25e+06
 mpls-te link unrsv-bw 2 1.25e+06
 mpls-te link unrsv-bw 3 1.25e+06
 mpls-te link unrsv-bw 4 1.25e+06
 mpls-te link unrsv-bw 5 1.25e+06
 mpls-te link unrsv-bw 6 1.25e+06
 mpls-te link unrsv-bw 7 1.25e+06
 mpls-te link rsc-clsclr 0xab
!
interface eth1
 ip address 192.168.2.1/24
 mpls-te on
 mpls-te link metric 10
 mpls-te link max-bw 1.25e+06
 mpls-te link max-rsv-bw 1.25e+06
 mpls-te link unrsv-bw 0 1.25e+06
 mpls-te link unrsv-bw 1 1.25e+06
 mpls-te link unrsv-bw 2 1.25e+06
 mpls-te link unrsv-bw 3 1.25e+06
 mpls-te link unrsv-bw 4 1.25e+06
 mpls-te link unrsv-bw 5 1.25e+06
 mpls-te link unrsv-bw 6 1.25e+06
 mpls-te link unrsv-bw 7 1.25e+06
 mpls-te link rsc-clsclr 0xab
 mpls-te neighbor 192.168.2.2 as 65000 

- Then the ’ospfd.conf’ itself:

hostname HOSTNAME
password PASSWORD
log file /var/log/ospfd.log
!
!
interface eth0
 ip ospf hello-interval 60
 ip ospf dead-interval 240
!
interface eth1
 ip ospf hello-interval 60
 ip ospf dead-interval 240
!
!
router ospf
 ospf router-id 192.168.1.1
 network 192.168.0.0/16 area 1
 ospf opaque-lsa
  mpls-te
  mpls-te router-address 192.168.1.1
  mpls-te inter-as area 1
!
line vty  

A router information example with PCE advsertisement:

!
router ospf
 ospf router-id 192.168.1.1
 network 192.168.0.0/16 area 1
 capability opaque
  mpls-te
  mpls-te router-address 192.168.1.1
 router-info area 0.0.0.1
  pce address 192.168.1.1
  pce flag 0x80
  pce domain as 65400
  pce neighbor as 65500
  pce neighbor as 65200
  pce scope 0x80
!


Referensi

Pranala Menarik