Cisco Switch 2950 command list

Posted in: DIY Servers |

Cisco IOS Commands

aaa authentication dot1x

access-list (IP extended)

access-list (IP standard)

boot private-config-file

channel-group

class

class-map

clear interface

clear mac address-table

clear pagp

clear port-security dynamic

clear spanning-tree detected-protocols

clear vmps statistics

clear vtp counters

cluster commander-address

cluster discovery hop-count

cluster enable

cluster holdtime

cluster management-vlan

cluster member

cluster run

cluster standby-group

cluster timer

define interface-range

delete

deny (access-list configuration)

deny (MAC access-list configuration)

dot1x default

dot1x max-req

dot1x multiple-hosts

dot1x port-control

dot1x re-authenticate

dot1x re-authentication

dot1x timeout quiet-period

dot1x timeout re-authperiod

dot1x timeout tx-period

duplex

errdisable detect

errdisable recovery

flowcontrol

interface

interface port-channel

interface range

ip access-group

ip access-list

ip address

ip igmp snooping

ip igmp snooping vlan

ip igmp snooping vlan immediate-leave

ip igmp snooping vlan mrouter

ip igmp snooping vlan static

mac access-group

mac access-list extended

mac address-table aging-time

mac address-table notification

mac address-table static

match

mls qos cos

mls qos map

mls qos trust

monitor session

mvr

mvr immediate

mvr type

mvr vlan group

pagp learn-method

pagp port-priority

permit (access-list configuration)

permit (MAC access-list configuration)

police

policy-map

port-channel load-balance
(more…)

Catalyst 2950 and 2955 Switch Debug Command List

Posted in: DIY Servers |

debug auto qos

debug dot1x

debug etherchannel

debug lre

debug pagp

debug pm

debug spanning-tree

debug spanning-tree backbonefast

debug spanning-tree bpdu

debug spanning-tree bpdu-opt

debug spanning-tree mstp

debug spanning-tree switch

debug spanning-tree uplinkfast

debug switch dhcp

debug sw-vlan

debug sw-vlan ifs

debug sw-vlan notification

debug sw-vlan vtp

debug udld

Cisco 2950 password recovery help

Posted in: DIY Servers |

#

C2955 Boot Loader (C2955-HBOOT-M) Version 12.1(0.0.514), CISCO DEVELOPMENT TEST
VERSION
Compiled Fri 13-Dec-02 17:38 by madison
WS-C2955T-12 starting…
Base ethernet MAC Address: 00:0b:be:b6:ee:00
Xmodem file system is available.
Initializing Flash…
flashfs[0]: 19 files, 2 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 4510720
flashfs[0]: Bytes available: 3230720
flashfs[0]: flashfs fsck took 7 seconds.
…done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4

*** The system will autoboot in 15 seconds ***
Send break character to prevent autobooting.

!— Wait until you see this message before
!— you issue the break sequence.
!— Ctrl+Break is entered using Hyperterm.

The system has been interrupted prior to initializing the flash file system to finish
loading the operating system software:

flash_init
load_helper
boot
switch:

#

Issue the flash_init command.

switch: flash_init
Initializing Flash…
flashfs[0]: 143 files, 4 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 3612672
flashfs[0]: Bytes used: 2729472
flashfs[0]: Bytes available: 883200
flashfs[0]: flashfs fsck took 86 seconds
….done Initializing Flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
switch:

!— This output is from a 2900XL switch. Output from
!— other switches will vary slightly.

#

Issue the load_helper command.

switch: load_helper
switch:

#

Issue the dir flash: command.

Note: Make sure to type a colon “:” after the dir flash.

The switch file system is displayed:

switch: dir flash:
Directory of flash:/
2    -rwx  1803357   <date>               c3500xl-c3h2s-mz.120-5.WC7.bin

!— This is the current version of software.

4    -rwx  1131      <date>               config.text

!— This is the configuration file.

5    -rwx  109       <date>               info
6    -rwx  389       <date>               env_vars
7    drwx  640       <date>               html
18   -rwx  109       <date>               info.ver
403968 bytes available (3208704 bytes used)
switch:

!— This output is from a 3500XL switch. Output from
!— other switches will vary slightly.

#

Type rename flash:config.text flash:config.old to rename the configuration file.

switch: rename flash:config.text flash:config.old
switch:

!— The config.text file contains the password
!— definition.

#

Issue the boot command to boot the system.

switch: boot
Loading “flash:c3500xl-c3h2s-mz.120-5.WC7.bin”…###############################
################################################################################
######################################################################
File “flash:c3500xl-c3h2s-mz.120-5.WC7.bin” uncompressed and installed, entry po
int: 0×3000
executing…

!— Output suppressed.
!— This output is from a 3500XL switch. Output from other switches
!— will vary slightly.

#

Enter “n” at the prompt to abort the initial configuration dialog.

— System Configuration Dialog —
At any point you may enter a question mark ‘?’ for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets ‘[]‘.
Continue with configuration dialog? [yes/no]: n

!— Type “n” for no.

Press RETURN to get started.

!— Press Return or Enter.

Switch>

!— The Switch> prompt is displayed.

#

At the switch prompt, type en to enter enable mode.

Switch>en
Switch#

#

Type rename flash:config.old flash:config.text to rename the configuration file with its original name.

Switch#rename flash:config.old flash:config.text
Destination filename [config.text]

!— Press Return or Enter.

Switch#

#

Copy the configuration file into memory.

Switch#copy flash:config.text system:running-config
Destination filename [running-config]?

!— Press Return or Enter.

1131 bytes copied in 0.760 secs
Sw1#

The configuration file is now reloaded.
#

Overwrite the current passwords that you do not know. Choose a strong password with at least one capital letter, one number, and one special character.

Note: Overwrite the passwords which are necessary. You need not overwrite all of the mentioned passwords.

Sw1# conf t

!— To overwrite existing secret password

Sw1(config)#enable secret <new_secret_password>

!— To overwrite existing enable password

Sw1(config)#enable password <new_enable_password>

!— To overwrite existing vty password

Sw1(config)#line vty 0 15
Sw1(config-line)#password <new_vty_password>

Sw1(config-line)#login

!— To overwrite existing console password

Sw1(config-line)#line con 0
Sw1(config-line)#password <new_console_password>

#

Write the running configuration to the configuration file with the write memory command.

Sw1#write memory
Building configuration…
[OK]
Sw1#

How To Configure Cisco Router to Work With Cable Internet

Posted in: How to? |

If you just bought your first used Cisco router, I bet one thing you want to immediately do is connecting the Cisco router to the cable internet.
I know I did, I have cable internet for my home network. Previously I used Linksys router to get my LAN connected to the internet.

Configuring Cisco router to connect to the cable internet is easy work, even if you know only the basic configuration stuff in Cisco.

Configure IP Address of the Router’s Interfaces

The router will get the ip configuration from DHCP server of the ISP, the Ethernet 0/0 port I use as the exit point to the internet.
The Ethernet 0/1 will be the port where my computer is connected. I’m going to set private IP address as the gateway for the computer.

Configure Routing

This example only shows the basic static routing, the router will send all request from the client (from port Ethernet 0/1) to the port Ethernet 0/0.

We need to first set the IP address of the router’s interfaces to begin configuring Cisco router to work with cable internet.

If you configure the router for the first time, connect to it using the console cable.

the interface ethernet 0/0 is connected to the cable modem and interface ethernet 0/1 connected to my PC.

Ethernet 0/0 is using configuration got from the ISP so we’ll set it to receive IP address from ISP’s DHCP server. Always remember to give no shutdown command on the interface:

router> enable
router# configure terminal
router (config) # interface ethernet 0/0
router (config-if)# ip address dhcp
router (config-if)# no shutdown

Now to set the Ethernet 0/1 port as the picture above, we can just jump right to the interface 0/1 configuration mode:

router (config-if)# interface ethernet 0/1
router (config-if)# ip address 192.168.1.1 255.255.255.0
router (config-if)# no shutdown

You have successfully configure IP addresses to your interfaces, you can check it using the following command:

router# show ip interface brief

Interface IP-Address OK? Method Status Protocol
Ethernet0 xxx.xxx.xxx.xxx YES DHCP up up
Ethernet1 192.168.1.1 YES NVRAM up up

The show ip interface brief is a very useful command, you would want to use it to check the status of your interfaces.

The interface column shows you all the interfaces you have, the IP-Address is of course shows the addresses of the respective interfaces.

The Method column shows whether the addresses given by a DHCP server or you configured it yourself (stored in NVRAM) or it can also shows TFTP – configuration from TFTP server.

When you finished this configuration, your router will be receiving IP address on interface 0/0 from DHCP server of the ISP, and the interface 0/1 will be ready to communicate with network 192.168.1.0

Setting Cisco Router as DHCP Server

This option really is optional if you want to set Cisco router to work with cable internet, but this is a good chance to add your skill in configuring Cisco devices.

Now it’s time to configure your router as DHCP server.

To set a DHCP server, you will configure a pool of network IP addresses that you want to give out to the clients (PC, printer, NAS, etc).
I want to give out the IP addresses from the network 192.168.1.0.

First thing you need to configure is to exclude the IP addresses that you dont want to give out.
For example, I’ve configured the router interface 0/1 to be 192.168.1.1, then I need to exclude 192.168.1.1 so the router won’t give out this address.
You can configure the exclusion in the router’s global configuration mode:

router> enable
router# configure terminal
router (config)# ip dhcp excluded-address 192.168.1.1

This command is very useful especially if you need to exclude a range of IP addresses, if you need to exclude say 192.168.1.1 until 192.168.1.10 you can do it like this:

router (config)# ip dhcp excluded-address 192.168.1.1 192.168.1.10

After the ip dhcp excluded-address we give the low IP address and the high IP address, this way your router not give IP addresses from 192.168.1.1 to 192.168.1.10, the router will start giving out address from 192.168.1.11 and so on.

(more…)

New Parts added to my home server Cisco 3745 router and HP dc5100

Posted in: server |

This is a list of new parts or components I just added to my home server network.

Cable to Cable Modem, From Cable Modem Cat5 to Cisco 3745 Router, Out the Cisco 3745 Router into Cisco 2950 Switch, Out from the Switch cat5 into Linksys WRT54GS port 1 used as wireless Access Point.

1. Cisco 3745 Router

Form Factor 19” and 23” Rack
Mount (2 and 4 RU)
DRAM (default) 256 MB
DRAM (maximum) Up to 512 MB (3745)
Flash (default) 32 MB
Flash (maximum) 128 MB
Onboard DSP Slot 0 Up to 4
Onboard AIM Slot 2 2
Support for High Speed WICs (HWICs)
or Enhanced Network Modules No
LAN Ports 2 10/100
Integrated Hardware-based Encryption Optional
Integrated Inline Power/PoE Support Yes (No PoE)
USB Ports (v1.1) No
Console Port (Up to 115.2 Kbps) 1
Auxiliary Port (Up to 115.2 Kbps) 1

Cisco 3745 Router view

Cisco 3745 Router view

Cisco 3745 Router back view

Cisco 3745 Router back view

1 HP  LCD L1706

1 HP dc5100 PC

  • Intel® Pentium® 4 Processor with HT Technology1 and Celeron1™ D processors
  • Operating Systems:
    • Genuine Windows XP Professional
    • Genuine Windows XP Home
    • SuSE Linux Personal 9.2 OEM (delivered on CDs with system, not pre-installed) – WW except Asia
    • Turbolinux 10D (delivered on CDs with system, not pre-installed)- China only
    • FreeDOS
  • Intel 915GV Express chipset with Integrated Intel Graphics Media Accelerator 900
  • DDR2 Synch DRAM PC2-3200 (DDR2-400) Memory
  • Integrated Broadcom BCM5751 NetXtreme Gigabit Ethernet
  • Dual Channel Memory with 4 available color coded DIMM slots
  • Pre-loaded manageability tools
  • Serial ATA Hard Drives
  • SoundMax Digital AC97 Integrated Audio with internal speaker
  • Color coded cables for ease of use
  • Basic serviceability with tool-less covers and drives
  • In compliance with the Restrictions of Hazardous Substances (RoHS) directive
  • In compliance with the IEEE 1680 (EPEAT) standard at the SILVER level
  • Energy Star compliance with energy-saving features
HP dc5100 computer

HP dc5100 computer

1 Opti-UPS Enhanced Series 1500c

*  Regulate fluctuate voltages with AVR
* More outlets to back-up and/or protect more peripherals against counterparts
* Clear status LED indicators and audible alarms
* Easy overloading recovery with a simple push circuit breaker
* High surge energy rating against counterparts for the greatest security to surges and spikes
* Internet/LAN (RJ11/RJ45) surge protection
* RS232 or USB version
* User replaceable battery
* Free UPS management software with multiple OS compatibility

Model Name      ES1500C
Topology     Line-Interactive
On-battery Output Waveform     Step Wave
Nominal Input Voltage 100/110/120V or 220/230/240V
Nominal Input Frequency 50/60Hz Auto Sensing
Input Voltage Range
Rated Voltage +/- 25%
Automatic Voltage Regulation (AVR) Yes
Protected Outlets 8 Battery backup(US) 8 Battery backup(IEC)
Maximum Capacity(VA/W) 1400VA/980W
User Replaceable Battery     12V/34AH *2
Recharge Time to 90%     <4 Hours
Output Voltage Regulation Rated Voltage +/-5%
Communication Port     RS232 / USB Port (optional)
Surge Energy Rating     1050 Joules
EMI/RFI Compatibility     FCC Class B, BSMI(1X0V); CE(2X0)
Safety
UL/cUL(1X0V), TUV, C-Tick, A-Tick(2X0) Dimensions (DxWxH): (mm/in) Physical 378×140x201 / 14.8×5.5×7.9
Packing     487×270x326 / 19.2×10.6×12.8
Weight (Kg/lbs):Net     16.3Kg/35.9lbs Gross     17.5Kg/38.5lbs

UPC Power

UPS Power 1500c

1 Linksys WRT54GS

Linksys wrt54gs used as wireless access point

Linksys wrt54gs used as wireless access point