This guide is structured to ensure clear communication of each necessary step for configuring a Cisco switch within GNS3, with a strong emphasis on the critical step of entering configuration mode.
- Entering Configuration Mode: The foundational step for any configuration task on the Cisco switch.
- Performing Configuration Tasks: Includes creating VLANs, assigning ports, etc.
- Exiting Configuration Mode: Necessary to apply the configurations made.
- Saving the Configurations: To ensure configurations persist after a system restart.
Before any configuration task, it is mandatory to enter the global configuration mode. Omitting this step will result in an inability to configure the switch.
SW1#configure terminal
SW1(config)#
After making your configuration changes, exit the configuration mode and save your changes to prevent loss:
SW1(config)#end
SW1#write
-
Enter Configuration Mode:
SW1#configure terminal
-
Create VLAN 99 and Name It:
SW1(config)#vlan 99 SW1(config-vlan)#name Management
-
Assign Port Gi1/8 to VLAN 99:
SW1(config)#interface gi1/8 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 99 SW1(config-if)#no shutdown
-
Exit Configuration Mode:
SW1(config-if)#end
-
Save Configuration:
SW1#write
- Display VLAN Information: Useful for verifying your VLAN configurations.
SW1#show vlan