Thursday, February 18, 2021

Configuration For OSPF Network CIENA 5160

Warning: It's just Personal Note !!!

CIENA-5160>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! NETWORK CONFIG: vlans
!
vlan create vlan 139-140


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! IP INTERFACE CONFIG:
!
interface create loopback 0 ip 10.48.1.25
interface create ip-interface TO-CNA-JKT ip 10.49.2.130/30 mtu 9198 ip-forwarding on vlan 140 network-type point-to-point


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! PORT CONFIG: ports
!
port set port 24 max-frame-size 9216 description TO-CNA-JKT


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! NETWORK CONFIG: vlan members and attributes
!
vlan add vlan 140 port 24
vlan remove vlan 127 port 24
!
vlan rename vlan 140 name P2P-TO-CNA-JKT


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! NETWORK CONFIG: vlan translation
!
port set port 24 acceptable-frame-type all pvid 140 egress-untag-vlan 140 untagged-data-vid 140


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! MPLS TE Interface Attributes
!
mpls traffic-eng set ip-interface TO-CNA-JKT link-cost 100


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! RSVP-TE/GMPLS-RSVP-TE INTERFACE
!
rsvp-te set ip-interface TO-CNA-JKT advertised-label implicit-null


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! MPLS/GMPLS RSVP-TE INTERFACES
!
rsvp-te enable ip-interface 0
rsvp-te enable ip-interface TO-CNA-JKT


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! OSPF
!
ospf instance create ospf-instance OSPF_JKT
ospf instance disable ospf-instance OSPF_JKT
ospf instance set ospf-instance OSPF_JKT router-id 10.48.1.25
ospf instance enable ospf-instance OSPF_JKT
ospf instance set ospf-instance OSPF_JKT rfc-1583-compatible on
!


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! OSPF AREA
!
ospf area create area-ip 0.0.0.42 ospf-instance OSPF_JKT type normal


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! OSPF INTERFACE
!
ospf interface attach ip-interface 0 area 0.0.0.0 ospf-instance OSPF_JKT
ospf interface set ip-interface 0 cost-metric 1
ospf interface attach ip-interface TO-CNA-JKT area 0.0.0.0 ospf-instance OSPF_JKT
ospf interface set ip-interface TO-CNA-JKT bfd-monitor enable cost-metric 10
ospf interface attach ip-interface OAM area 0.0.0.42 ospf-instance OSPF_JKT
ospf interface set ip-interface OAM passive


CIENA-5160> ospf neighbor show ospf-instance OSPF_JKT
+---------------------------------OSPF NEIGHBOR TABLE---------------------------------+
| IpAddr          | RouterID     |Pri |State  | Interface         |DeadTime|
+---------------+---------------+---+-------+--------------------------------+--------+
|10.49.1.122   |10.48.1.80    |1    |Full    |TO-CNA-JKT |35 |
+---------------+---------------+---+-------+--------------------------------+--------+