Click on Pictures to View

To view a larger version of an image within a post, just click on the picture you want to view :)
Showing posts with label Cisco 3850. Show all posts
Showing posts with label Cisco 3850. Show all posts

Thursday, October 4, 2018

Cisco 3850 Layer 3 Egress WAN QoS

So I've been learning a lot about Quality of Service mechanisms and configuration lately.
One thing I've learned is to know how to access the Configuration Guide for the equipment I'm working with.  Many devices and code levels have different defaults and configuration statements for QoS, so being able to look up a particular gear's QoS configuration guide has proven essential.

For instance, here's the link to Cisco switches, where you can filter down to your model and software type for the relevent configuration guide:
https://www.cisco.com/c/en/us/support/switches/index.html

Another example, below is the link to the Catalyst 3850 series switch configuration guides and other documentation:

https://www.cisco.com/c/en/us/support/switches/catalyst-3850-series-switches/products-installation-and-configuration-guides-list.html

Now in the QoS e-course I'm watching from Cisco, they do emphasize to refer to switch documentation, configuration guide & release notes to know what QoS commands are supported.
They also went over some example caveats (of the Catalyst 3550 series at least) that I thought were interesting.  One caveat included: on Egress, you can only attach a policy-map that matches DSCP.

So, now, in configuring QoS on a Catalyst 3850, we configure the class-map, then the policy-map, then apply the policy-map to an interface.

See example Layer 3 Egress/WAN QoS policy configuration below:

1.  Configure class-map first (class-map matches the tags)


        class-map match-any VOICE-RTP              
              match dscp ef
        class-map match-any VIDEO-INTERACTIVE
              match dscp af41
              match dscp cs4
        class-map match-any CALL-SIGNALING
              match ip dscp cs3
              match ip dscp af31        
         class-map match-any SCAVENGER
              match ip dscp cs1

2.  Then Policy-map allocates percentage of bandwidth & reservations based on class
policy-map WAN-PRIMARY
        class VOICE-RTP
              priority level 1 percent 10

        class VIDEO-INTERACTIVE
              priority level 2 percent 20

        class CALL-SIGNALING
              bandwidth percent 5

        class SCAVENGER
              bandwidth percent 10

        class class-default
              shape average 9500000000***

Then Service-policy applies policy-map to interface

interface Gi1/0/1
     service-policy output WAN-PRIMARY


Note:
***shape average should be lowered by bandwidth minus 5 percent, in bits
for 1Gb it would be 950Mb 
the five percent was rule of thumb for 100Mb 
so took 1Gbps knocked it down to 950Mb 
for gig it's 950 million = 950,000,000 bits, 
and 95Mb shape average for 100Mb circuit


Bits Per Second Cheatsheet:


  • 1 Kbps = 1,000 bps    (one thousand bits per second)
  • 100 Kbps = 100,000 bps    (100 thousand)
  • 1 Mbps = 1,000,000 bps    (1 million)
  • 100 Mbps = 100,000,000 bps    (100 million)
  • 1 Gbps = 1,000,000,000 bps      (1 billion)
  • 10 Gbps = 10,000,000,000 bps    (10 billion)


Sources:


https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3850/software/release/3e/qos/configuration_guide/b_qos_3e_3850_cg/b_qos_3e_3850_cg_chapter_011.pdf



Thursday, June 14, 2018

3850 Switch Loses Config After Reload


Thanks to my mentor James Bond for solving this conundrum.

The Problem:

Switch has running-config saved to startup-config, but the switch seems to "lose" its config when it is reloaded, displaying the Automatic Switch Configuration option and coming up to the generic Switch> prompt.  Issuing the copy start run command successfully restores the running-configuration.

The switch was essentially booting into password recovery mode after each reload, where the running-configuration is blank.

#show version confirmed at the bottom that the configuration register was set to be 0x102

The Solution:

Boot into rommon (rommon is when you interrupt the boot loader and get to the Switch prompt and run the flash_init command) and remove the boot variable that is set to ignore the startup config.

  1. Boot into ROMMON mode
    1. Connect to the console of the switch
    2. Power off the switch
    3. While holding the MODE button down, restore power to the switch
    4. Keep pressing the MODE button and watch the console output
    5. After approx. 10-15 seconds, the switch should end up at the ROMMON/boot loader switch: prompt
    6. Release the MODE button
  2. Type command flash_init
  3. Type command set
  4. Look for if SWITCH_IGNORE_STARTUP_CFG bit is set to 1
  5. Type command unset SWITCH_IGNORE_STARTUP_CFG
  6. Reload the switch

Example set output:


ABNORMAL_RESET_COUNT=0
ASIC_PCI_RESET=1
BOOT=flash:packages.conf
BOOT_LOADER_UPGRADE_DISABLE=1
BSI=0
CFG_MODEL_NUM=WS-C3850-48P-S
CLEI_CODE_NUMBER=IPM8E00ARB
CSR_PCIERST_DISCONNECTED=yes
DC_COPY=yes
D_STACK_DOMAIN_NUM=1
ECI_CODE_NUMBER=468919
LICENSE_BOOT_LEVEL=ipbasek9,all:ngwc;
MAC_ADDR=00:EB:D5:94:72:80
MANUAL_BOOT=no
MODEL_NUM=WS-C3850-48P
MODEL_REVISION_NUM=AA0
MOTHERBOARD_ASSEMBLY_NUM=73-15800-07
MOTHERBOARD_REVISION_NUM=B0
MOTHERBOARD_SERIAL_NUM=FOC202114XB
POE1_ASSEMBLY_NUM=73-16439-01
POE1_REVISION_NUM=A0
POE1_SERIAL_NUM=FOC202071F2
POE2_ASSEMBLY_NUM=73-16439-01
POE2_REVISION_NUM=A0
POE2_SERIAL_NUM=FOC202071CT
RANDOM_NUM=966545832
RECOVERY_BUNDLE=sda9:cat3k_caa-recovery.bin
STKPWR_ASSEMBLY_NUM=73-11956-08
STKPWR_REVISION_NUM=B0
STKPWR_SERIAL_NUM=FOC20216XC4
SWITCH_IGNORE_STARTUP_CFG=1                   <<<<<<<   This Boot variable means every time the 
SWITCH_NUMBER=1                                                                switch reboots to ignore the config in NVRAM
SYSTEM_SERIAL_NUM=FCW2021C1US
TAN_NUM=800-43041-02
TAN_REVISION_NUMBER=C0
TEMPLATE=advanced
TERMLINES=0
USB_ASSEMBLY_NUM=73-16576-01
USB_REVISION_NUM=A0
USB_SERIAL_NUM=FOC20212NWT
VERSION_ID=V06

unset  SWITCH_IGNORE_STARTUP_CFG=1               <<<<<<<<<<  unset the bootvar and reload


Alternatively, according to Cisco password recovery documentation, you may also be able to run the command SWITCH_IGNORE_STARTUP_CFG=0


Sources:

How to Boot 3850 in ROMMON Mode:

Why SW-3850 loses config after reload even though config is saved?

Lost or Forgotten Password on a Switch

Recovering from a Lost or Forgotten Password