I am trying to establish a ppp link for device running FreeRTOS that
has either an IPV6 or an IPV4 address with host running linux. For
example if device has only IPV6 address, sending pppd command creates
on host global IPV6 address and "not global" IPV4 address.
Am 03.09.2023 um 01:48:30 Uhr schrieb michael gurevich:
I am trying to establish a ppp link for device running FreeRTOS thatIIRC IPv6CP differs from IPCP (IPv4), only an interface identifier (64
has either an IPV6 or an IPV4 address with host running linux. For
example if device has only IPV6 address, sending pppd command creates
on host global IPV6 address and "not global" IPV4 address.
bit, not an IPv6 address), is being negotiated.
The client then creates a link-local (fe80::/64) address with that identifier.
After that is send a router solicitation to get an router advertisement. This can (normally it does) include a prefix (2001:db8::/64) with the A
flag (address autoconfiguration). It can now use that prefix to create
the global address with the identifier exchanged via IPv6CP.
The IPv6 router advertisement can have the M or O flag enabled, that
means the client should contact a DHCPV6 server to get addresses or additional information like DNS or NTP servers.
On Sunday, September 3, 2023 at 12:38:42 PM UTC+3, Marco Moock wrote:
Am 03.09.2023 um 01:48:30 Uhr schrieb michael gurevich:
I am trying to establish a ppp link for device running FreeRTOSIIRC IPv6CP differs from IPCP (IPv4), only an interface identifier
that has either an IPV6 or an IPV4 address with host running
linux. For example if device has only IPV6 address, sending pppd
command creates on host global IPV6 address and "not global" IPV4 address.
(64 bit, not an IPv6 address), is being negotiated.
The client then creates a link-local (fe80::/64) address with that identifier.
After that is send a router solicitation to get an router
advertisement. This can (normally it does) include a prefix
(2001:db8::/64) with the A flag (address autoconfiguration). It can
now use that prefix to create the global address with the
identifier exchanged via IPv6CP.
The IPv6 router advertisement can have the M or O flag enabled,
that means the client should contact a DHCPV6 server to get
addresses or additional information like DNS or NTP servers.
My problem is a bit different, along with IPV6 link-local and IPV6
global addresses, I got a link-local IPV4 address despite the fact
the device is lacking an IPV4 address initially. I wanted to prevent
it and the IPCP request was rejected , but the request kept coming indefinitely.
I would expect pppd handle configuration reject correctly.
The question is - if rejecting IPCP request is wrong and why pppd
keeps sending it all the time.
I can't ask from user to use pppd not asking for IPCP as I don't know
exactly if I have or not the IPV4 address.
Am 03.09.2023 um 03:45:23 Uhr schrieb michael gurevich:
On Sunday, September 3, 2023 at 12:38:42 PM UTC+3, Marco Moock wrote:
Am 03.09.2023 um 01:48:30 Uhr schrieb michael gurevich:
I am trying to establish a ppp link for device running FreeRTOSIIRC IPv6CP differs from IPCP (IPv4), only an interface identifier
that has either an IPV6 or an IPV4 address with host running
linux. For example if device has only IPV6 address, sending pppd command creates on host global IPV6 address and "not global" IPV4 address.
(64 bit, not an IPv6 address), is being negotiated.
The client then creates a link-local (fe80::/64) address with that identifier.
After that is send a router solicitation to get an router
advertisement. This can (normally it does) include a prefix (2001:db8::/64) with the A flag (address autoconfiguration). It can
now use that prefix to create the global address with the
identifier exchanged via IPv6CP.
The it is a problem with IPCP, not IPv6CP.The IPv6 router advertisement can have the M or O flag enabled,My problem is a bit different, along with IPV6 link-local and IPV6
that means the client should contact a DHCPV6 server to get
addresses or additional information like DNS or NTP servers.
global addresses, I got a link-local IPV4 address despite the fact
the device is lacking an IPV4 address initially. I wanted to prevent
it and the IPCP request was rejected , but the request kept coming indefinitely.
Does it really give you 0.0.0.0 back or did you replace it here not to
show the IP?
If you don't want IPv4 addressing, why don't you simply disable IPCP
and only enable IPv6CP?
Some systems (Windows by default, some Linux distributions too), create
an APIPA link-local address from 169.254.0.0/16 if they don't get a
normal IPv4 address by DHCP, PPP etc.
If you don't want this, you have to configure the client's operating
system.
in case device get IPv4 address ( got it from network provider) - PPP
IPv4 exists in case device did not get IPv4 address - PPP IPv4 not
exists, not even link-local in case device get get IPv6 address (
got it from network provider ) - PPP IPv6 exists in case device did
not get IPv6 address - PPP IPv6 not exists, not even link-local
fe80::
Am 04.09.2023 um 07:41:20 Uhr schrieb michael gurevich:
I would expect pppd handle configuration reject correctly.If you don't want IPv4 connectivity, I would recommend disabling IPCP
The question is - if rejecting IPCP request is wrong and why pppd
keeps sending it all the time.
at all to avoid that anything is being sent.
Although, the machine at the other side MIGHT print an error because it expects IPCP for IPv4 connectivity.
I can't ask from user to use pppd not asking for IPCP as I don't know exactly if I have or not the IPV4 address.What is your goal?
Should IPv4 connectivity exist?
Am 04.09.2023 um 23:19:53 Uhr schrieb michael gurevich:
in case device get IPv4 address ( got it from network provider) - PPPFor me that sounds a bit like a very special situation.
IPv4 exists in case device did not get IPv4 address - PPP IPv4 not
exists, not even link-local in case device get get IPv6 address (
got it from network provider ) - PPP IPv6 exists in case device did
not get IPv6 address - PPP IPv6 not exists, not even link-local
fe80::
You want to give out clients not under your control addresses via ppp,
is that right?
You get addresses by your ISP?
By which protocol and by what machine (same like your ppp server)?
The device is designed to be flexible, allowing connections to ISPs
that support IPv4, IPv6, or both.
I can't disable IPCP or IP6CP negotiation at the server end as it
must be adaptive based on the ISP.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 380 |
Nodes: | 16 (2 / 14) |
Uptime: | 48:37:23 |
Calls: | 8,142 |
Calls today: | 5 |
Files: | 13,085 |
Messages: | 5,858,453 |