cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
1642
Views
10
Helpful
4
Replies

DHCP Client Failed to obtain IP

dimigav1977
Level 1
Level 1

My configuration attempt to obtain an IP address from DHCP server on a sub-if

 

Spoiler

!

interface GigabitEthernet0/0.836
 encapsulation dot1Q 836
 ip address dhcp

!

interface GigabitEthernet0/1.837
 description #####
 encapsulation dot1Q 837
 ip address dhcp

but never obtained.

 

The debug messages are the following:

Spoiler
C2901#
Aug 20 09:54:38.710: DHCP: Try 56 to acquire address for GigabitEthernet0/0.836
Aug 20 09:54:38.710: DHCP: allocate request
Aug 20 09:54:38.710: DHCP: new entry. add to queue, interface GigabitEthernet0/0.836
Aug 20 09:54:38.710: DHCP: Client socket is opened
Aug 20 09:54:38.710: DHCP: SDiscover attempt # 1 for entry:
Aug 20 09:54:38.710: Temp IP addr: 0.0.0.0 for peer on Interface: GigabitEthernet0/0.836
Aug 20 09:54:38.710: Temp sub net mask: 0.0.0.0
Aug 20 09:54:38.710: DHCP Lease server: 0.0.0.0, state: 3 Selecting
Aug 20 09:54:38.710: DHCP transaction id: B54
Aug 20 09:54:38.710: Lease: 0 secs, Renewal: 0 secs, Rebind: 0 secs
Aug 20 09:54:38.710: Next timer fires after: 00:00:04
Aug 20 09:54:38.710: Retry count: 1 Client-ID: cisco-a0ec.f97f.9288-Gi0/0.836
Aug 20 09:54:38.710: Client-ID hex dump: 636973636F2D613065632E663937662E
Aug 20 09:54:38.710: 393238382D4769302F302E383336
Aug 20 09:54:38.710: Hostname: C2901
Aug 20 09:54:38.710: DHCP: SDiscover placed class-id option: 636973636F706E70
Aug 20 09:54:38.710: DHCP: SDiscover: sending 308 byte length DHCP packet
Aug 20 09:54:38.710: DHCP: SDiscover 308 bytes
Aug 20 09:54:38.710: B'cast on GigabitEthernet0/0.836 interface from 0.0.0.0
Aug 20 09:54:38.710: DHCP: Try 56 to acquire address for GigabitEthernet0/0.837
Aug 20 09:54:38.714: DHCP: allocate request
Aug 20 09:54:38.714: DHCP: new entry. add to queue, interface GigabitEthernet0/0.837
Aug 20 09:54:38.714: DHCP: SDiscover attempt # 1 for entry:
Aug 20 09:54:38.714: Temp IP addr: 0.0.0.0 for peer on Interface: GigabitEthernet0/0.837
Aug 20 09:54:38.714: Temp sub net mask: 0.0.0.0
Aug 20 09:54:38.714: DHCP Lease server: 0.0.0.0, state: 3 Selecting
Aug 20 09:54:38.714: DHCP transaction id: B55
Aug 20 09:54:38.714: Lease: 0 secs, Renewal: 0 secs, Rebind: 0 secs
Aug 20 09:54:38.714: Next timer fires after: 00:00:04
Aug 20 09:54:38.714: Retry count: 1 Client-ID: cisco-a0ec.f97f.9288-Gi0/0.837
Aug 20 09:54:38.714: Client-ID hex dump: 636973636F2D613065632E663937662E
Aug 20 09:54:38.714: 393238382D4769302F302E383337
Aug 20 09:54:38.714: Hostname: C2901
Aug 20 09:54:38.714: DHCP: SDiscover placed class-id option: 636973636F706E70
Aug 20 09:54:38.714: DHCP: SDiscover: sending 308 byte length DHCP packet
Aug 20 09:54:38.714: DHCP: SDiscover 308 bytes
Aug 20 09:54:38.714: B'cast on GigabitEthernet0/0.837 interface from 0.0.0.0
Aug 20 09:54:41.910: DHCP: SDiscover attempt # 2 for entry:
Aug 20 09:54:41.910: Temp IP addr: 0.0.0.0 for peer on Interface: GigabitEthernet0/0.836
Aug 20 09:54:41.910: Temp sub net mask: 0.0.0.0
Aug 20 09:54:41.910: DHCP Lease server: 0.0.0.0, state: 3 Selecting
Aug 20 09:54:41.910: DHCP transaction id: B54
Aug 20 09:54:41.910: Lease: 0 secs, Renewal: 0 secs, Rebind: 0 secs
Aug 20 09:54:41.910: Next timer fires after: 00:00:04
Aug 20 09:54:41.910: Retry count: 2 Client-ID: cisco-a0ec.f97f.9288-Gi0/0.836
Aug 20 09:54:41.910: Client-ID hex dump: 636973636F2D613065632E663937662E
Aug 20 09:54:41.910: 393238382D4769302F302E383336
Aug 20 09:54:41.910: Hostname: C2901
Aug 20 09:54:41.910: DHCP: SDiscover placed class-id option: 636973636F706E70
Aug 20 09:54:41.910: DHCP: SDiscover: sending 308 byte length DHCP packet
Aug 20 09:54:41.910: DHCP: SDiscover 308 bytes
Aug 20 09:54:41.910: B'cast on GigabitEthernet0/0.836 interface from 0.0.0.0
Aug 20 09:54:41.910: DHCP: SDiscover attempt # 2 for entry:
Aug 20 09:54:41.910: Temp IP addr: 0.0.0.0 for peer on Interface: GigabitEthernet0/0.837
Aug 20 09:54:41.910: Temp sub net mask: 0.0.0.0
Aug 20 09:54:41.910: DHCP Lease server: 0.0.0.0, state: 3 Selecting
Aug 20 09:54:41.910: DHCP transaction id: B55
Aug 20 09:54:41.910: Lease: 0 secs, Renewal: 0 secs, Rebind: 0 secs
Aug 20 09:54:41.910: Next timer fires after: 00:00:04
Aug 20 09:54:41.910: Retry count: 2 Client-ID: cisco-a0ec.f97f.9288-Gi0/0.837
Aug 20 09:54:41.910: Client-ID hex dump: 636973636F2D613065632E663937662E
Aug 20 09:54:41.910: 393238382D4769302F302E383337
Aug 20 09:54:41.910: Hostname: C2901
Aug 20 09:54:41.910: DHCP: SDiscover placed class-id option: 636973636F706E70
Aug 20 09:54:41.910: DHCP: SDiscover: sending 308 byte length DHCP packet
Aug 20 09:54:41.910: DHCP: SDiscover 308 bytes
Aug 20 09:54:41.910: B'cast on GigabitEthernet0/0.837 interface from 0.0.0.0
Aug 20 09:54:45.910: DHCP: SDiscover attempt # 3 for entry:
Aug 20 09:54:45.910: Temp IP addr: 0.0.0.0 for peer on Interface: GigabitEthernet0/0.836
Aug 20 09:54:45.910: Temp sub net mask: 0.0.0.0
Aug 20 09:54:45.910: DHCP Lease server: 0.0.0.0, state: 3 Selecting
Aug 20 09:54:45.910: DHCP transaction id: B54
Aug 20 09:54:45.910: Lease: 0 secs, Renewal: 0 secs, Rebind: 0 secs
Aug 20 09:54:45.910: Next timer fires after: 00:00:04
Aug 20 09:54:45.910: Retry count: 3 Client-ID: cisco-a0ec.f97f.9288-Gi0/0.836
Aug 20 09:54:45.910: Client-ID hex dump: 636973636F2D613065632E663937662E
Aug 20 09:54:45.910: 393238382D4769302F302E383336
Aug 20 09:54:45.910: Hostname: C2901
Aug 20 09:54:45.910: DHCP: SDiscover placed class-id option: 636973636F706E70
Aug 20 09:54:45.910: DHCP: SDiscover: sending 308 byte length DHCP packet
Aug 20 09:54:45.910: DHCP: SDiscover 308 bytes
Aug 20 09:54:45.910: B'cast on GigabitEthernet0/0.836 interface from 0.0.0.0
Aug 20 09:54:45.910: DHCP: SDiscover attempt # 3 for entry:
Aug 20 09:54:45.910: Temp IP addr: 0.0.0.0 for peer on Interface: GigabitEthernet0/0.837
Aug 20 09:54:45.910: Temp sub net mask: 0.0.0.0
Aug 20 09:54:45.910: DHCP Lease server: 0.0.0.0, state: 3 Selecting
Aug 20 09:54:45.910: DHCP transaction id: B55
Aug 20 09:54:45.910: Lease: 0 secs, Renewal: 0 secs, Rebind: 0 secs
Aug 20 09:54:45.910: Next timer fires after: 00:00:04
Aug 20 09:54:45.910: Retry count: 3 Client-ID: cisco-a0ec.f97f.9288-Gi0/0.837
Aug 20 09:54:45.910: Client-ID hex dump: 636973636F2D613065632E663937662E
Aug 20 09:54:45.910: 393238382D4769302F302E383337
Aug 20 09:54:45.910: Hostname: C2901
Aug 20 09:54:45.910: DHCP: SDiscover placed class-id option: 636973636F706E70
Aug 20 09:54:45.910: DHCP: SDiscover: sending 308 byte length DHCP packet
Aug 20 09:54:45.910: DHCP: SDiscover 308 bytes
Aug 20 09:54:45.910: B'cast on GigabitEthernet0/0.837 interface from 0.0.0.0
Aug 20 09:54:49.910: DHCP: QScan: Timed out Selecting state
Aug 20 09:54:49.910: DHCP: QScan: Timed out Selecting state%Unknown DHCP problem.. No allocation possible
Aug 20 09:54:59.190: DHCP: Waiting for 60 seconds on interface GigabitEthernet0/0.836%Unknown DHCP problem.. No allocation possible
Aug 20 09:54:59.194: DHCP: Waiting for 60 seconds on interface GigabitEthernet0/0.837
Aug 20 09:55:30.099: DHCP: QScan: Purging entry
Aug 20 09:55:30.099: DHCP: deleting entry 24CDE8B4 0.0.0.0 from list
Aug 20 09:55:30.099: Temp IP addr: 0.0.0.0 for peer on Interface: GigabitEthernet0/0.836
Aug 20 09:55:30.099: Temp sub net mask: 0.0.0.0
Aug 20 09:55:30.099: DHCP Lease server: 0.0.0.0, state: 11 Purging
Aug 20 09:55:30.099: DHCP transaction id: B54
Aug 20 09:55:30.099: Lease: 0 secs, Renewal: 0 secs, Rebind: 0 secs
Aug 20 09:55:30.099: No timer running
Aug 20 09:55:30.099: Retry count: 0 Client-ID: cisco-a0ec.f97f.9288-Gi0/0.836
Aug 20 09:55:30.099: Client-ID hex dump: 636973636F2D613065632E663937662E
Aug 20 09:55:30.099: 393238382D4769302F302E383336
Aug 20 09:55:30.099: Hostname: C2901
Aug 20 09:55:30.099: DHCP: QScan: Purging entry
Aug 20 09:55:30.099: DHCP: deleting entry 24CDF7D8 0.0.0.0 from list
Aug 20 09:55:30.099: Temp IP addr: 0.0.0.0 for peer on Interface: GigabitEthernet0/0.837
Aug 20 09:55:30.099: Temp sub net mask: 0.0.0.0
Aug 20 09:55:30.099: DHCP Lease server: 0.0.0.0, state: 11 Purging
Aug 20 09:55:30.099: DHCP transaction id: B55
Aug 20 09:55:30.099: Lease: 0 secs, Renewal: 0 secs, Rebind: 0 secs
Aug 20 09:55:30.099: No timer running
Aug 20 09:55:30.099: Retry count: 0 Client-ID: cisco-a0ec.f97f.9288-Gi0/0.837
Aug 20 09:55:30.099: Client-ID hex dump: 636973636F2D613065632E663937662E
Aug 20 09:55:30.099: 393238382D4769302F302E383337
Aug 20 09:55:30.099: Hostname: C2901
Aug 20 09:55:30.099: DHCP: Client socket is closed
C2901#
C2901#
C2901#
C2901#no debug dhcp detail
DHCP client activity debugging is off
C2901#

With other router the sub-interfaces successfully obtain ip addresses.

 

Any idea?

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

how is this device connected, where is your DHCP Server ? (what IP address?) did this device know how to reach DHCP Server

 

post show run complete.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

The complete configuration is

Spoiler

C2901#sh conf
Using 3673 out of 262136 bytes, uncompressed size = 6745 bytes
Uncompressed configuration from 3673 bytes to 6745 bytes
!
! No configuration change since last restart
! NVRAM config last updated at 11:50:59 GRC Fri Aug 20 2021
!
version 15.7
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
service compress-config
!
hostname C2901
!
boot-start-marker
boot-end-marker
!
!
logging buffered 4096 informational
!
no aaa new-model
clock timezone GMT 2 0
clock summer-time GRC recurring
clock calendar-valid
!
!
!
!
!
!
!
!
!
ip dhcp binding cleanup interval 300
no ip dhcp conflict logging
ip dhcp excluded-address 192.168.100.1 192.168.100.30
ip dhcp excluded-address 192.168.2.1 192.168.2.30
!
ip dhcp pool VOICE_LAN
network 192.168.100.0 255.255.255.0
default-router 192.168.100.1
dns-server 192.168.100.1
option 150 ip 192.168.100.1
domain-name voice.dimigav.prv
!
ip dhcp pool DATA_LAN
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
dns-server 8.8.8.8 8.8.4.4 1.1.1.1
domain-name dimigav.prv
option 42 ip 182.168.2.1
option 132 hex 0345
option 133 hex 0000.0005
lease 0 12
!
!
!
ip domain name dimigav.prv
ip name-server 8.8.8.8
ip name-server 8.8.4.4
ip name-server 1.1.1.1
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
voice-card 0
!
!
!
voice service voip
ip address trusted list
ipv4 xxx.xxx.xxx.xxx
no ip address trusted authenticate
address-hiding
mode border-element
allow-connections sip to sip
fax protocol pass-through g711alaw
h323
call service stop
sip
registrar server expires max 1800 min 1800
no update-callerid
early-offer forced
no call service stop
!
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g729r8
!
!
!
!
!
!
!
!
!
!
!
!
!
!
vxml logging-tag
license udi pid CISCO2901/K9 sn FGL184520LS
license boot module c2900 technology-package uck9
hw-module pvdm 0/0
!
!
!
object-group network local_lan_subnets
10.0.0.0 255.0.0.0
192.168.0.0 255.255.0.0
172.16.0.0 255.240.0.0
!
!
redundancy
!
!
!
!
!
!
class-map match-all class2
class-map match-all class3
class-map match-all class1
!
policy-map policy1
class class1
set cos 0
policy-map policy3
class class3
set cos 5
policy-map policy2
class class2
set cos 4
!
!
!
!
!
!
!
bridge irb
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
description LINK_WITH_NOKIA_ONT
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.835
description VLAN_FOR_VODAFONE_DATA
encapsulation dot1Q 835
pppoe enable group global
pppoe-client dial-pool-number 1
service-policy output policy1
!
interface GigabitEthernet0/0.836
description VLAN_FOR_VODAFONE_IPTV
encapsulation dot1Q 836
ip address dhcp
service-policy output policy2
!
interface GigabitEthernet0/0.837
description VLAN_FOR_VODAFONE_VOIP
encapsulation dot1Q 837
ip address dhcp
service-policy output policy3
!
interface GigabitEthernet0/1
description LINK_WITH_WS-C2960-48PST-L_SWITCH
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/1.2
encapsulation dot1Q 2
ip address 192.168.2.254 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
interface GigabitEthernet0/1.100
description VOIP_VLAN
encapsulation dot1Q 100
ip address 192.168.100.254 255.255.255.0
!
interface GigabitEthernet0/0/0
no ip address
shutdown
negotiation auto
!
interface Dialer1
description DIALER_TO_ISP_VODAFONE
mtu 1492
ip address negotiated
ip nat outside
ip virtual-reassembly in
ip virtual-reassembly out
encapsulation ppp
dialer pool 1
dialer-group 1
no cdp enable
ppp authentication chap pap callin
ppp chap hostname <removed>@adsl.gr
ppp chap password 7 <removed>
ppp pap sent-username <removed>@adsl.gr password 7 <removed>
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip dns server
ip nat inside source list nat-list interface Dialer1 overload
ip route 0.0.0.0 0.0.0.0 Dialer1
!
ip access-list extended nat-list
permit ip object-group local_lan_subnets any
!
!
!
!
control-plane
!
!
voice-port 0/1/0
!
voice-port 0/1/1
!
voice-port 0/2/0
!
voice-port 0/2/1
!
voice-port 0/3/0
!
voice-port 0/3/1
!
!
!
!
!
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!
!
!
!
!
!
gateway
media-inactivity-criteria all
timer receive-rtcp 5
timer receive-rtp 1200
!
sip-ua
credentials username <removed>@ngn.hol.net password 7 <removed> realm hol.net
authentication username <removed>@ngn.hol.net password 7 <removed> realm hol.net
registrar dns:ngn.hol.net expires 1800
connection-reuse
!
!
!
gatekeeper
shutdown
!
banner login ^C


########################################################################
# #
# dimigav.prv - Main router #
# #
# CISCO C2901 - MET16b #
# --- AUTHORIZED ACCESS ONLY --- #
# If you are not authorized to access this router and or #
# network please logoff now. Access to this network is LOGGED. #
# #
########################################################################

 

 

^C
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
login
transport input none
!
scheduler allocate 20000 1000
ntp server 34.208.249.133
!
end

Does the provider support this ?  Dot1q ?

 

interface GigabitEthernet0/0
description LINK_WITH_NOKIA_ONT
no ip address
duplex auto
speed auto
!

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Untitled.png

According to this the provider support sub-if, but maybe the problem is in Option 60 or option 12. I don't know how to insert this in my config.

 

Edited:

But, I tried to remove the Option 12 and Option 60 and disabled the Advanced Settings and the router assigned with IP from provider.

So, the problem pointed to other location and not Options 12, 60.