Tuesday, 11 October 2022

1.1 Switched campus

1.1.a Switch administration

1.1.a i Managing MAC address table


Show Commands:

Switch#show mac address-table ?

  address     Address to lookup in the table

  aging-time  MAC address table aging parameters

  count       Number of MAC addresses in the table

  dynamic     List dynamic MAC addresses

  interface   List MAC adresses on a specific interface

  multicast   List multicast MAC addresses

  secure      List secure MAC addresses

  static      List static MAC addresses

  vlan        List MAC addresses on a specific vlan

  |           Output modifiers

  <cr>


Configuration commands:

Switch(config)#mac address-table ?

  aging-time  Set MAC address table entry maximum age

  static      static keyword

Saturday, 13 April 2019

MPLS AUTO TUNNEL MANUAL IOS

interface Auto-Template400
 ip unnumbered Loopback0
 tunnel mode mpls traffic-eng
 tunnel destination access-list 10
 tunnel mpls traffic-eng autoroute destination
 tunnel mpls traffic-eng path-option 10 dynamic


router ospf 1
 router-id 2.0.0.122
 passive-interface Loopback0
 mpls traffic-eng router-id Loopback0
 mpls traffic-eng area 0
 mpls ldp sync

MPLS MANUAL AUTO TUNNELS IOS XR


router ospf 1
 router-id 2.0.0.131
 area 0
  mpls traffic-eng
  interface Loopback0
   passive enable
  !
  interface GigabitEthernet0/0/0/0
   network point-to-point
  !
  interface GigabitEthernet0/0/0/3
   network point-to-point
  !
 !
 mpls traffic-eng router-id Loopback0
!


mpls traffic-eng
 interface GigabitEthernet0/0/0/0
 !
 interface GigabitEthernet0/0/0/3
 !
 auto-tunnel mesh
  group 500
   attribute-set AUTO-MPLS
   destination-list MPLS-AUTO
  !
  tunnel-id min 400 max 499
 !
 attribute-set auto-mesh AUTO-MPLS
  autoroute announce
 !
!

rsvp
 interface GigabitEthernet0/0/0/0
 !
 interface GigabitEthernet0/0/0/3
 !
!
ipv4 prefix-list MPLS-AUTO
 10 permit 2.0.0.102/32 (1 match)
 20 permit 2.0.0.101/32 (1 match)
 30 permit 2.0.0.111/32 (1 match)
 40 permit 2.0.0.112/32
 50 permit 2.0.0.122/32 (1 match)
 60 permit 2.0.0.121/32 (1 match)
 70 permit 2.0.0.131/32
 80 permit 2.0.0.132/32 (1 match)
.

ipv4 unnumbered mpls traffic-eng Loopback0

Tuesday, 19 March 2019

PE - CPE RIP Configuration

PE Router - IOS XR

router bgp 1
 vrf CUST2
  rd 200:1
  address-family ipv4 unicast
   redistribute rip metric 1

router rip
 vrf CUST2
  interface GigabitEthernet0/0/0/1
  !
  interface GigabitEthernet0/0/0/3
  !
  redistribute bgp 1
 !
!



CPE Router - IOS XE

router rip
!
address-family ipv4 vrf CUST2
  network 6.0.0.0
  network 169.10.0.0
  no auto-summary
  version 2
 exit-address-family
!
!


Monday, 18 March 2019

BGP Issues

Cisco IOS XR

router bgp 1
 bgp router-id 1.0.0.133

 vrf CUST1
  rd 100:1
  address-family ipv4 unicast
  !
  address-family ipv6 unicast
  !
  neighbor 100.96.100.1
   remote-as 200
   address-family ipv4 unicast
    route-policy PASS in
    route-policy PASS out
   !
   address-family ipv6 unicast
    route-policy PASS in
    route-policy PASS out

Cisco IOS XE:

router bgp 200
 !
 address-family ipv4 vrf CUST1
  bgp router-id 100.96.100.1
  neighbor 100.96.100.2 remote-as 1
  neighbor 100.96.100.2 update-source GigabitEthernet0/1.100
  neighbor 100.96.100.2 activate
 exit-address-family
!

#####it will not establish as XE has only IPV4 and missing IPV6 address family.#####

Thursday, 7 March 2019

MPLS TE - Manual tunnel

Cisco IOS XR

interface tunnel-te20
 ipv4 unnumbered Loopback0
 priority 4 4
 signalled-bandwidth 750
 autoroute announce
 !
 destination 1.0.0.122
 path-option 1 explicit name ASBR2 attribute-set BW
 path-option 2 dynamic

mpls traffic-eng
 !
 attribute-set path-option BW
  signalled-bandwidth 750 class-type 0
#didnt work for me - use signaled bandwidth under interface 


explicit-path name ASBR2
 index 1 next-address strict ipv4 unicast 1.0.0.101
 index 2 next-address strict ipv4 unicast 1.0.0.121
 index 3 next-address strict ipv4 unicast 1.0.0.122
 index 4 next-address strict ipv4 unicast 1.0.0.102
 index 5 next-address strict ipv4 unicast 1.0.0.112







Cisco IOS XE

interface Tunnel10
 ip unnumbered Loopback0
 tunnel mode mpls traffic-eng
 tunnel destination 1.0.0.132
 tunnel mpls traffic-eng autoroute announce
 tunnel mpls traffic-eng priority 6 6
 tunnel mpls traffic-eng bandwidth 750
 tunnel mpls traffic-eng path-option 1 dynamic

ip explicit-path name PE3 enable
 next-address 1.0.0.102
 next-address 1.0.0.132
 next-address 1.0.0.101
 next-address 1.0.0.133




Tuesday, 5 March 2019

mpls traffic-eng onehop primary

CISCO IOS XR

MPLS ONEHOP

mpls traffic-eng
 interface GigabitEthernet0/0/0/0
 !
 interface GigabitEthernet0/0/0/3
 !
 auto-tunnel mesh
  group 1
   onehop
   attribute-set DEFAULT
  !
  tunnel-id min 200 max 250
 !
 attribute-set auto-mesh DEFAULT
  autoroute announce
 !
!
ipv4 unnumbered mpls traffic-eng Loopback0



CISCO IOS XE

mpls traffic-eng tunnels
mpls traffic-eng auto-tunnel primary onehop
mpls traffic-eng auto-tunnel primary tunnel-num min 200 max 250
mpls traffic-eng router-id Loopback0

interface GigabitEthernet2
 ip address 1.1.12.12 255.255.255.0
 ip ospf message-digest-key 1 md5 CISCO
 ip ospf network point-to-point
 ip ospf 1 area 0
 negotiation auto
 ipv6 address 2001:DB8::1:1:12:12/122
 mpls traffic-eng tunnels
 ip rsvp bandwidth





Monday, 18 February 2019

ISIS LFA FRR SRLG - CISCO IOS XR


group ISIS
 router isis 'PE'
  is-type level-2-only
  log adjacency changes
  lsp-password hmac-md5 encrypted 123A2C243124 level 2
  address-family ipv4 unicast
   metric-style wide
   fast-reroute per-prefix tiebreaker lowest-backup-metric index 50
   fast-reroute per-prefix tiebreaker srlg-disjoint index 40
  !
  interface 'Lo.*'
   passive
   address-family ipv4 unicast
    tag 100
   !
  !
  interface 'Gig.*'
   point-to-point
   address-family ipv4 unicast
    fast-reroute per-prefix
   !
  !
 !
end-group

RP/0/0/CPU0:ISP2_P1#show run router isis
Wed Jan 23 21:56:51.574 UTC
router isis PE
 apply-group ISIS
 net 49.0000.0000.0000.0101.00
 interface Loopback0
 !
 interface GigabitEthernet0/0/0/1
 !
 interface GigabitEthernet0/0/0/2
 !
 interface GigabitEthernet0/0/0/3
 !
 interface GigabitEthernet0/0/0/4
 !
!

RP/0/0/CPU0:ISP2_P1#show run srlg
Wed Jan 23 21:57:04.334 UTC
srlg
 interface GigabitEthernet0/0/0/3
  2 value 10
 !
 interface GigabitEthernet0/0/0/4
  2 value 10
 !
!

Friday, 15 February 2019

MPLS mesh autotunnel

Cisco IOS XE

https://www.networkworld.com/article/2281049/lan-wan/chapter-4--cisco-mpls-traffic-engineering.html



mpls traffic-eng auto-tunnel mesh
mpls traffic-eng auto-tunnel mesh tunnel-num min 5000 max 5099

interface Auto-Template500
ip unnumbered Loopback0
tunnel mode mpls traffic-eng tunnel destination access-list 5
tunnel mpls traffic-eng autoroute destination
tunnel mpls traffic-eng affinity 0x0 mask 0x4
tunnel mpls traffic-eng path-option 10 dynamic


access-list 5 permit 8.8.8.8
access-list 5 permit 11.11.11.11


Cisco IOS XR

ipv4 unnumbered mpls traffic-eng Loopback0
!
ipv4 prefix-list PL_MESH_ENDPOINT
 10 permit 1.1.1.1/32
 20 permit 8.8.8.8/32


mpls traffic-eng
 auto-tunnel mesh
  group 500
   attribute-set ATT_NOT_BLUE
   destination-list PL_MESH_ENDPOINT
  timers removal unused 0
  tunnel-id min 5000 max 5099
 attribute-set auto-mesh ATT_NOT_BLUE
  logging events lsp-status state
  logging events lsp-status reroute
  autoroute announce
  affinity 0x0 mask 0x4

Wednesday, 23 January 2019

ISIS LFA FRR - CISCO IOS

!!!!!Must be point to point for ISIS!!!!

router isis PE
 net 49.0001.0000.0000.0121.00
 is-type level-2-only
 authentication mode md5 level-2
 authentication key-chain ISIS
 metric-style wide
 ip route priority high tag 100
 log-adjacency-changes
 fast-reroute per-prefix level-2 route-map FRR-HIGH
 passive-interface Loopback0
 bfd all-interfaces
 mpls traffic-eng router-id Loopback0
 mpls traffic-eng level-2



interface GigabitEthernet2
 ip address 2.2.22.22 255.255.255.0
 ip router isis PE
 negotiation auto
 ipv6 address 2001:DB8::2:2:22:22/122
 no mop enabled
 no mop sysid
 isis network point-to-point
end

interface Loopback0
 ip address 2.0.0.121 255.255.255.255
 ipv6 address 2001:DB9::2:121/128
 isis tag 100
end


ip prefix-list FRR seq 5 permit 2.0.0.121/32
ip prefix-list FRR seq 10 permit 2.0.0.122/32
ip prefix-list FRR seq 15 permit 2.0.0.102/32
ip prefix-list FRR seq 20 permit 2.0.0.101/32
ip prefix-list FRR seq 25 permit 2.0.0.111/32
ip prefix-list FRR seq 30 permit 2.0.0.112/32
ip prefix-list FRR seq 35 permit 2.0.0.131/32
ip prefix-list FRR seq 40 permit 2.0.0.132/32


Sunday, 13 January 2019

ISIS - CISCO IOS XE-XR

IOS-XR:

router isis 1
is-type level-2-only
net 49.0001.0000.0000.0020.00
interface Loopback0
passive
address-family ipv4 unicast
!
!
interface GigabitEthernet0/0/0/0.1920
address-family ipv4 unicast


IOS-XE:

interface GigabitEthernet1.519
ip router isis
!
router isis
net 49.0001.0000.0000.0005.00
is-type level-2-only
passive-interface Loopback0

1.1 Switched campus 1.1.a Switch administration 1.1.a i Managing MAC address table Show Commands: Switch#show mac address-table ?   address ...