cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1101
Views
0
Helpful
5
Replies

Cannot access NVR from a subnet through cisco 4321

mmunoz2000
Level 1
Level 1

Hello Everyone,

 

A month ago I had a big problem with an old router we had in our network (Cisco 1841), and we decided to replace it with a Cisco 4321. I'm not a super expert, but I can manage to put some configuration as long as I understand what I'm doing.

 

I've managed to configure 3 VLANs for the phone system, data, and cameras, and everything seems to be working as expected. There are still some issues that need to be addressed such as not using the native VLAN 1 for data, but other than that things are working fine.

 

My configuration is as follows:

WAN connected to Firewall

Firewall on 10.1.1.2

Router on 10.1.1.1

 

Router has 3 VLANS + native

VLAN 1 = native/Data

VLAN 1010 = Phone system

VLAN 2040 = Empty (planning to move data VLAN here)

VLAN 3040 = Cameras

 

The problem I have is that I have an NVR in the Cameras VLAN 3040 and I cannot seem to reach it with the camera's software from the data VLAN. I can reach the cameras connected to the NVR, and I can ping the NVR, but I cannot make the camera software to connect to the NVR directly from the data VLAN.

 

If I place the NVR on the data VLAN, it works perfectly, but I want to have a separate VLAN for the cameras.

 

I've been doing some research and apparently I need to do some port forwarding in the router, but I can't find the proper way of doing it.

 

The NVR has the IP 192.168.160.15

The client computer I'm using to access it has the IP 192.168.168.220

 

Here is my router's configuration:

Building configuration...


Current configuration : 2155 bytes
!
!
!
version 15.5
service timestamps debug datetime msec
service timestamps log datetime msec
no platform punt-keepalive disable-kernel-core
!
hostname OUI
!
boot-start-marker
boot-end-marker
!
!
vrf definition Mgmt-intf
!
address-family ipv4
exit-address-family
!
address-family ipv6
exit-address-family
!
!
aaa new-model
!
!
!
!
!
!
!
!
aaa session-id common
!
!
!
!
!
!
!
!
!
!
!

 

!
!
!
!
!
!
!
!
!
!
subscriber templating
multilink bundle-name authenticated
!
!
!
!
!
spanning-tree extend system-id
!
!
redundancy
mode none
!
!
vlan internal allocation policy ascending
!
vlan 1010,2040,3040
!
!
!
!
!
!
interface GigabitEthernet0/0/0
no ip address
negotiation auto
!
interface GigabitEthernet0/0/0.1
encapsulation dot1Q 1 native
ip address 192.168.168.1 255.255.255.0
ip helper-address 192.168.168.31
!
interface GigabitEthernet0/0/0.2
encapsulation dot1Q 1010
ip address 192.168.170.1 255.255.255.0
ip helper-address 192.168.168.31
!
interface GigabitEthernet0/0/0.3
encapsulation dot1Q 3040
ip address 192.168.160.1 255.255.255.0
ip helper-address 192.168.168.31
!
interface GigabitEthernet0/0/0.4
description User Vlan
encapsulation dot1Q 2040
ip address 192.168.166.1 255.255.255.0
ip helper-address 192.168.168.31
!
interface GigabitEthernet0/0/1
ip address 10.1.1.1 255.255.255.0
negotiation auto
!
interface GigabitEthernet0
vrf forwarding Mgmt-intf
no ip address
shutdown
negotiation auto
!
interface Vlan1
no ip address
shutdown
!
ip default-gateway 10.1.1.2
ip forward-protocol nd
no ip http server
no ip http secure-server
ip tftp source-interface GigabitEthernet0
ip route 0.0.0.0 0.0.0.0 10.1.1.2
!
!
!
!
!
!
!
control-plane
!
!
line con 0
stopbits 1
line aux 0
stopbits 1
line vty 0 4
privilege level 15
transport input telnet ssh
line vty 5 15
privilege level 15
transport input telnet ssh
!
!
end

 

I hope anyone can point me on the right direction as to what I need to do, and any help will be very much appreciated

 

Best!!

5 Replies 5

Areyouserious
Level 1
Level 1

a route needs to be enabled between the VLANS you want to enable communication on. 

For now, the command "ip routing" may get things going but this will enable all devices on all vlans to talk to each other, unless you want to look at applying ALC's so provide some form of security.

I ran an sh ip route and this is what i have:

 

OUI#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is 10.1.1.2 to network 0.0.0.0

S* 0.0.0.0/0 [1/0] via 10.1.1.2
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, GigabitEthernet0/0/1
L 10.1.1.1/32 is directly connected, GigabitEthernet0/0/1
192.168.160.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.160.0/24 is directly connected, GigabitEthernet0/0/0.3
L 192.168.160.1/32 is directly connected, GigabitEthernet0/0/0.3
192.168.166.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.166.0/24 is directly connected, GigabitEthernet0/0/0.4
L 192.168.166.1/32 is directly connected, GigabitEthernet0/0/0.4
192.168.168.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.168.0/24 is directly connected, GigabitEthernet0/0/0.1
L 192.168.168.1/32 is directly connected, GigabitEthernet0/0/0.1
192.168.170.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.170.0/24 is directly connected, GigabitEthernet0/0/0.2
L 192.168.170.1/32 is directly connected, GigabitEthernet0/0/0.2

 

According to me the routing is already set between the VLANs. Can you be more specific on what exactly I need to do with the routing?

 

Thank you!

Are you dhcp settings correctly pushing the correct gateway ip to your cameras?

Yes. The cameras are connected to the NVR and they are all getting 192.168.160.x addresses (including the NVR)

 

 

You would only need port forwarding if you were using NAT but you aren't. 

 

I suspect it may be a multicast issue ie. in the same vlan fine but between vlans you would need to configure multicast routing. 

 

Do you know if the camera software uses multicast ? 

 

Jon

Review Cisco Networking for a $25 gift card