# select a switch from cisco packet tracer and go into CLI
switch>show version
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA4, RELEASE SOFTWARE(fc1)
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 18-May-05 22:31 by jharirba
Image text-base: 0x80010000, data-base: 0x80562000
ROM: Bootstrap program is is C2950 boot loader
Switch uptime is 4 minutes, 8 seconds
System returned to ROM by power-on
Cisco WS-C2950T-24 (RC32300) processor (revision C0) with 21039K bytes of memory.
Processor board ID FHK0610Z0WC
Last reset from system-reset
Running Standard Image
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)
63488K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00E0.B00B.E1D0
Motherboard assembly number: 73-5781-09
Power supply part number: 34-0965-01
Motherboard serial number: FOC061004SZ
Power supply serial number: DAB0609127D
Model revision number: C0
Motherboard revision number: A0
Model number: WS-C2950T-24
System serial number: FHK0610Z0WC
Configuration register is 0xF
# become root
en
configure terminal
# show current config
Switch(config)#show run
^
% Invalid input detected at '^' marker
# Switch(config)# means "global config mode"
# exit this mode and run show run again
exit
Switch#show run
Building configuration...
Current configuration : 1175 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
!
interface FastEthernet0/2
tx-ring-limit 20
!
interface FastEthernet0/3
tx-ring-limit 20
!
interface FastEthernet0/4
tx-ring-limit 30
!
interface FastEthernet0/5
tx-ring-limit 30
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
switchport mode trunk
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
!
!
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
!
!
end
# back into global config mode
en
configure terminal
# put port 3 on vlan20
interface FastEthernet0/3
tx-ring-limit 20
# it can take a while for vlans to take effect in cisco packet tracer
# select port 1 to 10
# to configure all 10 ports at the same time
interface range fastEthernet 0/1 - 10
# disable ports 0 to 10
shutdown
# activate ports
no shutdown
# as 2950T has no "hello-time" option (it's sumulating pretty old hardware)
# can check via
spanning-tree 10 vlan ?
# emable the much better version of STP +much faster convergence (sec instead of ~30-50s)
spanning-tree mode rapid-pvst
# switches are sending a STP package broadcast every 2 sec which can spam the package list
# WARNING! this is only adviced if there is only 1 switch, if there are more, this will make problems
no spanning-tree vlan 10
- only together we can create a truly free world
- plz support dwaves to keep it up & running!
- (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
- really really hate advertisement
- contribute: whenever a solution was found, blog about it for others to find!
- talk about, recommend & link to this blog and articles
- thanks to all who contribute!