Skip to main content

Posts

Showing posts with the label troubleshooting network

Linux: Displays Interface Status in Up or Down State

The `ip link show` command, available in more recent versions of Linux that support the `ip` command, provides information about network interfaces and their respective states. Executing `ip link show` yields extensive details regarding the interface, including its MAC address, operational state, IP address, and additional relevant information. The command below identifies the names of interfaces currently in either an UP or DOWN state. The output is piped to `grep` to filter and display only the state alongside the interface name. To display interfaces in a DOWN state, use the following command: ```ip command: echo "Interface on DOWN state: $(ip link show | grep "state DOWN" | grep -oP '^[0-9]+:\s+\K\S+' | cut -d: -f1)" ``` To display interfaces in an UP state, the command is: ```ip command: echo "Interface on UP state: $(ip link show | grep "state UP" | grep -oP '^[0-9]+:\s+\K\S+' | cut -d: -f1)" ``` The follo...

Check multiple IPs via bash one-liner loop using ping or dig

Ping multiple Linux servers via Bash script. Pinging a Linux server sounds a very common and simple task for any SysAdmin. However, if there are quite a few IP Addresses to check, it's quite daunting as typing on the terminal window is quite tedious and prone to error or mistype. Bash script is a way to go for this type of task. Just prepare all the IP Addresses that needs to be checked in a single text file. Do a loop to check all the IP Addresses on the text file and just watch the Bash do its job. Here's a simple code to do it: for ipx in $(cat ipx.txt); do ping -c 3 $ipx; done ipx.txt <<< should contain all IP Addresses to be checked Example of ipx.txt contents: 1.2.3.4 4.5.6.7 10.10.10.1 .... .... etc.. Above command can also be used to check DNS Reverse record using dig. Example: for ipx in $(cat ipx.txt); do dig -x $ipx; done The above will perform a reverse DNS lookup. There's a lot of uses cases that can be done, with the above command. That's it. Enjo...

Outlook keeps disconnecting and laptop no network or WiFi

Outlook is a very good tool, however if it gives some issues, it can ruin your day or your mood to work. Well, as the odds say nothing is perfect and even the flowers on the field that looks so beautiful will one day fade away. Same goes with our electronic devices, you just don’t know when it will go south. It might even give you issues when you needed it most to work properly, and sometimes that will be the time that it will not work as expected. Anyway, problems will always be there. The only question is, how will you face the issue or problem? For Outlook not responding and also the network or WiFi keeps disconnecting even though your phone or other devices or laptop has no issue to the network. It seems that the laptop has been singled out, and that’s the only device on the network that is not working. There are various approaches to solve this issue. Sometimes, it’s the same issue Outlook not responding or no network, but then different ways to resolve the problem. Yes,...

Unable to browse website or the internet

In today's digital world, browsing website is a must. And if unable to browse then it could be an issue especially if you need to get things done. You need a piece of code but unable to browse StackOverflow is quite terrifying for a person developing a simple program. Others don't care how things work, they just want to get things done and that's it. But if unable to browse a website there could be a lot of things involved. Here are some possible issues why unable to browse a site or the Internet. Of course the list below is just a small fraction of why unable to browse the Internet.   - Website or URL trying to browse is not available or server that host the website is down or offline - Website or URL is typed incorrectly on the address bar - Website is a non www URLs, example website is only http:\\thewebsite.com other than www.thewebsite.com - Website TLD or Top-Level Domain is incorrectly entered the site ends .net or .org .mil or other TLDs - Some website...

Windows release DHCP IP Address and get a new one

 Working remotely is quite a norm in today's pandemic world.  IT / System Admin working remotely may find it difficult or a good opportunity to work at the comfort at their own homes. Difficult in a way, when something goes wrong on a server or any device and you need a physical hand even just to force power off and turn it back on may seem an impossible task. DHCP is an amazing technology that lets machines auto configured themselves with an IP Address without human intervention. But not everything seems to work smoothly at times, and if you have multiple networks in a single manage switch. Changing one network from another makes life easier using a manage switch. However, the machine, server or computer may not change easily; you either need to reboot the machine or just simply release and renew the DHCP to set or get the desired IP Address from a new network profile. In Windows DHCP network, ipconfig /release will release the IP and the machine will be automat...

Basic network monitoring tools

Basic network, monitoring tools and troubleshooting on Windows. For those who have just embark on the field of Information Technology and even for those who are eager to learn on how to troubleshoot or do some network basic monitoring, Windows  has a lot of built in command to do this basic tasks. In a small office or even in a large environment, there will always come a time that you will be disconnected to the internet  or even at your own home. Basic or let's say common problem is unable to print, unable to connect to network share, unable to connect to "Facebook", or unable to connect to Google to find some programming code. Basically cannot connect to any websites on the internet and other things that user should do at home but love to do it at work. Before we discuss on how to use those basic tools, let's define and discuss about two important and basic configuration on a local computer or workstation. In every computer or workstation that ...