And again hello everyone )
I`m trying to make Framed-Route attribute work.
My subscriber looks like this:
ge-0/0/4:4020-3000 Auth-Type := Accept
Framed-IP-Address := "10.200.4.2",
Framed-IP-Netmask := "255.255.252.0",
Framed-Route := "10.200.200.0/25 10.200.4.2 1"
Dynamic profile:
interfaces {
"$junos-interface-ifd-name" {
unit "$junos-underlying-interface-unit" {
family inet {
unnumbered-address lo0.0 preferred-source-address 213.108.136.127;
}
family inet6 {
unnumbered-address lo0.0 preferred-source-address 2a22:f440:a:3::1;
}
}
}
}
routing-options {
access {
route $junos-framed-route-ip-address-prefix next-hop "$junos-framed-route-nexthop";
}
}
subscriber session starts:
run show subscribers extensive
Type: VLAN
Logical System: default
Routing Instance: default
Interface: demux0.3221225478
Interface type: Dynamic
Underlying Interface: ge-0/0/4
Dynamic Profile Name: TEST-PROFILE
State: Active
Session ID: 24
PFE Flow ID: 152
Stacked VLAN Id: 0x8100.4020
VLAN Id: 0x8100.3000
Login Time: 2010-02-17 16:01:56 EET
IPv4 rpf-check Fail Filter Name: rpf-pass-dhcp
Type: DHCP
User Name: ge-0/0/4:4020-3000
IP Address: 10.200.4.2
IP Netmask: 255.255.252.0
Logical System: default
Routing Instance: default
Interface: demux0.3221225478
Interface type: Static
Underlying Interface: demux0.3221225478
Dynamic Profile Name: IP-DHCPv4-DHCPv6
MAC Address: 4c:5e:0c:b3:1c:0d
State: Active
Radius Accounting ID: 25
Session ID: 25
PFE Flow ID: 152
Stacked VLAN Id: 4020
VLAN Id: 3000
Agent Circuit ID: len 6
00 04 0f b4 00 18
Agent Remote ID: len 9
01 07 42 6f 67 64 2d 31 35
Login Time: 2010-02-17 16:01:56 EET
DHCP Options: len 32
35 01 01 37 08 01 79 03 21 06 2a 8a 2b 0c 08 4d 69 6b 72 6f
54 69 6b 3d 07 01 4c 5e 0c b3 1c 0d
DHCP Header: len 44
01 01 06 00 ba da ac 48 00 36 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 4c 5e 0c b3 1c 0d 00 00 00 00 00 00
00 00 00 00
IP Address Pool: 10-200-4-0
Accounting interval: 3600
Dynamic configuration:
junos-framed-route-ip-address-prefix: 10.200.200.0/25
junos-framed-route-nexthop: 0.0.0.0
junos-framed-route-cost: 1
I even got framed-route attribute but with no next-hop.
In log file i see this:
Feb 17 16:01:56.294167 Parsing RADIUS message for session-id:25
Feb 17 16:01:56.294213 radius-access-accept: Framed-IP-Address received: 10.200.4.2
Feb 17 16:01:56.294248 radius-access-accept: Framed-IP-Netmask received: 255.255.252.0
Feb 17 16:01:56.294279 processRadiusAttrib22: wholeString: [10.200.200.0/25 10.200.4.2 1]
Feb 17 16:01:56.294348 processRadiusAttrib22: Attribute 22 missing nextHop, using default [0.0.0.0]
Feb 17 16:01:56.294373 processRadiusAttrib22: Received FR Attributes
Feb 17 16:01:56.294413 radius-access-accept: Framed-Route received: 10.200.200.0/25 10.200.4.2 1
Feb 17 16:01:56.294450 Framework - module(radius) return: SUCCESS
Feb 17 16:01:56.294826 authd_advance_module_for_aaa_response_msg: result:2
Feb 17 16:01:56.294869 Client-session response-attr:: type:21 len:4
Feb 17 16:01:56.294901 Client-session response-attr:: type:22 len:4
Feb 17 16:01:56.294979 authd_update_session_dynamic_attributes: Client-session response-dyn-attr:: name:junos-framed-route-ip-address-prefix, len:16, value: 10.200.200.0/25, encode 1
Feb 17 16:01:56.295016 authd_update_session_dynamic_attributes: Client-session response-dyn-attr:: name:junos-framed-route-nexthop, len:8, value: 0.0.0.0, encode 2
Feb 17 16:01:56.295048 authd_update_session_dynamic_attributes: Client-session response-dyn-attr:: name:junos-framed-route-cost, len:1, value: 1, encode 3
I just cant figure out why it is Attribute 22 missing nextHop, using default [0.0.0.0] ?