Configuring a catalyst switch
1 |
|
weight: 999 url: "/Configuration_d'un_Switch_Catalyst/" title: "Configuring a Catalyst Switch" icon: "article" description: "Learn how to configure and manage Cisco Catalyst switches through console, firmware updates, VLAN setup, and more." categories: ["Network", "Cisco", "Infrastructure"] date: "2007-11-20T14:57:00+01:00" lastmod: "2007-11-20T14:57:00+01:00" tags: ["Cisco", "Switch", "Catalyst", "VLAN", "Networking"] toc: true
Connections
Start by connecting the serial port on the PC side and the console port on the switch.
Connection
Launch HyperTerminal and choose a connection on com1 port, or another com port depending on the PC configuration. You need to choose 9600 Bauds The rest doesn't matter much...
What You Need to Know
When launching the terminal, you'll determine several things:
- The router name (for example: swpar5)
- A secret
- A password
- A virtual terminal password
Then you need to switch to "enable" mode to be able to change the configuration
The prompt changes from swpar5> to swpar5#
In this mode, you can view the router configuration by typing
Resources
If you want to modify this configuration, you need to switch to "conf" mode
Result: the prompt changes to swpar5(config)#
The "t" is to indicate that you want to configure the router in terminal mode.
Configuring the IP Address of an Interface
By running sh run, you can see the different interfaces, like this:
Here we see an interface named Vlan1 that has no IP address, and we notice that the two lines that follow are indented with a space, so we can modify them by typing, in "configuration" mode:
The prompt then changes to swpar5(config-if)# Then type
Then return to enable mode (with the prompt swpar5#) and type:
to save
From there, you can access the router's web interface by typing
Firmware Update
Checking Firmware Version
Type
Downloading the Latest Version
Go to cisco.fr --> support --> download software --> software advisor --> Find software compatible with my hardware --> Select your hardware configuration manually --> then choose the router model and download the archive. You have the choice between software that supports CRYPTO (secure https connection) or not.
Installing the New Firmware
It's a .tar archive that needs to be loaded from the router's web interface. Everything is automatic.
Configuring the VTP Domain
Configuring an Interface
Setting trunk mode allows multiple VLANs to pass through a single port between multiple switches:
Creating a VLAN
Switch to configuration mode, and type
where "x" is an "id" for the VLAN (a number), then choose a name for this VLAN. To do this, in conf mode, type "vlan x"
You can verify the VLAN configuration with the command
Once the VLAN is created, it's better to put it in "no-shutdown" so that it doesn't automatically deactivate:
Assigning an Interface to a VLAN
Enter configuration mode and choose an interface, for example "interface FastEthernet0/1", and type
Graphical Mode
Once you have assigned an IP address, you can access the switch's graphical interface via http. When asked for a username and password, you only need to enter the password that you set at the beginning.