[c-nsp] Assigning a static IPv6 address to a PPP session

Bjørn Mork bjorn at mork.no
Mon Mar 15 15:02:01 EDT 2010


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