I have a Cisco 2960S POE 24 port switch. The idea is to use it for home security cameras with POE.
It is my first time using Cisco CLI so need a bit of help.
The current wire path is:
Internet Service Provider => Asus Router (192.168.29.1) => 2960S ==> 2pcs , one desktop and one dedicated BI + cameras
I plugged the console cable in and used SSH over the serial port to connect and was able to login to the switch (i was told not to use vlan 1, so used vlan2 instead??)
I followed these commands:
Next I added username/password and gave level 15 privilege
And then I setup SSH
Now for some reason I am unable to connect to the ssh server from any PC on the switch. I am wondering if it has something to do with vlan 1, vlan 2 etc?
My plan eventually (is this the correct ideas?) will be to have a vlan with the security cameras and the BI pc (which will be recording the camera output) and a second vlan for other computers on the network/internet
I do want to be able to access the BI from the other PC as well as remotely from smart phones and be able to get alerts
I tried creating some other vlans (1, 2, 4)... I tried to give vlan 1 and ip of 10.0.0.2 - still no luck on ssh or pinging
Here is my version output:
And running-config:
***
I'm not sure why I picked 10.0.0.2 for vlan1 and 192.168.1.200 for vlan2.
So in summary trying to get SSH to work (currently can't even ping the switch) and would need some help setting up my planned VLAN
Thanks for your help!
It is my first time using Cisco CLI so need a bit of help.
The current wire path is:
Internet Service Provider => Asus Router (192.168.29.1) => 2960S ==> 2pcs , one desktop and one dedicated BI + cameras
I plugged the console cable in and used SSH over the serial port to connect and was able to login to the switch (i was told not to use vlan 1, so used vlan2 instead??)
I followed these commands:
Code:
Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname CiscoSwitch
CiscoSwitch(config)#ip default-gateway 192.168.29.1
CiscoSwitch(config)#interface vlan 2
CiscoSwitch(config-if)#ip address 192.168.1.200 255.255.255.0
CiscoSwitch(config-if)#no shutdown
CiscoSwitch(config-if)#end
CiscoSwitch# *Mar 1 00:03:44.261: %SYS-5-CONFIG_I: Configured from console by console
CiscoSwitch#copy running-config startup-config Destination filename [startup-config]?
Building configuration... [OK] 0 bytes copied in 1.141 secs (0 bytes/sec)
Code:
CiscoSwitch(config)#username sam988 secret **
CiscoSwitch(config)#username sam988 privilege 15
CiscoSwitch(config)#end
CiscoSwitch#copy running-config startup-config
Code:
CiscoSwitch>enable
CiscoSwitch#configure terminal Enter configuration commands, one per line. End with CNTL/Z.
CiscoSwitch(config)#ip domain-name myhome.local
CiscoSwitch(config)#crypto key generate rsa The name for the keys will be: CiscoSwitch.myhome.local
Choose the size of the key modulus in the range of 360 to 2048 for your General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes. How many bits in the modulus [512]: 2048 % Generating 2048 bit RSA keys, keys will be non-exportable...[OK]
CiscoSwitch(config)#ip ssh version 2
CiscoSwitch(config)#line vty 0 15
CiscoSwitch(config-line)#transport input ssh
CiscoSwitch(config-line)#login local
CiscoSwitch(config-line)#end
CiscoSwitch#copy running-config startup-config
Destination filename [startup-config]? Building configuration... [OK]
0 bytes copied in 1.158 secs (0 bytes/sec)
My plan eventually (is this the correct ideas?) will be to have a vlan with the security cameras and the BI pc (which will be recording the camera output) and a second vlan for other computers on the network/internet
I do want to be able to access the BI from the other PC as well as remotely from smart phones and be able to get alerts
I tried creating some other vlans (1, 2, 4)... I tried to give vlan 1 and ip of 10.0.0.2 - still no luck on ssh or pinging
Here is my version output:
Code:
Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 15.0(2)SE6, RELEASE SOFTWARE (fc2)
Technical Support: Support - Cisco Support - Software Downloads, Product Documentation, Tools, and Cases
Copyright (c) 1986-2014 by Cisco Systems, Inc.
Compiled Wed 09-Apr-14 03:09 by prod_rel_team
ROM: Bootstrap program is C2960S board boot loader
BOOTLDR: C2960S Boot Loader (C2960S-HBOOT-M) Version 12.2(55r)SE, RELEASE SOFTWARE (fc1)
CiscoSwitch uptime is 19 hours, 1 minute
System returned to ROM by power-on
System restarted at 01:27:24 UTC Wed Mar 30 2011
System image file is "flash:/c2960s-universalk9-mz.150-2.SE6.bin"
Code:
CiscoSwitch#show running-config
Building configuration...
Current configuration : 2024 bytes
!
! Last configuration change at 19:56:41 UTC Wed Mar 30 2011
! NVRAM config last updated at 19:57:07 UTC Wed Mar 30 2011
!
version 15.0
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname CiscoSwitch
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$KxKO$nRqHc7xEI9h8Mb2AjOCYs/
!
username sam988 privilege 15 secret 5 ****
no aaa new-model
switch 1 provision ws-c2960s-24ps-l
!
!
ip domain-name myhome.local
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
!
!
!
!
!
!
vlan internal allocation policy ascending
!
ip ssh version 2
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0
no ip address
!
interface GigabitEthernet1/0/1
!
interface GigabitEthernet1/0/2
!
interface GigabitEthernet1/0/3
!
interface GigabitEthernet1/0/4
!
interface GigabitEthernet1/0/5
!
interface GigabitEthernet1/0/6
!
interface GigabitEthernet1/0/7
!
interface GigabitEthernet1/0/8
!
interface GigabitEthernet1/0/9
!
interface GigabitEthernet1/0/10
!
interface GigabitEthernet1/0/11
!
interface GigabitEthernet1/0/12
!
interface GigabitEthernet1/0/13
!
interface GigabitEthernet1/0/14
!
interface GigabitEthernet1/0/15
!
interface GigabitEthernet1/0/16
!
interface GigabitEthernet1/0/17
!
interface GigabitEthernet1/0/18
!
interface GigabitEthernet1/0/19
!
interface GigabitEthernet1/0/20
!
interface GigabitEthernet1/0/21
!
interface GigabitEthernet1/0/22
!
interface GigabitEthernet1/0/23
!
interface GigabitEthernet1/0/24
!
interface GigabitEthernet1/0/25
!
interface GigabitEthernet1/0/26
!
interface GigabitEthernet1/0/27
!
interface GigabitEthernet1/0/28
!
interface Vlan1
ip address 10.0.0.2 255.255.255.0
!
interface Vlan2
ip address 192.168.1.200 255.255.255.0
!
ip default-gateway 192.168.29.1
ip http server
ip http secure-server
!
!
!
!
line con 0
line vty 0 4
login local
transport input ssh
line vty 5 15
login local
transport input ssh
!
end
***
I'm not sure why I picked 10.0.0.2 for vlan1 and 192.168.1.200 for vlan2.
So in summary trying to get SSH to work (currently can't even ping the switch) and would need some help setting up my planned VLAN
Thanks for your help!