How to check all the links in your network setup chain

Moderator: Forum moderators

Post Reply
User avatar
Jafadmin
Posts: 377
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 84 times

How to check all the links in your network setup chain

Post by Jafadmin »

These are the bare basics needed for your network to get on the Internet, in the order they are used:

Network Interface (NIC) -> IP address -> Default Route -> Gateway(public) IP address -> DNS server -> WWW

Here is a command line bash script that will perform the test for you and let you know what problems exist, if any. The only thing you as a user need to do is set the Public IP address variable (PUBIP) in the script, for your individual network.

Put it in /my-applications/bin, then just run the 'chklan' command from any console

chklan.gz
(644 Bytes) Downloaded 64 times

[edit] I changed the PUBIP variable to "0.0.0.0" so it doesn't fail initially. User needs to set it to their public IP when possible.

This utility should work with any Linux that uses the bash shell.

Last edited by Jafadmin on Tue Sep 21, 2021 5:55 pm, edited 7 times in total.
User avatar
bigpup
Moderator
Posts: 6403
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 757 times
Been thanked: 1325 times

Re: How to check all the links in your network setup chain

Post by bigpup »

The only thing you as a user need to do is set the Public IP address variable (PUBIP) for your individual network.

How do you do that?
.
.
After downloading, UN-compressing the chklan.gz file.
Had to give it exec permission to get it to run.

Forum Global Moderator
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Post Reply

Return to “Network/Server”