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

Suggestion for dbab-get-list script #6

Open
wilbert-vb opened this issue Apr 16, 2018 · 1 comment
Open

Suggestion for dbab-get-list script #6

wilbert-vb opened this issue Apr 16, 2018 · 1 comment

Comments

@wilbert-vb
Copy link

Read ipv4 address from the device:

dbabsvr_addr4=$(hostname -I|sed 's/\s.*$//')
echo $dbabsvr_addr4
192.168.1.1

Read ipv6 address from the device:

dbabsvr_addr6=$(hostname -I|sed 's/[^ ]* //')
echo $dbabsvr_addr6
2602:306:cdb5:67d0:ba27:ebff:fe0a:c6f5
@suntong
Copy link
Owner

suntong commented Apr 17, 2018

Thanks @wilbert-vb,

The IPv6 used to slow things down for me, and have caused weird problems to me previously, so the first thing I do when on a new system is to disable IPv6.

Up till now, I still fail to see why I need IPv6, on top of a working IPv4. I.e., to me IPv4 is working fine and IPv6 brings nothing that I really need, but an extra layer of configuration, and risk of breaking things down.

So on my machine:

dbabsvr_addr6=$(hostname -I|sed 's/[^ ]* //')
$ echo $dbabsvr_addr6
192.168.2.101

But I'll keep the suggestion open, in case someone else find it useful.

Thanks again

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