08-20-2021 03:35 AM
My configuration attempt to obtain an IP address from DHCP server on a sub-if
!
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:
With other router the sub-interfaces successfully obtain ip addresses.
Any idea?
08-20-2021 03:42 AM
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.
08-20-2021 07:22 AM
The complete configuration is
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
08-20-2021 07:31 AM - edited 08-20-2021 07:31 AM
Does the provider support this ? Dot1q ?
interface GigabitEthernet0/0
description LINK_WITH_NOKIA_ONT
no ip address
duplex auto
speed auto
!
08-20-2021 07:56 AM - edited 08-20-2021 11:21 AM
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.
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