Lab 2 1 - Brandon-Duffy/NET-330 GitHub Wiki
Commands to navigate different modes on a Cisco Switch/Router (enable, config t...) and how you know what mode you are in Commands to create VLANS on switch Setting access and trunk ports on switch Configure interfaces in "ranges"
- When first opening the CLI, input 'enter' to enable the console, then enter 'config t' to enter the configuration mode.
To understand what mode we are in, we can tell that from the beginning of the line:
- (config)# is the global config mode
- (config)# is the interface config mode
-
Creating VLANS on a switch is easy, go to the CLI tab and enter 'config t' to access the interface mode, then ender 'vlan 'x''. You can also name the VLAN with the command 'name 'vlan name''. This is able to be done with the GUI of the switch as well.
-
Setting access and trunk ports is simple, it can be done by the GUI as well by clicking on the VLAN DATABASE and switching the default port config of Access to Trunk.
- To change multiple ports at the same time, enter the switchs CLI and enter: 'interface FastEthernet / x', x for the port number, followed by the command 'switchport mode access/trunk'.
- Configure interfaces in ranges is similar to above:
- In the CLI of the switch, enter: 'interface range 'type'/start#-end#' Lab example: 'interface range FastEthernet 0/4 - 12 'switchport mode trunk' 'switchport trunk allowed vlan 100,110,130,140'