cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11974
Views
0
Helpful
13
Replies

Not able to assign IP address

gnaveen
Level 1
Level 1

[Jack] --> [Fast0/0] Switch [Fast0/1] <-- Camera

Camera gets an IP address

Private IP Address:  10.15.10.80 
Public IP Address:   x8.105.120.70

Now, if I connect a Cisco 2811 router

[Jack] --> [Fast0/0] Switch [Fast0/1] --> Camera

I get an ip address for Fast0/0, but I don't get an ip address for the Camera. Can someone let me know what I am missing in the config.

-NG

1 Accepted Solution

Accepted Solutions

the latest configuration you have posted 100% correct, please provide us with output of the following

debug dhcp detail

sh ip dhcp binding

Im not clear about the Gateway of the camera? is it the router(192.168.1.102) or another router(192.168.1.1)

please provide us with topology

View solution in original post

13 Replies 13

rahurao
Level 1
Level 1

Hi,

As per the topology can you let me know where do you plug in the camera and the 2811 router?

Also what is the switch in the topology and what is the configuration on it?

HTH

Rahul

Cisco 3550 Switch: no configuration on the switchports

++++++++++++++

[Jack] <--> [FastEthernet0/0] and [FastEthernet0/1] <--> Camera

Camera gets an IP address

Private IP Address:  10.15.10.80 
Public IP Address:   x8.105.120.70

Cisco 2811 Router:

++++++++++++++

[Jack] <--> [FastEthernet0/0] and [FastEthernet0/1] <--> Camera

FastEthernet0/0 gets an ip address of 10.15.10.106, but Camera does *NOT* get an IP address.

The 2811 router configuration look like:

!
ip dhcp excluded-address 10.15.10.1
!
ip dhcp pool CAMERA
   import all
   network 10.15.10.0 255.255.255.0
   default-router 10.15.10.1
   dns-server 10.15.10.51
!
ip domain name ash.com
ip name-server 10.49.1.51
ip name-server 10.49.1.52
!
interface FastEthernet0/0
ip address dhcp client-id FastEthernet0/1
ip nat outside
!
interface FastEthernet0/1
no ip address
ip nat inside
!
ip nat inside source list 100 interface FastEthernet0/0 overload
!
access-list 100 permit ip 10.15.10.0 0.0.0.255 any
!

-NG

If I just configure "ip address dhcp" command under FastEthernet0/0, I get an IP address from our OpenVPN server.

!
interface FastEthernet0/0
ip address dhcp
!
interface FastEthernet0/1
no ip address
!

Router#show ip interface brief
Interface                  IP-Address      OK?    Method      Status               Protocol
FastEthernet0/0        10.15.10.147    YES   DHCP       up                    up

FastEthernet0/1        unassigned      YES    manual      up                    up

- We need to monitor bandwidth for these cameras and a Cisco representative has confirmed that we can do this with netflow.

- We need to get netflow working on Cisco 2811 so that we can buy some 50+ routers. But, first the basic stuff is not working .

-NG

Hi NG,

I am still not clear on the whole topology.

Where is the VPN Server is connected and where is the camera/2811 configured?

Form the 2811 i also found ip dhcp pool configured named as camera why is that so?

HTH

Rahul

OpenVPN Server (somewhere in the Data Center Rack, which assign IP addresses to a Camera when connected to the network via wired or wireless Router/Switch).

Topology:

+++++++

[OpenVPN Server] <--> [Wall Jack] <--> [FastEthernet0/0 (To)] Cisco 2811 Router [FastEthernet0/1 (To)] <--> Camera

FastEthernet0/0 gets an ip address of 10.15.10.106 from OpenVPN Server, but Camera does *NOT* get an IP address.

HTH,

NG

Hi NG,

As per the topolgy:

Topology:

+++++++

[OpenVPN Server] <--> [Wall Jack] <--> [FastEthernet0/0 (To)] Cisco 2811 Router [FastEthernet0/1 (To)] <--> Camera

Can you send me the configuration of the interface fa0/0?

HTH

Rahul

!
interface FastEthernet0/0
ip address dhcp client-id FastEthernet0/1
ip nat outside
!

The full configuration is also in the thread above.

-NG

Hi Naveen,

Still you are not getting my point:

[OpenVPN Server] <--> [Wall Jack] <--> [FastEthernet0/0 (To)] Cisco 2811 Router [FastEthernet0/1 (To)] <--> Camera

I am seeking the configuration for the fa0/0 which is coming from the wall jack to the cisco 2811 and not the 2811 router config.

interface FastEthernet0/0
ip address dhcp client-id FastEthernet0/1
ip nat outside
!
interface FastEthernet0/1
no ip address
ip nat inside

If i compre this then can you tell me why do not have the ip address dhcp client-id FastEthernet0/0 configured on the fa 0/1 as it specifies that the interface acquires an IP address through DHCP.

http://www.cisco.com/en/US/docs/ios/12_2/ip/configuration/guide/1cfdhcp.html

HTH

Rahul

aljaloudi
Level 1
Level 1

Hi Naveen, this is because Interface is not configured with IP address, configure ip 10.15.10.1/24 under the interface.

interface FastEthernet0/1
ip address 10.15.10.1 255.255.255.0
ip nat inside

no shut

let me know how it goes.

Cisco Folks come-on . Here is the full config ..

Error: Problem details: Camera is not  accessible.

!
ip dhcp excluded-address 192.168.1.1
!
ip dhcp pool CAMERA
   import all
   network 192.168.1.0 255.255.255.0
   default-router 192.168.1.1
   lease 0 2
!
ip domain name ash.com
ip name-server 10.49.1.51
ip name-server 10.49.1.52
!
interface FastEthernet0/0
ip address dhcp
ip nat outside
!
interface FastEthernet0/1
ip address 192.168.1.102 255.255.255.0
ip nat inside
!
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
!
ip nat inside source list 100 interface FastEthernet0/0 overload
!
access-list 100 permit ip 192.168.1.0 0.0.0.255 any
!

-NG

If I connect the camera to a Linksys router the Camera gets an IP and it works just fine.


With Cisco 871 and Cisco 2811 the Camera does not get an IP.

-NG

the latest configuration you have posted 100% correct, please provide us with output of the following

debug dhcp detail

sh ip dhcp binding

Im not clear about the Gateway of the camera? is it the router(192.168.1.102) or another router(192.168.1.1)

please provide us with topology

I had another 192.168.1.1 router, removed that from the network and it seems to be working now.

!

ip dhcp excluded-address 192.168.1.102

!

ip dhcp pool CAMERA

   import all

   network 192.168.1.0 255.255.255.0

   default-router 192.168.1.102

   lease 0 2

!

Thanks Again!

-NG