Aug 20

For the initial configuration of the Switch using the console port connected to a console or rollover cable and RJ-45 to DB-9 COM1 port to connect to the computer. This must have a terminal emulation software such as HyperTerminal.

The configuration parameters are:

The appropriate COM port
9600 baud
8 data bits
No parity
1 stop bit
No flow control

Naming and passwords

Assigning a unique name for Switch and passwords is done in global configuration mode, using the following commands:

Switch> enable
Switch # configure terminal
Switch (config) # hostname SW_MADRID
SW_MADRID (config) # enable password [enable name pass]
SW_MADRID (config) # enable secret [name of the enable secret]
SW_MADRID (config) # line console 0
SW_MADRID (config-line) # login
SW_MADRID (config-line) # password [pass name of the console]
SW_MADRID (config) # line vty 0 4
SW_MADRID (config-line) # login
SW_MADRID (config-line) # password [pass name of the telnet]

IP Address Assignment

To configure the IP address to a switch should be done on a vlan interface. By default the native vlan VLAN 1 is the switch by assigning an address to the interface vlan 1 be able to manage the device via telnet. If another interface is configured automatically vlan is void because the previous configuration only supports a single interface vlan.

In a 2950 switch:

SW_2950 (config) # interface vlan 1
SW_2950 (config-vlan) # ip address [ip address + mask]
SW_2950 (config-vlan) # no shutdown

If the switch needs to send information to a network other than the administration should set up a gateway:

SW_2950 (config) # ip default-gateway [gateway IP]
The elimination of the NVRAM configuration:

Switch # erase startup-config

Erasing the nvram filesystem will remove all files! Continue? [Confirm]

Erase of nvram: complete

Despite removing the NVRAM settings VLANs are not deleted because they are saved in a file in flash called VLAN.dat.

In a 1900 switch:

SW_1900 (config) # ip address [ip address + mask]
SW_1900 (config) # ip default-gateway [gateway IP]

The elimination of the NVRAM configuration:

Switch # delete nvram

The 1900 switch does not support telnet session.

Port settings:

Switch (config) # interface FastEthernet 0 / 1
Switch (config-if) # speed [10 | 100 | auto]
Switch (config-if) # duplex [full | half | auto]

Port security:

The switchport port-security command allows you to associate the first MAC address to that port:

Switch (config) # interface FastEthernet 0 / 1
Switch (config-if) # switchport port-security

The potential number of MAC addresses associated with port has a value between 1 and 132, the command switchport port-security maximun lets you set the maximum amount allowed.

The example illustrates the configuration of a port with 10 maximum possible MAC addresses.

Switch (config) # interface FastEthernet 0 / 1
Switch (config-if) # switchport port-security maximum 10

In the case of detecting any attempt of violation of the port can run the following command, making the port is automatically closed:

Switch (config-if) # switchport port-security violation
[Protect | restrict | shutdown]

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Designed By :Xperwebbuilder.com  All Right Reserved