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

Possibility to take IP from another gateway #71

Open
denisjoshua opened this issue Sep 15, 2023 · 2 comments
Open

Possibility to take IP from another gateway #71

denisjoshua opened this issue Sep 15, 2023 · 2 comments

Comments

@denisjoshua
Copy link

Hi there,
at my home I have 2 connections. (ADSL and 5G)

I want to run the script in a server, but I want to take the IP from another router (gateway).
Is this possible please ?

Thanks in advance
Denis

@user8446
Copy link

Here are two ways to get the IP that way:

ifstatus wan | jsonfilter -e '@["ipv4-address"][0].address'

ip route get 1.2.3.4 | awk '{print $7}'

@denisjoshua
Copy link
Author

Thanks a lot :-)

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

No branches or pull requests

2 participants