ip route
ping -c3 192.168.122.1
ping -c3 `ip route | awk '/default/ {print $3}'`
curl --trace-ascii trace.txt https://google.com
Yes that is possible too, there are more ways so you get to choose what you find easiest.Or merge both commands into one!
ip route | awk '{ print $3 }' | head -n1 | xargs ping -c3
Yes that is possible too, there are more ways so you get to choose what you find easiest.
I do it in two steps when posting here on the forum because I try to avoid confusing new users and that way they will start to see the basics instead of being scared off my the awk command.Code:ip route | awk '{ print $3 }' | head -n1 | xargs ping -c3
ip route | awk '{ print $3 }' | head -n1 | base64 | base64 -d | xargs ping -c3
No, I cannot.Can you even reach your default gateway?
Then try to ping your default gateway, for example this.Code:ip route
Replace 192.168.122.1 with the output of your default gateway of the first command.Code:ping -c3 192.168.122.1
3 packets transmitted, 0 received, 100% packet loss, time 2037ms
ip a
lol what are you using to generate a random line about ale/beer?Okay.
Hmm. Not helpful.Code:[user@prodnfs1 data]# ip a HAL: I'm sorry Dave, we do not have Indian Pale Ale on tap.
Just a manual hack lol. I saw the ip a letters and here we go.lol what are you using to generate a random line about ale/beer?