[c-nsp] Assigning a static IPv6 address to a PPP session
Victor Lyapunov
victor.lyapunov at gmail.com
Mon Mar 15 19:00:07 EDT 2010
Hello Bjørn, Gert
Bjørn have you tried using the "Framed-Interface-Id" with a Cisco CPE?
I have tried the combination Framed-Interface-Id + Framed-IPv6-Prefix
with no luck so far
(The /64 prefix is applied to the dialer interface but the last 64
bits of the PPP interface
address are not affected by the Framed-Interface-Id attribute)
In the ERX which attribute do you use for defining the Prefix
delegated through DHCP-PD?
In the Cisco config that I have tried so far, I can statically define
the IPv6 prefixes for either
the Dialer (assigned through autoconfiguration)
or the Ethernet Interface (assigned through DHCP-PD)
Specifically if I include the "no ipv6 nd prefix framed-ipv6-prefix"
statement in the virtual-template
the prefix is advertised to the CPE through DHCP-PD.
Without this command the prefix is advertised through the
router-advertisements during the
autoconfiguration phase and assigned to the PPP interface of the CPE
I have not found the necessary commands that will enable me to assigh
through radius both PPP
and DHCP-PD addresses of the CPE.
====The config for the LNS
aaa authorization configuration default group radius
ipv6 dhcp pool LAN
prefix-delegation aaa
dns-server 163::1
domain-name ipv6.test.com
interface Virtual-Template100
ip unnumbered Loopback4
ipv6 enable
no ipv6 nd prefix framed-ipv6-prefix
ipv6 nd other-config-flag
no ipv6 nd ra suppress
ipv6 dhcp server LAN
peer default ip address pool v4_POOL
peer default ipv6 pool PPPOE
ppp authentication pap
ppp ipcp dns 10.0.1.1
====Config for the CPE
interface Dialer100
ip address negotiated
encapsulation ppp
dialer pool 100
ipv6 address autoconfig default
ipv6 enable
ipv6 dhcp client pd LAN
ppp pap sent-username user1 password 0 user1
ppp ipcp dns request
ppp ipcp route default
interface FastEthernet0/1
ip address 10.0.100.100 255.255.255.0
duplex auto
speed auto
ipv6 address LAN ::1/64
ipv6 enable
ipv6 nd other-config-flag
ipv6 dhcp server TEST
Gert in your approach (using DHCP for both LAN and WAN interfaces of
the CPE) how can have the
CPE peek for the WAN, a /64 subnet from the /56 assigned through the DHCP-PD?
I have tried using the command "ipv6 address LAN ::2/64" in the Dialer
interface but with no success.
With the Cisco-AVPair = "ipv6:prefix#1=2001:1::/56" the CPE tries to
assign the first /64 subnet for
both WAN and F0/1 interface and so an error is generated.
Is there a specialI can use to force the Dialer choose the second /64
subnet of the 2001:1::/56 prefix?
Thnx both for the help
On Mon, Mar 15, 2010 at 9:02 PM, Bjørn Mork <bjorn at mork.no> wrote:
> Gert Doering <gert at greenie.muc.de> writes:
>
>> Does Framed-Interface-ID configure the *client* side via IPv6CP?
>>
>> Now that's interesting indeed.
>>
>> (I'm not sure we would something else than "::1" there, to ensure
>> the CPE has a well-known and pingable address, but it's definitely
>> a nice tool).
>
> Yes. With this RADIUS account (the prefix is statically configfured in
> this case):
>
> bjoermor at ipv6.online.no Cleartext-Password := verysecret
> Framed-Interface-Id := 0:0:0:c
>
>
> I get this on the client side:
>
>
> ipv6-pppoe-1:~# pppd nodetach debug noip call ipv6-1
> Serial connection established.
> using channel 2
> Using interface ppp0
> Connect: ppp0 <--> /dev/pts/0
> sent [LCP ConfReq id=0x1 <magic 0xea58b813> <pcomp>]
> rcvd [LCP ConfReq id=0xb2 <mru 1492> <auth pap> <magic 0x442c1e2>]
> sent [LCP ConfAck id=0xb2 <mru 1492> <auth pap> <magic 0x442c1e2>]
> rcvd [LCP ConfAck id=0x1 <magic 0xea58b813> <pcomp>]
> sent [LCP EchoReq id=0x0 magic=0xea58b813]
> sent [PAP AuthReq id=0x1 user="bjoermor at ipv6.online.no" password=<hidden>]
> rcvd [LCP EchoRep id=0x0 magic=0x442c1e2]
> rcvd [PAP AuthAck id=0x1 "Nextra dialin"]
> Remote message: Nextra dialin
> PAP authentication succeeded
> sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
> sent [IPV6CP ConfReq id=0x1 <addr fe80::5254:06ff:fe66:0000>]
> rcvd [LCP ProtRej id=0x8 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
> Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
> rcvd [IPV6CP ConfNak id=0x1 <addr fe80::0000:0000:0000:000c>]
> sent [IPV6CP ConfReq id=0x2 <addr fe80::0000:0000:0000:000c>]
> rcvd [IPV6CP ConfAck id=0x2 <addr fe80::0000:0000:0000:000c>]
> rcvd [IPV6CP ConfReq id=0x40 <addr fe80::0090:1a00:0141:70f7>]
> sent [IPV6CP ConfAck id=0x40 <addr fe80::0090:1a00:0141:70f7>]
> local LL address fe80::0000:0000:0000:000c
> remote LL address fe80::0090:1a00:0141:70f7
> Script /etc/ppp/ipv6-up started (pid 1439)
> Script /etc/ppp/ipv6-up finished (pid 1439), status = 0x0
>
>
>
>
> And the expected ::c ifid is used both on the link local and the global
> address:
>
>
> ipv6-pppoe-1:~# ifconfig ppp0
> ppp0 Link encap:Point-to-Point Protocol
> inet6 addr: 2001:4600:10:11::c/64 Scope:Global
> inet6 addr: fe80::c/10 Scope:Link
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1452 Metric:1
> RX packets:4 errors:0 dropped:0 overruns:0 frame:0
> TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:3
> RX bytes:138 (138.0 B) TX bytes:105 (105.0 B)
>
>
>
> Bjørn
>
More information about the cisco-nsp
mailing list