Git Product home page Git Product logo

Comments (5)

fabianishere avatar fabianishere commented on May 31, 2024

It seems some routes are duplicated with different metrics. This could happen when the ifindex of an interface changes.
To test this hypothesis, in /usr/lib/udm-iptv/udhcpc.hook, could you add the following:

export PATH=/usr/bin:/bin:/usr/sbin:/sbin

# Use busybox if iproute2 is not installed
if ! command -v ip > /dev/null 2>&1; then
    alias ip="busybox ip"
fi

+export IF_METRIC=200

That should resolve the issue if my hypothesis is true.

from udm-iptv.

reinierjh avatar reinierjh commented on May 31, 2024

I tried the suggested change, and although the metric started again at 200, it just keeps adding duplicate routes.
10.10.0.33 via 10.10.56.1 dev iptv metric 200
10.10.0.33 via 10.10.56.1 dev iptv metric 201
10.10.0.33 via 10.10.56.1 dev iptv metric 202
185.24.175.0/24 via 10.10.56.1 dev iptv metric 200
185.41.48.0/24 via 10.10.56.1 dev iptv metric 200
185.41.48.0/24 via 10.10.56.1 dev iptv metric 201

from udm-iptv.

reinierjh avatar reinierjh commented on May 31, 2024

Almost 24 hours later, and this is stil the case. but because we start at 200 everytime the above stays the same 6 rows.
I try not to touch the router to see if something happens.

from udm-iptv.

fabianishere avatar fabianishere commented on May 31, 2024

I guess your ISP sends the routes in different order when renewing the lease, causing a different metric in turn.

See

route_add $dest $gw $num && num=$(($num + 1))

from udm-iptv.

reinierjh avatar reinierjh commented on May 31, 2024

As far as i can see the routes only doulble. so no more than 2 routes to the same address exists.
When look in the .hook file:
for i in $router; do
if ! ip -4 route show | grep ^default | grep $i; then
routes
This should only execute route when the route is not found.
On my machine ip -4 route show | grep ^default returns nothing.
Although the routes are already there.

from udm-iptv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.