Blog about networking tutorial and device configuration. Blog about various type of software troubleshooting.
Tuesday, September 29, 2020
The Network Bridge on Device VMnet0 is not Running
Sunday, September 27, 2020
Vmware New USB Device Detected Popup
In "Vmware" version 15, sometimes we are getting popup message related with USB device. The complete message is "New USB Device Detected". One screenshot of the popup message is below:-
This popup message is appearing continuously even we select the option "Remember my choice". In this tutorial we will learn about, how to stop this popup from being displayed. Let's start...
First of all go to "Edit" from menu bar and then select "Preferences".
Now click on "USB" from list and make a choice from the right panel.
Remember one thing, you can't select "Ask me what to do" option. If so, then this popup will be displayed aging and again.
Saturday, September 26, 2020
IP Address Configuration Linux
In Linux operating system, we can configure IP address in two ways. One is using graphical mode and the other is using command line mode. Again, during the operating system installation time an IP address can be configured. However, in order to configure the IP address graphically, the graphical environment must be pre-installed. In this tutorial, we will learn how to configure IP using command line mode.
We know that, when a network interface card is inserted into the Linux operating system, a script file is generated. By editing that script file, we can configure the IP address for that network interface card. The location of the file is: -
Ubuntu Configure IP Address
In Ubuntu operating system, we can configure IP address in two ways. One is using graphical mode and the other is using command line mode. Again, during the operating system installation time an IP address can be configured. However, in order to configure the IP address graphically, the graphical environment must be pre-installed. In this tutorial, we will learn how to configure IP using command line mode.
We know that, when a network interface card is inserted into the Ubuntu operating system, a script file is generated. By editing that script file, we can configure the IP address for that network interface card. The location of the file is: -
CentOS Configure IP Address
In CentOS operating system, we can configure IP address in two ways. One is using graphical mode and the other is using command line mode. Again, during the operating system installation time an IP address can be configured. However, in order to configure the IP address graphically, the graphical environment must be pre-installed. In this tutorial, we will learn how to configure IP using command line mode.
We know that, when a network interface card is inserted into the CentOS operating system, a script file is generated. By editing that script file, we can configure the IP address for that network interface card. The location of the file is: -
One thing we need to keep in mind here is that, the name for the first network card will be “ifcfg-eth0”, then the name for the second will be “ifcfg-eth1”, the name for the third will be “ifcfg-eth2”, and so on.
Now we will open the script of that network card using “VI editor”. If you want, you can use any editor other than "VI Editor". The complete command to open the file is: -
Since, after opening the file it will be in “read only” mode, so we will have to go to “insert” mode. To go into “insert” mode we need to press “i” from the keyboard.
After opening the file, we will add some lines here. The lines are: -
IPADDR=192.168.3.61
NETMASK=255.255.255.0
GATEWAY=192.168.3.253
One thing to note here is that, by default CentOS operating system enables "dhcp" mode for IP address configuration.
After configuring our IP address, we have to configure our DNS address. The file we need to edit to configure the DNS address is:
Vmware Attempting to Start Up From
To start a newly created virtual machine, we got an error like following image.
VM failed to boot or VM failed to load from hard drive or CDROM. If the firmware type of VM is selected as "UEFI", then this error message will be appeared. Just like as following image:-
To resolve this issue, simply just change the firmware type to "BIOS". Then everything will be okey.
Step by step process is shown below:-
First of all, we have to edit the virtual machine settings. To edit the settings, select "Edit virtual machine settings".
Mikrotik Netwatch Auto Failover
Netwatch tool, that monitors the
status of a network or a link. At a certain point in time, this tool sends a
ping request to a predefined network or a link. If for some reason this tool
does not receive a ping response from that link or network, it sends a
notification in the form of email or SMS to the system admin or user. Or maybe
re-route the traffic to a different ISP or gateway.
Whenever there is a change detected in the status of the link, related action will be taken. The Netwatch tool performs this task with the help of some scripts. Whenever there is a change in the status of the link, the script related to that status will be started.
In this tutorial, we will discuss how to re-route traffic to a secondary ISP or gateway if the primary ISP or gateway gets down. At the same time, we will be discussing how to get back to the primary ISP or gateway if it comes back.
At this point, we already know that the “Netwatch” tool can monitor a gateway status or a server link by pinging that device that is located on the internet. If for any reason that link or server goes down, then this tool will disable the failed gateway link and at the same, it will enable the secondary gateway link. All the things will be done by executing the script which we have to be configured into the Netwatch tool.
In this case, no matter which link is down, it may be our router to ISP-1 link or it may be ISP-1 to their gateway link, the router will switch to secondary ISP automatically.
Now we will discuss the script that, the “Netwatch” tool will execute if the primary gateway goes down. We assume that our primary ISP gateway address is 1.1.1.1 and our secondary ISP gateway address is 2.2.2.2. We are assuming more that, the Netwatch tool will continuously send ping requests to the 8.8.8.8 server that is located on the internet using the primary ISP gateway. Also, it will send a ping request to the 8.8.4.4 server using a secondary ISP gateway. If for some reason, it didn’t get any ping response from those servers between specific periods of time, then it will disable that specific gateway. Means, If the Netwatch tool didn't get a response from the 8.8.8.8 server, then it will disable the ISP-1 gateway which is 1.1.1.1 and in the same way, if it didn't get a response from the 8.8.4.4 server, then it will disable the second ISP gateway, which is 2.2.2.2. After getting a response, it will enable it automatically.
At this point, we will add two more routes to trace the link status of ISP-1 and ISP-2. We will send 8.8.8.8 traffic via ISP-1 and 8.8.4.4 traffic via ISP-2.
To trace the ISP-1 link we will add the following route
To trace the ISP-2 link we will add the following route
Now we will go for a script.
The script for disabling primary route:-
ip route disable [find gateway="1.1.1.1"]
[Note:- If we use any comment for primary gateway entry than here we can use that comment for disabling that gateway]
ip route disable [find comment=”write_your_comment”]
For example:- ip route disable [find comment=”backup route”]
or
ip route disable [/ip route find comment="my comment"]
For example:- ip route disable [/ip route find comment="backup route"]
In the same way, the script for enabling secondary route:-
ip route enable [find gateway="2.2.2.2"]
or
ip route enable [find comment=”write_your_comment”]
For example:- ip route enable [find comment=”backup route”]
or
ip route enable [/ip route find comment="my comment"]
For example:- ip route enable [/ip route find comment="backup route"]
How to configure those script into the Netwatch tool, is shown using the picture below:-
First of all, we will open the Netwatch tool and create a rule.