12-02-2021 08:20 PM
Hi guys, Im learning to work with cisco switch, this is my scenario:
vlan 10 computers
IP: 192.168.1.10 255.255.255.0
Gateway 192.168.1.1
router is 192.168.1.1
can access internet and devices and pinging normal.
getting IP from DCHP on router.
Vlan 20 cameras
IP 192.168.188.30
cameras are IP static, but I can't ping any device in the same vlan or other camera with static ip.
from console I can ping any device in vlan 10, or gateway and 8.8.8.8 can I get some guidance how to configure to learn
this is for setup a NVR with PoE cameras and computer in different vlan.
NVR IP 192.168.1.6
cameras IP: 192.168.188.2-24
12-05-2021 04:02 PM
I tried before IP ROUTING but show me an error:
SW01(config)#ip-routing
^
% Invalid input detected at '^' marker.
any suggestion?
This are the choices when I do ip ?:
SW01(config)#ip ?
Global IP configuration subcommands:
access-list Named access-list
accounting-list Select hosts for which IP accounting information is
kept
accounting-threshold Sets the maximum number of accounting entries
accounting-transits Sets the maximum number of transit entries
address-pool Specify default IP address pooling mechanism
admission Network Admission Control (NAC)
alias Alias an IP address to a TCP port
arp IP ARP global configuration
default-gateway Specify default gateway (if not routing IP)
device Device tracking
dhcp Configure DHCP server and relay parameters
dhcp-client Configure parameters for DHCP client operation
dhcp-server Specify address of DHCP server to use
domain IP DNS Resolver
domain-list Domain name to complete unqualified host names.
domain-lookup Enable IP Domain Name System hostname translation
domain-name Define the default domain name
finger finger server
flow-aggregation Configure flow aggregation
flow-cache Configure netflow cache parameters
flow-capture Capture additional netflow information
flow-egress Configure netflow egress
flow-export Specify host/port to send flow statistics
flow-top-talkers Configure netflow top talkers
ftp FTP configuration commands
gdp Router discovery mechanism
gratuitous-arps Generate gratuitous ARPs for PPP/SLIP peer addresses
host Add an entry to the ip hostname table
host-routing Enable host-based routing (proxy ARP and redirect)
hostname Configure hostname types
hp-host Enable the HP proxy probe service
http HTTP server configuration
icmp ICMP options
igmp IGMP global configuration
local Specify local options
name-server Specify address of name server to use
options IP Options treatment
port-map Port to application mapping (PAM) configuration
commands
radius RADIUS configuration commands
rcmd Rcmd commands
reflexive-list Reflexive access list
scp Scp commands
security Specify system wide security information
sla IP Service Level Agreement
source IP source
source-route Process packets with source routing header options
ssh Configure ssh options
sticky-arp Allow the creation of sticky ARP entries
subnet-zero Allow 'subnet zero' subnets
tacacs TACACS configuration commands
tcp Global TCP parameters
telnet Specify telnet options
tftp tftp configuration commands
verify URPF SNMP trap and IP packet header validation commands
12-03-2021 05:41 PM
Can you post-show run from switch?
12-04-2021 11:13 AM
Thanks for the additional information. There are 2 very important statements in that:
also cameras just have IP and subnet but no gateway, and NVR is connected in VLAN 10
all cameras were connected before thru NVR directly
If the cameras were connected to NVR directly then there was no need for a gateway. Now that NVR is not in the same subnet/same vlan then a gateway is needed. If the cameras do not have a gateway then they are not able to communicate with remote subnets.
12-05-2021 12:10 PM
12-05-2021 04:09 PM
12-06-2021 08:17 AM
There is a very simple error in syntax. You entered
ip-routing
It should have been
ip routing
Give that a try and let us know the results.
12-08-2021 04:27 PM
Well actually I typed correctly and did not work, I have been reading and apparently Catalyst 2960s don't support that option of IP ROUTING or the firmware version perhaps, can you clarify that. I still have the issue
12-08-2021 07:42 PM - edited 12-08-2021 07:43 PM
Can you post show version or show license
Try below : (not sure is the same case with 15.X IOS)
The switch supports 16 static routes (including user-configured routes and the default route) and any directly connected routes and default routes for the management interface. The switch can have an IP address assigned to each SVI. Before enabling routing, enter the sdm prefer lanbase-routing global configuration command and reload the switch.
show sdm prefer
12-08-2021 11:55 PM
The output of on line help certainly indicates that ip routing is not supported on this switch. The suggestion of
sum prefer
is interesting. If
sdm prefer lanbase-routing
is available it would be interesting to see if it changes support for routing.
12-09-2021 05:26 AM
this option is available:
I applied:
what this command do:?
SW01(config)#sdm prefer lanbase-routing
Changes to the running SDM preferences have been stored, but cannot take effect
until the next reload.
Use 'show sdm prefer' to see what SDM preference is currently active.
12-09-2021 06:04 AM
Hello,
what device is the switch connected to ?
PC/NVR --> Switch --> Router --> Internet
The 'Router' or whatever is connected directly to the Internet, which type/model is that ?
12-09-2021 07:30 AM
Thank you for following the suggestion to change the sdm template. I am a bit concerned about this part of the output "The selected template optimizes the resources in the switch to support this level of features for 0 routed interfaces and 255 VLANs." I had hoped to see a number greater than zero for routed interfaces.
If you use on line help for ip ?, does the output indicate that ip routing is an option?
12-09-2021 07:04 PM
Router is a Netgear AC3200 model 8000
12-09-2021 11:37 PM
Thanks for the update. It is good to know that you are now able to configure ip routing. This should enable devices in vlan 10 and vlan 20 to communicate with each other. Can you verify whether this does work or not?
The config uses the command default-gateway to define the next hop for forwarding traffic to outside destinations. That works while the switch is operating as layer 2 switch. Now that ip routing is enabled that command is ignored. You should configure
ip route 0.0.0.0 0.0.0.0 192.168.1.1
as its replacement.
12-11-2021 09:26 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide