Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omit deprecated IPv6 adresses #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eidottermihi
Copy link

filter out deprecated addresses which should not be used ( see https://man7.org/linux/man-pages/man8/ip-address.8.html ), e.g.:

For example with this configuration

81: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
[...]
    inet6 fd00::1234:4567:8910:f6db/64 scope global deprecated dynamic mngtmpaddr noprefixroute 
       valid_lft 7112sec preferred_lft 0sec
    inet6 2001:a61:1234:5678:9012:3456:7890:f6db/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 6471sec preferred_lft 2871sec
[...]

the script would currently report " fd00::1234:4567:8910:f6db" as public ip adress.

filter out deprecated addresses which should not be used ( see https://man7.org/linux/man-pages/man8/ip-address.8.html )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant