Playing with Cisco IOS

tested on old Catalyst 2950

VLAN setup

conf t
vlan 2
    name mgmt
    mtu 9000
    end
show vlan name mgmt

!vlan database
!show

Port setup

Access mode

conf t
interface gi0/X
    switchport access vlan XXX
    switchport mode access
    spanning-tree portfast
    end

show vlan id 2

Trunk mode – defining an access vlan right in front of the trunk helps to fallback there in case of troubles

conf t
interface giX/X
    switchport access vlan XXX
    switchport trunk encapsulation dot1q
    switchport mode trunk
    end

show interface giX/X trunk

Clear config on an interface

show interface fa0/2
default interface fa0/2

Ready to go

write memory
!copy running-config startup-config

Operations

see catalyst-ops

Resources

Cisco IOS https://en.wikipedia.org/wiki/Cisco_IOS

cli @cisco

IOS and Configuration Basics https://www.cisco.com/c/en/us/td/docs/switches/wan/mgx/mgx_8850/software/mgx_r3/rpm/rpm_r1-1/configuration/guide/appc.html

Cisco IOS Configuration Fundamentals Command Reference https://www.cisco.com/c/en/us/td/docs/ios/fundamentals/command/reference/cf_book/cf_s4.html

Cisco IOS Configuration Fundamentals Command Reference, Release 12.2 https://www.cisco.com/c/en/us/td/docs/ios/12_2/configfun/command/reference/ffun_r/frfusing.html

IOS and Configuration Basics https://www.cisco.com/c/en/us/td/docs/switches/wan/mgx/mgx_8850/software/mgx_r3/rpm/rpm_r1-1/configuration/guide/appc.html

Cisco IOS Configuration Fundamentals Command Reference https://www.cisco.com/c/en/us/td/docs/ios/fundamentals/command/reference/cf_book.html

Chapter: Basic Command-Line Interface Commands https://www.cisco.com/c/en/us/td/docs/ios/12_2/configfun/command/reference/ffun_r/frf001.html

Command References https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-15-2m-t/products-command-reference-list.html

CLI Reference Guide https://www.cisco.com/c/en/us/td/docs/security/esa/esa10-0/cli/b_CLI_Reference_Guide/b_CLI_Reference_Guide_chapter_010.html

Cisco IOS Interface Configuration Guide, Release 12.2 https://web.archive.org/web/20170422031731/http://www.cisco.com/c/en/us/td/docs/ios/12_2/interface/configuration/guide/finter_c/icfusing.html

cli @community

howto save Running Config File from CLI ? https://community.cisco.com/t5/other-network-architecture/howto-save-running-config-file-from-cli/td-p/362191 https://www.dummies.com/programming/networking/cisco/cisco-networking-configuration-saving/ https://serverfault.com/questions/559082/how-do-you-save-the-configuration-of-a-cisco-switch

cli @more

The Cisco Learning Network https://learningnetwork.cisco.com/s/

Cisco Courses https://networklessons.com/cisco

Introduction to Cisco IOS CLI (Command-Line Interface) https://networklessons.com/cisco/ccna-routing-switching-icnd1-100-105/introduction-cisco-ios-cli-command-line-interface

User Mode and Privileged Mode Security https://networklessons.com/cisco/ccna-routing-switching-icnd1-100-105/user-mode-and-privileged-mode-security

Self-Paced Lessons https://learningnetwork.cisco.com/community/learning_center/expert-level-training/ccie-routing-switching/self-paced-lessons

vlan @cisco

Catalyst 3560 Software Configuration Guide, Release 12.2(58)SE https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3560/software/release/12-2_58_se/configuration/guide/3560scg/swvlan.html

Configure Port to VLAN Interface Settings on a Switch through the CLI https://www.cisco.com/c/en/us/support/docs/smb/switches/cisco-small-business-300-series-managed-switches/smb5653-configure-port-to-vlan-interface-settings-on-a-switch-throug.html

Configuring VLANs https://www.cisco.com/c/en/us/td/docs/routers/ir910/software/release/1_0/configuration/guide/ir910scg/swvlan.pdf

Creating Ethernet VLANs on Catalyst Switches https://www.cisco.com/c/en/us/support/docs/lan-switching/vlan/10023-3.html

VLAN Configuration Guide, Cisco IOS Release 15.2(2)E (Catalyst 2960-X Switch) https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-2_2_e/vlan/configuration_guide/b_vlan_1522e_2960x_cg/b_vlan_152ex_2960-x_cg_chapter_011.html

vlan @community

vlan internal allocation policy ascending https://community.cisco.com/t5/routing/vlan-internal-allocation-policy-ascending/td-p/696546

Internal Vlan usage for routed port https://community.cisco.com/t5/routing/internal-vlan-usage-for-routed-port/td-p/1724721

Wireshark capture VLAN IDs https://community.cisco.com/t5/network-management/wireshark-capture-vlan-ids/td-p/3178402

How To Configure VLANs On the Catalyst Switches https://community.cisco.com/t5/networking-documents/how-to-configure-vlans-on-the-catalyst-switches/ta-p/3131780

Delete a configuration of an interface https://community.cisco.com/t5/switching/delete-a-configuration-of-an-interface/td-p/1495108 https://community.cisco.com/t5/switching/is-there-a-way-to-quickly-remove-config-from-a-range-of-ports/td-p/2024486 https://community.cisco.com/t5/switching/clear-config-interface/td-p/1478260 https://community.cisco.com/t5/switching/clear-the-config-off-an-interface/td-p/1042596

vlan @more

VLAN analysis With Wireshark https://www.youtube.com/watch?v=CSUuEnYEwMQ

VLAN range 1006-1024 https://learningnetwork.cisco.com/thread/118672

Creating a VLAN for Cisco Networking https://www.dummies.com/programming/networking/creating-a-vlan-for-cisco-networking/


GUIDES | LECTURES | BENCHMARKS | SMTP HEALTH