The most useful Cisco OS commands

X – port number

How to check configuration for specific port

sh run int f0/X  or show running-config interface fastEthernet 0/X

How to check all configuration 

show running-config

How to change description on port

enable

configure terminal

interfaces  fastEthernet 0/X

description MY_NEW_DESCRIPTION

How to set up Trunk( Allow few VLAN’s to access one port)

configure terminal
interface FastEthernet0/X
description MY_NAME

switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan MY_VLAN1,MY_VLAN2

end

How to setup a Native trunk and what is

Windows is not tagging Vlan so you would need to sometimes setup Native VLAN tagging so all the packets which are not tagged will be given this VLAN tag

configure terminal
interface FastEthernet0/X

switchport trunk native My-VLAN

How to save running configuration

enable

copy running-config startup-config

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s