Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

DHCP provided rfc3442-classless static routes

$
0
0

I have been making a few changes to my edgerouter configuration to increase the robustness (and have some fun!)    Some background…

 

My ISP is Bell-Aliant Fibe (nee FibreOP) in Atlantic Canada. The my initial goal was to replace the supplied router (an Actiontec R1000H in my case, an R3000 for my neighbour) with an edgerouter lite.

 

After some research and experimentation, we have a configuration which works well requiring a vlan for Internet service and another vlan with egress qos for IPTV.  We also we needed to manually create an egress route on the IPTV network which is done automatically on the ISP supplied router.   I had tried using the dhcp client to obtain route information but was unable to get it working so we simply have been checking the routing table on the supplied router and then implementing this on the ERL.  

 

I've been following a couple of conversations about rfc3442-classless-routes as it appears that our ISP uses this method to supply the route on the Actiontec boxes.  When I tried this on the ERL, I had no luck.  Looking at the conversations with a packet capture, I could see there was a response but the edgerouter was not acting on the information.  It turns out that other providers also use this method and other ER users also experienced this (@coend, ).  The solution is to add a script named rfc3442-classless-routes in /etc/dhcp3/dhclient-exit-hooks.d and chmod it to 755 to handle the route. Then, a dhcp-client client-option requesting the route is added to the appropriate vlan as “request subnet-mask, routers, rfc3442-classless-static-routes;”

 

I've been working with a fellow Fibe/FibreOP subscibers (@avpavp and ) and have found that this method works as well.

 

My question is:  Could this script or one similar be added to the build so we do not have to re-add/update between firmware versions?

 

The script I use can be found (not my work – thanks to for the pointer ) here.

 

My vlan configuration looks like:

        vif 34 {
            address dhcp
            description "FibreOP IPTV"
            dhcp-options {
                    client-option "request subnet-mask, routers, rfc3442-classless-static-routes;"
                default-route no-update
                default-route-distance 210
                name-server no-update
            }
            egress-qos "0:4 1:4 2:4 3:4 4:4 5:4 6:4 7:4"
            firewall {
                in {
                    name IPTV_IN
                }
                local {
                    name IPTV_LOCAL
                }
            }
        }

Viewing all articles
Browse latest Browse all 20028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>