ipoe_roteador_tp-link

IPoE related questions
nevesjunior
Posts: 7
Joined: 23 Apr 2020, 18:49

ipoe_roteador_tp-link

Post by nevesjunior » 23 Apr 2020, 18:59

hello guys, I have a problem with dhcp with tp-link routers he is not receiving, DHCPv4 Ack, follow the log!

[2020-04-23 18:54:40]: info: ens22: recv [DHCPv4 Discover xid=fd0bf29 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Discover> <Max-Message-Size 1024> <Client-ID 01c4e9846ca4d9> <Host-Name TL-WR841N-ipoe> <Vendor-Class 4d53465420352e30> <Request-List Subnet,Router,DNS,Domain-Name,Route,Vendor-Specific,44,46,47,Classless-Route,249>]
[2020-04-23 18:54:40]: info: ipoe1: create interface ipoe1 parent ens22
[2020-04-23 18:54:40]: debug: ipoe1: radius(1): req_enter 1
[2020-04-23 18:54:40]: info: ipoe1: send [RADIUS(1) Access-Request id=1 <User-Name "c4:e9:84:6c:a4:d9"> <NAS-Identifier "accel-ppp"> <NAS-IP-Address 192.168.66.20> <NAS-Port 10> <NAS-Port-Id "ipoe1"> <NAS-Port-Type Ethernet> <Calling-Station-Id "c4:e9:84:6c:a4:d9"> <Called-Station-Id "ens22"> <User-Password 0x8539a32f0bdaac3a8c070b931a90d0604c111fcf486341965898f1ce69e5941b>]
[2020-04-23 18:54:40]: debug: ipoe1: radius(1): req_exit 0
[2020-04-23 18:54:40]: info: ipoe1: recv [RADIUS(1) Access-Accept id=1 <Mikrotik-Rate-Limit "5120000k/5120000k 0/0 0/0 0/0 8 0/0"> <Framed-Pool "ipoe">]
[2020-04-23 18:54:40]: info: ipoe1: c4:e9:84:6c:a4:d9: authentication succeeded
[2020-04-23 18:54:40]: info: ipoe1: send [DHCPv4 Offer xid=fd0bf29 yiaddr=192.168.16.3 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Offer> <Server-ID 192.168.16.1> <Lease-Time 700> <T1 350> <Router 192.168.16.1> <Subnet 255.255.255.0> <DNS 192.168.66.110,8.8.8.8>]
[2020-04-23 18:54:42]: info: ipoe1: recv [DHCPv4 Discover xid=fd0bf29 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Discover> <Max-Message-Size 1024> <Client-ID 01c4e9846ca4d9> <Host-Name TL-WR841N-ipoe> <Vendor-Class 4d53465420352e30> <Request-List Subnet,Router,DNS,Domain-Name,Route,Vendor-Specific,44,46,47,Classless-Route,249>]
[2020-04-23 18:54:42]: info: ipoe1: send [DHCPv4 Offer xid=fd0bf29 yiaddr=192.168.16.3 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Offer> <Server-ID 192.168.16.1> <Lease-Time 700> <T1 350> <Router 192.168.16.1> <Subnet 255.255.255.0> <DNS 192.168.66.110,8.8.8.8>]
[2020-04-23 18:54:44]: info: ipoe1: recv [DHCPv4 Discover xid=fd0bf29 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Discover> <Max-Message-Size 1024> <Client-ID 01c4e9846ca4d9> <Host-Name TL-WR841N-ipoe> <Vendor-Class 4d53465420352e30> <Request-List Subnet,Router,DNS,Domain-Name,Route,Vendor-Specific,44,46,47,Classless-Route,249>]
[2020-04-23 18:54:44]: info: ipoe1: send [DHCPv4 Offer xid=fd0bf29 yiaddr=192.168.16.3 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Offer> <Server-ID 192.168.16.1> <Lease-Time 700> <T1 350> <Router 192.168.16.1> <Subnet 255.255.255.0> <DNS 192.168.66.110,8.8.8.8>]
[2020-04-23 18:54:48]: info: ipoe1: recv [DHCPv4 Discover xid=fd0bf29 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Discover> <Max-Message-Size 1024> <Client-ID 01c4e9846ca4d9> <Host-Name TL-WR841N-ipoe> <Vendor-Class 4d53465420352e30> <Request-List Subnet,Router,DNS,Domain-Name,Route,Vendor-Specific,44,46,47,Classless-Route,249>]
[2020-04-23 18:54:48]: info: ipoe1: send [DHCPv4 Offer xid=fd0bf29 yiaddr=192.168.16.3 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Offer> <Server-ID 192.168.16.1> <Lease-Time 700> <T1 350> <Router 192.168.16.1> <Subnet 255.255.255.0> <DNS 192.168.66.110,8.8.8.8>]
[2020-04-23 18:54:50]: info: ipoe1: recv [DHCPv4 Discover xid=fd0bf29 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Discover> <Max-Message-Size 1024> <Client-ID 01c4e9846ca4d9> <Host-Name TL-WR841N-ipoe> <Vendor-Class 4d53465420352e30> <Request-List Subnet,Router,DNS,Domain-Name,Route,Vendor-Specific,44,46,47,Classless-Route,249>]
[2020-04-23 18:54:50]: info: ipoe1: send [DHCPv4 Offer xid=fd0bf29 yiaddr=192.168.16.3 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Offer> <Server-ID 192.168.16.1> <Lease-Time 700> <T1 350> <Router 192.168.16.1> <Subnet 255.255.255.0> <DNS 192.168.66.110,8.8.8.8>]
[2020-04-23 18:55:00]: info: ipoe1: ipoe: session timed out
[2020-04-23 18:55:00]: debug: ipoe1: terminate
[2020-04-23 18:55:00]: info: ipoe1: ipoe: session finished
[2020-04-23 18:55:00]: debug: libnetlink: RTNETLINK answers: Cannot assign requested address

already activated and deactivated the arp, arp_proxy of the interface, I am testing on a virtual machine with ubuntu 18.04 in proxmox 6

dimka88
Posts: 736
Joined: 13 Oct 2014, 05:51
Contact:

Re: ipoe_roteador_tp-link

Post by dimka88 » 01 May 2020, 20:38

Hi, which NICs are you using? I know exist some issue with intel i350. Also which accel-ppp version running?

nevesjunior
Posts: 7
Joined: 23 Apr 2020, 18:49

Re: ipoe_roteador_tp-link

Post by nevesjunior » 01 May 2020, 22:42

hello dimka88, follow the data:

NIC: Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111 / 8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)

and accel-ppp was the last version compiled by git.

thank you!

dimka88
Posts: 736
Joined: 13 Oct 2014, 05:51
Contact:

Re: ipoe_roteador_tp-link

Post by dimka88 » 02 May 2020, 06:57

Hi,
Are other routers vendors work properly?

Can you show `[ipoe]` section?

nevesjunior
Posts: 7
Joined: 23 Apr 2020, 18:49

Re: ipoe_roteador_tp-link

Post by nevesjunior » 04 May 2020, 19:27

[2020-05-04 19:25:16]: info: ens22: recv [DHCPv4 Discover xid=3abd36f7 chaddr=6e:10:81:64:5c:31 <Message-Type Discover> <Request-List Subnet,Classless-Route,Router,Route,DNS,NTP,138,Vendor-Specific> <Host-Name RB_CONCENTRADOR_04> <Client-ID 206e1081645c31>]
[2020-05-04 19:25:16]: info: ipoe0: create interface ipoe0 parent ens22
[2020-05-04 19:25:16]: debug: ipoe0: radius(1): req_enter 1
[2020-05-04 19:25:16]: info: ipoe0: send [RADIUS(1) Access-Request id=1 <User-Name "6e:10:81:64:5c:31"> <NAS-Identifier "accel-ppp"> <NAS-IP-Address 192.168.66.20> <NAS-Port 274> <NAS-Port-Id "ipoe0"> <NAS-Port-Type Ethernet> <Calling-Station-Id "6e:10:81:64:5c:31"> <Called-Station-Id "ens22"> <User-Password 0xbdefecaa476781945b48aba5f671f6aced8ac2e542c05c5e43b00d09dcc1d262>]
[2020-05-04 19:25:16]: debug: ipoe0: radius(1): req_exit 0
[2020-05-04 19:25:16]: info: ipoe0: recv [RADIUS(1) Access-Accept id=1 <Mikrotik-Rate-Limit "5120000k/5120000k 0/0 0/0 0/0 8 0/0"> <Framed-Pool "ipoe">]
[2020-05-04 19:25:16]: info: ipoe0: 6e:10:81:64:5c:31: authentication succeeded
[2020-05-04 19:25:16]: info: ipoe0: send [DHCPv4 Offer xid=3abd36f7 yiaddr=192.168.16.2 chaddr=6e:10:81:64:5c:31 <Message-Type Offer> <Server-ID 192.168.16.1> <Lease-Time 900> <T1 350> <Router 192.168.16.1> <Subnet 255.255.255.0> <DNS 192.168.66.110,8.8.8.8>]
[2020-05-04 19:25:16]: info: ipoe0: recv [DHCPv4 Request xid=3abd36f7 chaddr=6e:10:81:64:5c:31 <Message-Type Request> <Server-ID 192.168.16.1> <Request-IP 192.168.16.2> <Request-List Subnet,Classless-Route,Router,Route,DNS,NTP,138,Vendor-Specific> <Host-Name RB_CONCENTRADOR_04> <Client-ID 206e1081645c31>]
[2020-05-04 19:25:16]: debug: ipoe0: ipoe: activate session
[2020-05-04 19:25:16]: debug: ipoe0: radius(1): req_enter 1
[2020-05-04 19:25:16]: info: ipoe0: send [RADIUS(1) Accounting-Request id=1 <User-Name "6e:10:81:64:5c:31"> <NAS-Identifier "accel-ppp"> <NAS-IP-Address 192.168.66.20> <NAS-Port 274> <NAS-Port-Id "ipoe0"> <NAS-Port-Type Ethernet> <Calling-Station-Id "6e:10:81:64:5c:31"> <Called-Station-Id "ens22"> <Acct-Status-Type Start> <Acct-Authentic RADIUS> <Acct-Session-Id "2021135e3a13b7f7"> <Acct-Session-Time 0> <Acct-Input-Octets 0> <Acct-Output-Octets 0> <Acct-Input-Packets 0> <Acct-Output-Packets 0> <Acct-Input-Gigawords 0> <Acct-Output-Gigawords 0> <Framed-IP-Address 192.168.16.2>]
[2020-05-04 19:25:16]: info: ipoe0: send [DHCPv4 Ack xid=3abd36f7 yiaddr=192.168.16.2 chaddr=6e:10:81:64:5c:31 <Message-Type Ack> <Server-ID 192.168.16.1> <Lease-Time 900> <T1 350> <Router 192.168.16.1> <Subnet 255.255.255.0> <DNS 192.168.66.110,8.8.8.8>]
[2020-05-04 19:25:16]: debug: ipoe0: radius(1): req_exit 0
[2020-05-04 19:25:16]: info: ipoe0: recv [RADIUS(1) Accounting-Response id=1]
[2020-05-04 19:25:16]: info: ipoe0: shaper: installed shaper 5120000/5120000 (Kbit)
[2020-05-04 19:25:16]: info: ipoe0: ipoe: session started

the log working with RouterOS CHR

nevesjunior
Posts: 7
Joined: 23 Apr 2020, 18:49

Re: ipoe_roteador_tp-link

Post by nevesjunior » 04 May 2020, 19:27

[ipoe]
verbose=5
#username=lua:username
username=lua:opt82_v2
#username=ifname
password=username
lua-file=/etc/accel-ppp.lua
lease-time=900
renew-time=350
max-lease-time=700
unit-cache=0
#l4-redirect-table=4
#l4-redirect-ipset=l4
#l4-redirect-on-reject=300
#l4-redirect-ip-pool=pool1
shared=1
ifcfg=1
mode=L2
start=dhcpv4
#start=up
ip-unnumbered=1
proxy-arp=1
#nat=0
#proto=100
#relay=192.168.68.70
#vendor=Custom
#weight=1
attr-dhcp-client-ip=DHCP-Client-IP-Address
attr-dhcp-router-ip=DHCP-Router-IP-Address
attr-dhcp-mask=DHCP-Mask
attr-dhcp-lease-time=DHCP-Lease-Time
#attr-dhcp-opt82=DHCP-Option82
#attr-dhcp-opt82-remote-id=DHCP-Agent-Remote-Id
#attr-dhcp-opt82-circuit-id=DHCP-Agent-Circuit-Id
#attr-l4-redirect=L4-Redirect
#attr-l4-redirect-table=4
#attr-l4-redirect-ipset=l4-redirect
#offer-delay=0,100:100,200:200,-1:1000
offer-timeout=20
#vlan-mon=ens19,10-200
#vlan-timeout=60
#vlan-name=%I.%N
#ip-pool=ipoe
#ipv6-pool=ipoe
#ipv6-pool-delegate=ipoe
#idle-timeout=60
#session-timeout=60
soft-terminate=1
check-mac-change=1
calling-sid=mac
#local-net=192.168.16.0/24
gw-ip-address=192.168.16.1/24
#interface=ens19
#interface=ens22,range=192.168.16.0/24,giaddr=192.168.16.10
interface=ens22,range=192.168.16.0/24

dimka88
Posts: 736
Joined: 13 Oct 2014, 05:51
Contact:

Re: ipoe_roteador_tp-link

Post by dimka88 » 06 May 2020, 16:12

Can you try to choose unicast DHCP in tp-link configuration?

nevesjunior
Posts: 7
Joined: 23 Apr 2020, 18:49

Re: ipoe_roteador_tp-link

Post by nevesjunior » 09 May 2020, 12:33

yes, follow the log:

[2020-05-09 12:28:59]: info: ipoe1: send [RADIUS(1) Access-Request id=1 <User-Name "c4:e9:84:6c:a4:d9"> <NAS-Identifier "accel-ppp"> <NAS-IP-Address 192.168.66.20> <NAS-Port 325> <NAS-Port-Id "ipoe1"> <NAS-Port-Type Ethernet> <Calling-Station-Id "c4:e9:84:6c:a4:d9"> <Called-Station-Id "ens22"> <User-Password 0xa3263ced38e37725cada9267a7e1a3aa8f646c606438bbecc6e0fc41fd239a76>]
[2020-05-09 12:28:59]: debug: ipoe1: radius(1): req_exit 0
[2020-05-09 12:28:59]: info: ipoe1: recv [RADIUS(1) Access-Accept id=1 <Mikrotik-Rate-Limit "5120000k/5120000k 0/0 0/0 0/0 8 0/0"> <Framed-Pool "ipoe">]
[2020-05-09 12:28:59]: info: ipoe1: c4:e9:84:6c:a4:d9: authentication succeeded
[2020-05-09 12:28:59]: info: ipoe1: send [DHCPv4 Offer xid=af10113 yiaddr=192.168.16.3 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Offer> <Server-ID 192.168.16.1> <Lease-Time 900> <T1 350> <Router 192.168.16.1> <Subnet 255.255.255.0> <DNS 192.168.66.110,8.8.8.8>]
[2020-05-09 12:29:01]: info: ipoe1: recv [DHCPv4 Discover xid=af10113 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Discover> <Max-Message-Size 1024> <Client-ID 01c4e9846ca4d9> <Host-Name TL-WR841N-ipoe> <Vendor-Class 4d53465420352e30> <Request-List Subnet,Router,DNS,Domain-Name,Route,Vendor-Specific,44,46,47,Classless-Route,249>]
[2020-05-09 12:29:01]: info: ipoe1: send [DHCPv4 Offer xid=af10113 yiaddr=192.168.16.3 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Offer> <Server-ID 192.168.16.1> <Lease-Time 900> <T1 350> <Router 192.168.16.1> <Subnet 255.255.255.0> <DNS 192.168.66.110,8.8.8.8>]
[2020-05-09 12:29:03]: info: ipoe1: recv [DHCPv4 Discover xid=af10113 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Discover> <Max-Message-Size 1024> <Client-ID 01c4e9846ca4d9> <Host-Name TL-WR841N-ipoe> <Vendor-Class 4d53465420352e30> <Request-List Subnet,Router,DNS,Domain-Name,Route,Vendor-Specific,44,46,47,Classless-Route,249>]
[2020-05-09 12:29:03]: info: ipoe1: send [DHCPv4 Offer xid=af10113 yiaddr=192.168.16.3 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Offer> <Server-ID 192.168.16.1> <Lease-Time 900> <T1 350> <Router 192.168.16.1> <Subnet 255.255.255.0> <DNS 192.168.66.110,8.8.8.8>]
[2020-05-09 12:29:07]: info: ipoe1: recv [DHCPv4 Discover xid=af10113 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Discover> <Max-Message-Size 1024> <Client-ID 01c4e9846ca4d9> <Host-Name TL-WR841N-ipoe> <Vendor-Class 4d53465420352e30> <Request-List Subnet,Router,DNS,Domain-Name,Route,Vendor-Specific,44,46,47,Classless-Route,249>]
[2020-05-09 12:29:07]: info: ipoe1: send [DHCPv4 Offer xid=af10113 yiaddr=192.168.16.3 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Offer> <Server-ID 192.168.16.1> <Lease-Time 900> <T1 350> <Router 192.168.16.1> <Subnet 255.255.255.0> <DNS 192.168.66.110,8.8.8.8>]
[2020-05-09 12:29:09]: info: ipoe1: recv [DHCPv4 Discover xid=af10113 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Discover> <Max-Message-Size 1024> <Client-ID 01c4e9846ca4d9> <Host-Name TL-WR841N-ipoe> <Vendor-Class 4d53465420352e30> <Request-List Subnet,Router,DNS,Domain-Name,Route,Vendor-Specific,44,46,47,Classless-Route,249>]
[2020-05-09 12:29:09]: info: ipoe1: send [DHCPv4 Offer xid=af10113 yiaddr=192.168.16.3 chaddr=c4:e9:84:6c:a4:d9 <Message-Type Offer> <Server-ID 192.168.16.1> <Lease-Time 900> <T1 350> <Router 192.168.16.1> <Subnet 255.255.255.0> <DNS 192.168.66.110,8.8.8.8>]

dimka88
Posts: 736
Joined: 13 Oct 2014, 05:51
Contact:

Re: ipoe_roteador_tp-link

Post by dimka88 » 10 May 2020, 08:25

Seems you need mirror traffic from client port and create pcap dump. I can't answer why this router doesn't receive DHCPOFFER. Can you provide tp-link logs?
Do you exclude some protection on switches?

nevesjunior
Posts: 7
Joined: 23 Apr 2020, 18:49

Re: ipoe_roteador_tp-link

Post by nevesjunior » 10 May 2020, 13:05

####################################################################
# TL-WR841N System Log
# Time = 2015-01-17 16:55:26 1443327s
# H-Ver = WR841N v9 00000000 : S-Ver = 3.16.9 Build 150310 Rel.54318n
# L = 192.168.0.1 : M = 255.255.255.0
# W1 = DHCP : W = 0.0.0.0 : M = 0.0.0.0 : G = 0.0.0.0
####################################################################

17th day 16:46:28 OTHER INFO User clear system log.
17th day 16:46:40 DHCP INFO DHCPC perform a DHCP renew
17th day 16:46:40 DHCP INFO DHCPC Send DISCOVER with request ip 0 and unicast flag 1
17th day 16:46:42 DHCP INFO DHCPC Send DISCOVER with request ip 0 and unicast flag 1
17th day 16:46:44 DHCP INFO DHCPC Send DISCOVER with request ip 0 and unicast flag 1
17th day 16:46:48 DHCP INFO DHCPC Send DISCOVER with request ip 0 and unicast flag 0
17th day 16:46:50 DHCP INFO DHCPC Send DISCOVER with request ip 0 and unicast flag 0
17th day 16:46:52 DHCP INFO DHCPC DHCP Service unavailable, recv no OFFER

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest