ā07-13-2020 06:45 PM
Hi
Can anyone confirm if local DHCPv4 Server is possible on this XR version.
I have read a lots of docs and it show relay,proxy for DHCPv4 and also DHCPv6 but not DHCPV4 Server where clients can be assigned from local pool on the router itself,
ā07-13-2020 08:31 PM
it should be there; supported but with different commands then regular IOS
I found it in XR 6.0
Regards, ML
**Please Rate All Helpful Responses **
ā07-14-2020 12:30 AM
hi Martin
Thanks for your kind help.
Now manage to make it work but without the authorized .....
!
policy-map type control subscriber POLICY_DHCP_CUSTOMERS
event session-start match-first
class type control subscriber DHCP46 do-until-failure
10 activate dynamic-template DHCP
20 authorize aaa list default format DHCP_AUTH_REMOTE_ID password dhcpusers.t0
if i removed the seq number 20 i got ip assigned ... but with the authorize i got unsupport auth type
ā07-30-2020 12:54 PM
now manage to make this works.
The issue was not with my ASR 9k DHCP Server config but my Radius, changing that (my radius config) to the right configuration make this works perfect.
ā07-30-2020 01:32 PM - edited ā07-30-2020 01:32 PM
Hello
DHCP server on cisco IOS XRv Series
Example:
dhcp ipv4
profile DHCP server
lease x x
dns-server x.x.x.x y.y.y.y
subnet-mask x.x.x.y
default-router x.x.x.x
ā07-30-2020 01:55 PM
Thanks @paul driver thanks for sharing the config.
Here is my complete config . The reason i share this cos i was not that expert on Cisco and XR i just access to weeks ago and it is new . To help other with similar situation i'll have to post all my complete config here.
From following alot of advice and suggestion from good folks in this community @xthuijs i would be ableto compile this complete configuration for PPPoE/DHCP both IPv4/IPv6 to works.
Please note my experience in this journey, the cisco part was easier the only thing was it takes a lot of time to read all the related docs to put together something like this but i believe it is available to anyone in the public to do so. So to avoid anyone from that struggle :) ... i want to put these config here . The much harder part was the Radius Configuration to work with this BNG configure but thanksfully we manage to get that part working. So enjoy
######AAA configuation############
aaa group server radius AAA_via_MANAGEMENT
vrf MANAGEMENT
server-private 1.1.1.1 auth-port 1812 acct-port 1813
key 7 XXXXXXXXXXXXX
!
source-interface Loopback50
!
aaa accounting update newinfo
########v4/v6 Pool############ Please note i only add the name but not ipv4/ipv6 actual prefix###########3
pool vrf default ipv4 IPV4_DHCP
pool vrf default ipv4 PPP_POST_IPv4
pool vrf default ipv6 IPV6_PPP_NA
prefix-length 64
pool vrf default ipv6 IPV6_PPP_PD
prefix-length 56
!
pool vrf default ipv6 IPV6_DHCP_NA
prefix-length 64
!
pool vrf default ipv6 IPV6_DHCP_PD
prefix-length 56
###############DHCPv4 Config###########3
dhcp ipv4
profile DHCP_IPV4_CUSTOMERS server
lease 0 0 10
pool IPV4_DHCP
dns-server 1.1.1.1
limit lease per-circuit-id 23
default-router 1.1.1.1
broadcast-flag policy UnicastAlways
requested-ip-address-check disable
relay information authenticate inserted
!
interface Bundle-Ether16.213 server profile DHCP_IPV4_CUSTOMERS
!
##########DHCPv6 Config for both PPPoE/DHCP###########3
!
dhcp ipv6
profile DHCP_PPPoE server
lease 8
dns-server 0:0:0:0
aaa dhcpv6-option force-insert
domain-name kalianet.to
prefix-pool IPV6_PPP_PD
rapid-commit
!
profile DHCP_IPV6_DHCP server
lease 0 0 10
dns-server 0:0:0:0
aaa dhcpv6-option force-insert
domain-name kalianet.to
prefix-pool IPV6_DHCP_PD
rapid-commit
!
interface subscriber-pppoe profile DHCP_PPPoE
interface Bundle-Ether16.213 server profile DHCP_IPV6_DHCP
!
########Dynamic Template for PPPoE/DHCPv4/v6##############33
!
dynamic-template
type ppp PPP_Postpaid
ppp authentication pap chap
keepalive 30 5
ppp ipcp dns 1.1.1.1
ppp ipcp peer-address pool PPP_POST_IPv4
accounting aaa list default type session periodic-interval 5
ipv4 unnumbered Loopback10
ipv6 nd ra-interval 10
ipv6 nd ra-lifetime 180
ipv6 nd other-config-flag
ipv6 nd framed-prefix-pool IPV6_PPP_NA
ipv6 nd managed-config-flag
ipv6 mtu 1492
ipv6 enable
dhcpv6 delegated-prefix-pool IPV6_PPP_PD
!
type ipsubscriber DHCP
accounting aaa list default type session periodic-interval 5
ipv4 verify unicast source reachable-via rx
ipv4 unnumbered Loopback20
ipv6 nd other-config-flag
ipv6 nd framed-prefix-pool IPV6_DHCP_NA
ipv6 nd managed-config-flag
ipv6 enable
dhcpv6 delegated-prefix-pool IPV6_DHCP_PD
!
#############Access Interface vlan 213 LACP to a ME3800X Switch##############33
!
interface Bundle-Ether1
description Bundlels for Customers
!
interface Bundle-Ether16
description Bundlels for Customers
bundle minimum-active links 1
!
interface Bundle-Ether16.213
description ***PostPaid PPPoE VLAN 213***
ipv4 point-to-point
ipv4 unnumbered Loopback20
arp learning disable
ipv6 enable
service-policy type control subscriber POLICY_DHCP_CUSTOMERS
bundle load-balancing hash dst-ip
encapsulation dot1q 213
ipsubscriber ipv4 l2-connected
initiator dhcp
initiator unclassified-source
!
ipsubscriber ipv6 l2-connected
initiator dhcp
!
############Loopback Interface Configuration##########################33
!
interface Loopback0
ipv4 address 1.1.1.1
!
interface Loopback10
description ****PPP_Post_Gateway***
ipv4 address 1.1.1.1
ipv6 address fe80::bba link-local
ipv6 enable
!
interface Loopback20
description ***DHCP_Gateway***
ipv4 address 1.1.1.1
ipv6 address fe80::bba link-local
ipv6 enable
!
#######AAA Auth Attribute refer to it from Policy#########33
!
aaa attribute format DHCP_AUTH_REMOTE_ID
remote-id
!
##########Class MAP and Policy MAP for both PPPoe/DHCPv4/6########3
!
class-map type control subscriber match-any PPP
match protocol ppp
end-class-map
!
!
class-map type control subscriber match-any DHCP46
match protocol dhcpv4 dhcpv6
end-class-map
!
!
policy-map type control subscriber PPP_Postpaid
event session-activate match-first
class type control subscriber PPP do-until-failure
10 authenticate aaa list default
!
!
event session-start match-first
class type control subscriber PPP do-all
10 activate dynamic-template PPP_Postpaid
!
!
end-policy-map
!
policy-map type control subscriber POLICY_DHCP_CUSTOMERS
event session-start match-first
class type control subscriber DHCP46 do-until-failure
10 activate dynamic-template DHCP
20 authorize aaa list default format DHCP_AUTH_REMOTE_ID password dhcpusers.to
!
!
end-policy-map
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