Hi All.
I am a IPv6 newbie, and trying it dual stack @ PPPoE,
And allow web server income connection from native IPv6 network.
but can't get public IPv6 address @ tun0 still.
Can help me?
Description below.
Server: FreeBSD 10.2-RELEASE-p6 i386
Simple stand-alone server (No router, no downstream LAN)
WAN port: fxp0(tun0)
Firewall: PF, IPv4 only current.
ISP: IPv6 ready (PPPoE, dual stack mode)
It assign fixed IP(both IPv4 & IPv6) to PPPoE client automatic.
Under is IPv6 test result @ other windows 7 PC, PPPoE at tun interface.
Under is addition configuration in /etc/rc.conf
Some configuration is options, not require.
Can help remove it?
Under is addition configuration in /etc/ppp/ppp.conf
Under is /var/log/ppp.log
Under is
tun0 won't get public IPv6 address, only local address exist.
Thanks all very much.
Neko.
I am a IPv6 newbie, and trying it dual stack @ PPPoE,
And allow web server income connection from native IPv6 network.
but can't get public IPv6 address @ tun0 still.
Can help me?
Description below.
Server: FreeBSD 10.2-RELEASE-p6 i386
Simple stand-alone server (No router, no downstream LAN)
WAN port: fxp0(tun0)
Firewall: PF, IPv4 only current.
ISP: IPv6 ready (PPPoE, dual stack mode)
It assign fixed IP(both IPv4 & IPv6) to PPPoE client automatic.
Under is IPv6 test result @ other windows 7 PC, PPPoE at tun interface.
Code:
IPv6 address: 2001:b411:a480:110:e8ba:fea3:3866:55f1
Link-local IPv6 address: fe80::e88a:ce50:3846:b5a1%51
IPv6 default gateway: fe80::d2f0:dbff:fe3f:5000%51
IPv6 DNS server: 2001:b000:168::2, 2001:b000:168::1
Under is addition configuration in /etc/rc.conf
Code:
ipv6_activate_all_interfaces="YES"
ipv6_network_interfaces="tun0 lo0"
rtadvd_enable="YES"
rtadvd_interfaces="fxp0"
ip6addrctl_enable="YES"
ip6addrctl_policy="ipv6_prefer"
Can help remove it?
Under is addition configuration in /etc/ppp/ppp.conf
Code:
enable ipv6cp <- This one default "enable", add for test
add! default HISADDR6 <- Either ppp.conf or ppp.linkup won't work
Under is /var/log/ppp.log
Code:
Jan 2 18:54:24 epopen ppp[94775]: tun0: Phase: deflink: Disconnected!
Jan 2 18:54:24 epopen ppp[94775]: tun0: Phase: deflink: carrier -> hangup
Jan 2 18:54:24 epopen ppp[94775]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jan 2 18:54:24 epopen ppp[94775]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jan 2 18:54:24 epopen ppp[94775]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Sat Jan 2 18:54:19 2016
Jan 2 18:54:24 epopen ppp[94775]: tun0: Phase: deflink: hangup -> opening
Jan 2 18:54:24 epopen ppp[94775]: tun0: Phase: deflink: Enter pause (30) for redialing.
Jan 2 18:54:54 epopen ppp[94775]: tun0: Chat: deflink: Redial timer expired.
Jan 2 18:54:54 epopen ppp[94775]: tun0: Phase: deflink: Connected!
Jan 2 18:54:54 epopen ppp[94775]: tun0: Phase: deflink: opening -> dial
Jan 2 18:54:54 epopen ppp[94775]: tun0: Phase: deflink: dial -> carrier
Jan 2 18:54:55 epopen ppp[94775]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "CHCH-BRAS-2222")
Jan 2 18:54:55 epopen ppp[94775]: tun0: Phase: Received NGM_PPPOE_SESSIONID
Jan 2 18:54:55 epopen ppp[94775]: tun0: Phase: Received NGM_PPPOE_SUCCESS
Jan 2 18:54:55 epopen ppp[94775]: tun0: Phase: deflink: carrier -> login
Jan 2 18:54:55 epopen ppp[94775]: tun0: Phase: deflink: login -> lcp
Jan 2 18:54:55 epopen ppp[94775]: tun0: LCP: FSM: Using "deflink" as a transport
Jan 2 18:54:55 epopen ppp[94775]: tun0: LCP: deflink: State change Initial --> Closed
Jan 2 18:54:55 epopen ppp[94775]: tun0: LCP: deflink: State change Closed --> Stopped
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: deflink: LayerStart
Jan 2 18:54:56 epopen ppp[94775]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: ACFCOMP[2]
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: PROTOCOMP[2]
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: ACCMAP[6] 0x00000000
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: MRU[4] 1492
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: MAGICNUM[6] 0x2dd96439
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: deflink: State change Stopped --> Req-Sent
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: deflink: RecvConfigReq(189) state = Req-Sent
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: MRU[4] 1492
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: AUTHPROTO[4] 0xc023 (PAP)
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: MAGICNUM[6] 0x2eaee0e7
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: deflink: SendConfigAck(189) state = Req-Sent
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: MRU[4] 1492
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: AUTHPROTO[4] 0xc023 (PAP)
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: MAGICNUM[6] 0x2eaee0e7
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: deflink: State change Req-Sent --> Ack-Sent
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: deflink: RecvConfigRej(1) state = Ack-Sent
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: deflink: SendIdent(0) state = Ack-Sent
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: MAGICNUM 2dd96439
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: TEXT user-ppp 3.4.2
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: ACFCOMP[2]
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: PROTOCOMP[2]
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: ACCMAP[6] 0x00000000
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: deflink: SendConfigReq(2) state = Ack-Sent
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: MRU[4] 1492
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: MAGICNUM[6] 0x2dd96439
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: deflink: RecvCodeRej(190) state = Ack-Sent
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: deflink: RecvConfigAck(2) state = Ack-Sent
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: MRU[4] 1492
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: MAGICNUM[6] 0x2dd96439
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: deflink: State change Ack-Sent --> Opened
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: deflink: LayerUp
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: deflink: SendIdent(1) state = Opened
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: MAGICNUM 2dd96439
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: TEXT user-ppp 3.4.2
Jan 2 18:54:56 epopen ppp[94775]: tun0: Phase: bundle: Authenticate
Jan 2 18:54:56 epopen ppp[94775]: tun0: Phase: deflink: his = PAP, mine = none
Jan 2 18:54:56 epopen ppp[94775]: tun0: Phase: Pap Output: 75776160@ip.hinet.net ********
Jan 2 18:54:56 epopen ppp[94775]: tun0: LCP: deflink: RecvCodeRej(191) state = Opened
Jan 2 18:54:57 epopen ppp[94775]: tun0: Phase: Pap Input: SUCCESS ()
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: Using trigger address 0.0.0.0
Jan 2 18:54:57 epopen ppp[94775]: tun0: CCP: FSM: Using "deflink" as a transport
Jan 2 18:54:57 epopen ppp[94775]: tun0: CCP: deflink: State change Initial --> Closed
Jan 2 18:54:57 epopen ppp[94775]: tun0: CCP: deflink: LayerStart.
Jan 2 18:54:57 epopen ppp[94775]: tun0: CCP: MPPE: Not usable without CHAP81
Jan 2 18:54:57 epopen ppp[94775]: tun0: CCP: deflink: SendConfigReq(1) state = Closed
Jan 2 18:54:57 epopen ppp[94775]: tun0: CCP: DEFLATE[4] win 15
Jan 2 18:54:57 epopen ppp[94775]: tun0: CCP: PRED1[2]
Jan 2 18:54:57 epopen ppp[94775]: tun0: CCP: deflink: State change Closed --> Req-Sent
Jan 2 18:54:57 epopen ppp[94775]: tun0: Phase: deflink: lcp -> open
Jan 2 18:54:57 epopen ppp[94775]: tun0: Phase: bundle: Network
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: FSM: Using "deflink" as a transport
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: deflink: State change Initial --> Closed
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: deflink: LayerStart.
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: deflink: SendConfigReq(1) state = Closed
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: IPADDR[6] 0.0.0.0
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: PRIDNS[6] 168.95.1.1
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: SECDNS[6] 255.255.255.255
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: deflink: State change Closed --> Req-Sent
Jan 2 18:54:57 epopen ppp[94775]: tun0: LCP: deflink: RecvProtocolRej(192) state = Opened
Jan 2 18:54:57 epopen ppp[94775]: tun0: LCP: deflink: -- Protocol 0x80fd (Compression Control Protocol) was rejected!
Jan 2 18:54:57 epopen ppp[94775]: tun0: CCP: deflink: State change Req-Sent --> Stopped
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: deflink: RecvConfigReq(152) state = Req-Sent
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: IPADDR[6] 168.94.58.254
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: deflink: SendConfigAck(152) state = Req-Sent
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: IPADDR[6] 168.94.58.254
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: deflink: State change Req-Sent --> Ack-Sent
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: deflink: RecvConfigRej(1) state = Ack-Sent
Jan 2 18:54:57 epopen ppp[94775]: tun0: LCP: deflink: SendIdent(2) state = Opened
Jan 2 18:54:57 epopen ppp[94775]: tun0: LCP: MAGICNUM 2dd96439
Jan 2 18:54:57 epopen ppp[94775]: tun0: LCP: TEXT user-ppp 3.4.2
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: deflink: SendConfigReq(2) state = Ack-Sent
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: IPADDR[6] 0.0.0.0
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: PRIDNS[6] 168.95.1.1
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: SECDNS[6] 255.255.255.255
Jan 2 18:54:57 epopen ppp[94775]: tun0: Warning: Add! route failed: ff02::: errno: Value too large to be stored in data type
Jan 2 18:54:57 epopen ppp[94775]: tun0: Warning: Add! route failed: 0.0.0.0: errno: Value too large to be stored in data type
Jan 2 18:54:57 epopen ppp[94775]: tun0: Warning: ::/: Change route failed: errno: No such process
Jan 2 18:54:57 epopen ppp[94775]: tun0: LCP: deflink: RecvCodeRej(193) state = Opened
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: deflink: RecvConfigNak(2) state = Ack-Sent
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: IPADDR[6] 121.137.46.251
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: IPADDR[6] changing address: 0.0.0.0 --> 122.117.86.253
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: PRIDNS[6] 168.95.192.1
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: SECDNS[6] 168.95.1.1
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: Primary nameserver set to 168.95.192.1
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: Secondary nameserver set to 168.95.1.1
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: deflink: SendConfigReq(3) state = Ack-Sent
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: IPADDR[6] 121.137.46.251
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: PRIDNS[6] 168.95.192.1
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: SECDNS[6] 168.95.1.1
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: deflink: RecvConfigAck(3) state = Ack-Sent
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: IPADDR[6] 121.137.46.251
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: PRIDNS[6] 168.95.192.1
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: SECDNS[6] 168.95.1.1
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: deflink: State change Ack-Sent --> Opened
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: deflink: LayerUp.
Jan 2 18:54:57 epopen ppp[94775]: tun0: IPCP: myaddr 121.137.46.251 hisaddr = 168.95.98.254
Jan 2 18:54:57 epopen ppp[94775]: tun0: Command: MYADDR: !bg /etc/rc.d/ntpd restart
Under is
ifconfig
result.
Code:
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2009<RXCSUM,VLAN_MTU,WOL_MAGIC>
ether 00:30:44:2b:aa:48
inet6 fe80::230:644f:fe42:9a48%fxp0 prefixlen 64 scopeid 0x1
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1492
options=80000<LINKSTATE>
inet6 fe80::210:64af:fb02:8a48%tun0 prefixlen 64 scopeid 0x7
inet 121.137.46.251 --> 168.94.58.254 netmask 0xffffffff
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Opened by PID 83078
tun0 won't get public IPv6 address, only local address exist.
Thanks all very much.
Neko.
Last edited: