Fiber from French Orange ISP by DHCP (dhcp-client option)

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
xes_
DD-WRT Novice


Joined: 21 Oct 2016
Posts: 31

PostPosted: Fri Mar 24, 2017 21:05    Post subject: Fiber from French Orange ISP by DHCP (dhcp-client option) Reply with quote
Hi,

I have a fiber connection.

Normally, we should use the ISP Box but I want to connect directly with DD-WRT.
I can connect by PPPOE but static public IP is only given when connection is performed by WAN DHCP Client (It's a ISP restriction)

For that, I have a Netgear R7800 and I configured my DD-WRT like this:
- Choose DHCP
- On Configuration / Network, I added a VLAN Tagging 832
- On Configuration / Network, Choose the eth0.832 wan iterface

But I need to configure 3 dhcp-options of dhcp-client:

userclass=+FSVDSL_livebox.Internet.softathome.Livebox3
authsend=fti/xxxxxxx
vendor-class-identifier=sagem

code=77 name=userclass value=0x2b46535644534c5f6c697665626f782e496e7465726e65742e736f66746174686f6d652e4c697665626f7833
code=90 name=authsend value=0x00000000000000000000006674692fxxxxxxxxxxxxxx (or 00000000000000000000001a0900000558010341010d6674692fxxxxxxxxxxxxxx)
code=60 name=vendor-class-identifier value=0x736167656d

How can I do that ?


Thanks a lot !


Last edited by xes_ on Mon Oct 01, 2018 17:51; edited 5 times in total
Sponsor
xes_
DD-WRT Novice


Joined: 21 Oct 2016
Posts: 31

PostPosted: Sat Mar 25, 2017 23:37    Post subject: Reply with quote
Normally, this command should work (I have replaced my login per xxxxxxxxxxxxxx):

udhcpc -i eth0.832 -p /var/run/udhcpc.pid -s /tmp/udhcpc -O routes -O msstaticroutes -O staticroutes -H myrouter -x "0x4d:2b46535644534c5f6c697665626f782e496e7465726e65742e736f66746174686f6d652e4c697665626f7833" -x "0x5a:00000000000000000000006674692fxxxxxxxxxxxxxx" -x "0x3c:736167656d"

But I have only this out and it doesn't work:

udhcpc: option -h NAME is deprecated, use -x hostname:NAME
udhcpc: started, v1.26.2
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover


Last edited by xes_ on Sun Mar 25, 2018 1:55; edited 3 times in total
xes_
DD-WRT Novice


Joined: 21 Oct 2016
Posts: 31

PostPosted: Sat Mar 24, 2018 23:29    Post subject: Reply with quote
For now, it works perfectly!!!



See below, my ugly workaround to have a configuration without the isp box (livebox) by dhcp:
For now, my ddwrt router is plugged directly to the ONT

- Choose DHCP Connection type
- On Configuration / Network, add a VLAN Tagging 832
- On Configuration / Network, choose the eth0.832 wan interface
- On Administration / Shell / Firewall Script:
=====
vconfig set_egress_map `get_wanface` 0 6
iptables -t mangle -I POSTROUTING -j CLASSIFY --set-class 0:1
=====
- On Administration / Shell / Startup Script:
=====
cp -a /sbin /tmp/sbin_rw

mkdir /tmp/sbin
ln -s /bin/busybox /tmp/sbin/udhcpc
rm /tmp/sbin_rw/udhcpc
echo '#!/bin/sh
exec /tmp/sbin/udhcpc $* -x "0x4d:2b46535644534c5f6c697665626f782e496e7465726e65742e736f66746174686f6d652e4c697665626f7833" -x "0x5a:00000000000000000000001a0900000558010341010d6674692fxxxxxxxxxxxxxx" -x "0x3c:736167656d"' > /tmp/sbin_rw/udhcpc
chmod +x /tmp/sbin_rw/udhcpc

mount -o bind /tmp/sbin_rw /sbin

stopservice wan
startservice wan
=====


Don't forget to replace "xxxxxxxxxxxxxx" by your login in hexadecimal(Only what there is after fti/)


And that works but it's very ugly because I need to replace read only /sbin by a copy that contains a fake udhcpc command
I hope there is a better solution to add udhcpc options...

Any idea?


Last edited by xes_ on Mon Oct 01, 2018 17:52; edited 1 time in total
xes_
DD-WRT Novice


Joined: 21 Oct 2016
Posts: 31

PostPosted: Wed Aug 01, 2018 14:34    Post subject: Reply with quote
Quote:
Edit: I have also another issue. Connection from outside seems to be slow because the CoS of new requests from external are 6. VLAN et CoS part can be replaced by a Switch: https://lafibre.info/remplacer-livebox/switch-gs108tv2-pour-prendre-en-charge-la-cos-devant-les-routeurs/


Fixed by Bob62 from lafibre.info:
Code:
iptables -t mangle -I POSTROUTING -o `get_wanface` -j CLASSIFY --set-class 0:1

has been replaced by
Code:
iptables -t mangle -I POSTROUTING -j CLASSIFY --set-class 0:1
xes_
DD-WRT Novice


Joined: 21 Oct 2016
Posts: 31

PostPosted: Thu Sep 27, 2018 21:40    Post subject: Reply with quote
For information, now, in certain circumstance, the option 90, must be:
Code:
00000000000000000000001a0900000558010341010d6674692fxxxxxxxxxxxxxx
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum