! BB-DC2 - LAB TEMPLATE - Nexus 9000 standalone NX-OS 10.5(x)
! Read README.txt first. Backbone base plus dedicated Layer 3 backup example.
! Phase 1 - vPC / HSRP
! BB-DC2 — Nexus standalone NX-OS 10.5(x) örneği
configure terminal
hostname BB-DC2
feature lacp
feature vpc
feature interface-vlan
feature hsrp
feature ospf

vlan 110
  name FINANS-APP
vlan 120
  name OPERASYON

interface mgmt0
  vrf member management
  ip address 10.250.2.12/24
  no shutdown
vrf context management
  ip route 0.0.0.0/0 10.250.2.1

vpc domain 10
  role priority 200
  peer-keepalive destination 10.250.1.11 source 10.250.2.12 vrf management
  peer-gateway
  ip arp synchronize

interface Ethernet1/53
  description DCI-PEERLINK-YOL-A
  switchport
  switchport mode trunk
  switchport trunk allowed vlan 110,120
  channel-group 10 mode active
  no shutdown
interface Ethernet1/54
  description DCI-PEERLINK-YOL-B
  switchport
  switchport mode trunk
  switchport trunk allowed vlan 110,120
  channel-group 10 mode active
  no shutdown
interface port-channel10
  description VPC-PEER-LINK
  switchport
  switchport mode trunk
  switchport trunk allowed vlan 110,120
  spanning-tree port type network
  vpc peer-link
  no shutdown

spanning-tree vlan 110,120 priority 16384

interface Ethernet1/1
  description ACC-DC1-REMOTE-UPLINK
  switchport
  switchport mode trunk
  switchport trunk allowed vlan 110,120
  channel-group 101 mode active
  no shutdown
interface port-channel101
  description ACC-DC1-DUAL-HOMED
  switchport
  switchport mode trunk
  switchport trunk allowed vlan 110,120
  vpc 101
  no shutdown

interface Ethernet1/2
  description ACC-DC2-LOCAL-UPLINK
  switchport
  switchport mode trunk
  switchport trunk allowed vlan 110,120
  channel-group 102 mode active
  no shutdown
interface port-channel102
  description ACC-DC2-DUAL-HOMED
  switchport
  switchport mode trunk
  switchport trunk allowed vlan 110,120
  vpc 102
  no shutdown

interface Vlan110
  description FINANS-APP-GATEWAY
  no shutdown
  no ip redirects
  ip address 10.60.110.3/24
  hsrp version 2
  hsrp 110
    ip 10.60.110.1
    priority 100
    preempt delay minimum 60
interface Vlan120
  description OPERASYON-GATEWAY
  no shutdown
  no ip redirects
  ip address 10.60.120.3/24
  hsrp version 2
  hsrp 120
    ip 10.60.120.1
    priority 100
    preempt delay minimum 60
end

! Phase 2 - Layer 3 / OSPF; requires matching edge configuration
configure terminal
router ospf FINANS
  router-id 10.255.255.2

interface loopback0
  ip address 10.255.255.2/32
  ip router ospf FINANS area 0.0.0.0

interface Ethernet1/47
  description DCI-L3-BACKUP-BB-DC1
  no switchport
  ip address 10.255.0.1/31
  ip router ospf FINANS area 0.0.0.0
  ip ospf network point-to-point
  ip ospf cost 200
  no shutdown

interface Ethernet1/49
  description LOCAL-EDGE-DC2
  no switchport
  ip address 10.255.1.2/31
  ip router ospf FINANS area 0.0.0.0
  ip ospf network point-to-point
  ip ospf cost 10
  no shutdown

interface Vlan110
  ip router ospf FINANS area 0.0.0.0
  ip ospf passive-interface
interface Vlan120
  ip router ospf FINANS area 0.0.0.0
  ip ospf passive-interface
end
