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 |
+---------------+---------------+---+-------+--------------------------------+--------+

Monday, February 15, 2021

Popular CLI CIENA 5160 (Config Mode)

Warning: It's just Personal Note !!!

CIENA-5160>chassis reboot now
CIENA-5160>user create user <name> access-level <level> echoless-password max-session-limit <1-12> --> (create user and set admin privilege, password, maximum session limit)
CIENA-5160>system set host-name <name> -->
CIENA-5160>arp flush
CIENA-5160>interface local set ip <X.X.X.X/sm>
CIENA-5160>interface set gateway <X.X.X.X>

CIENA-5160>port set port <1-24> max-frame-size <512-12288>
CIENA-5160>port set port <1-24> description <description>
CIENA-5160>port set port <1-24> acceptable-frame-type <all/tagged-only/untagged-only>
CIENA-5160>port set port <1-24> speed <ten/hundred/gigabit/ten-gig/auto> duplex <half/full>

CIENA-5160>vlan create vlan <vlan ID>
CIENA-5160>vlan rename vlan <vlan ID> name <name>
CIENA-5160>vlan add vlan <vlan ID> port <1-24>
CIENA-5160>vlan remove vlan <vlan ID> port <1-24>

CIENA-5160>ospf instance create ospf-instance <ospfname>
CIENA-5160>ospf instance set ospf-instance <ospfname> router-id x.x.x.x

CIENA-5160>rsvp-te path create rsvp-path <pathname-pri >
CIENA-5160>rsvp-te path set rsvp-path <pathname-pri> index 1 ip <x.x.x.x>
CIENA-5160>rsvp-te path set rsvp-path <pathname-pri> index 2 ip <y.y.y.y>

CIENA-5160>rsvp-te path create rsvp-path <pathname-sec>
CIENA-5160>rsvp-te path set rsvp-path <pathname-sec> index 1 ip 3.3.3.3 hop-type loose

CIENA-5160>mpls tunnel create rsvp-ingress <tunname-pri> dest-ip <x.x.x.x> explicit-tunnel-path <pathname-pri>
CIENA-5160>mpls tunnel create rsvp-ingress <tunname-sec> dest-ip <x.x.x.x> explicit-tunnel-path <pathname-sec> backup-tunnel <pathname-pri>

CIENA-5160>mpls l2-vpn create dynamic-vc <vplsvcname> pw-id <vplsid> peer x.x.x.x te-tunnel <tunname-pri>
CIENA-5160>mpls l2-vpn create dynamic-vc <qnqvcname> pw-id <vplsid> peer x.x.x.x te-tunnel <tunname-pri> pw-mode spoke

CIENA-5160>virtual-switch show
CIENA-5160>virtual-switch ethernet create vs <vsname> mode vpls
CIENA-5160>virtual-switch ethernet attach mpls-vc <vplsvcname> vs <vsname>
CIENA-5160>virtual-switch ethernet add vs <vsname> port <1-24> vlan <vlan ID> ingress-l2-transform pop egress-l2-transform push-8100.<vlan ID>
CIENA-5160>virtual-switch ethernet create vs <qnqname> mode vpls
CIENA-5160>virtual-switch ethernet attach mpls-vc <qnqvcname> vs <qnqname>
CIENA-5160>virtual-switch ethernet add vs <qnqname> port 23
CIENA-5160>virtual-circuit ethernet set port <1-24> vlan-ethertype 9100

Temukan Artikel lainnya terkait Routing dan Switching di List All Articles Routing & Switching CIENA/CISCO/RAISECOM/BROCADE in This Blog [Updated]