Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Saturday, 13 July 2024

How To Hide Pinned Bookmarks on Browser(Google Chrome)

 Let's say you have given your computer screens on remote to someone to troubleshoot something in your computer. in that case, let's say you don't want to show your pinned bookmark of your browser to that person.


To hide the bookmark, You have to press the (Ctrl+Shift+B) key to hide the pinned bookmarks of your browser..!

Tuesday, 23 April 2024

Subnet Mask & Wildcard Mask Explanation in a Simple Way..!!

 Subnet Mask tells us the number of network bits and the number of host bit present in an IP.

Wildcard mask is used to identify which bits in an IPv4 address to match. In which binary 1 is equal to a match and binary 0 is not a match. 

A Wildcard mask is used in ACL to match the IP address in a better way to permit or deny . and also in some routing protocols, we use wildcard masks to advertise the network such as OSPF etc..!

Wildcard masks use the following rules to match binary 1s and 0s:

  • Wildcard mask bit 0: Match the corresponding bit value in the address.

  • Wildcard mask bit 1: Ignore the corresponding bit value in the address.


How to calculate the Wildcard mask.??.

Wildcard Mask = 255.255.255.255 - Actual Subnet Mask.

Example-1.


Network=192.168.3.0/24
Subnet Mask=255.255.255.0

Starting value                     

255.255.255.255

Subtract the subnet mask

–255.255.255. 0

Resulting wildcard mask

0. 0. 0.255



Example 2

Network=192.168.1.0/28
Subnet Mask=255.255.255.240



Starting value

255.255.255.255

Subtract the subnet mask

–255.255.255.240

Resulting wildcard mask

0. 0. 0. 15



Example 3

Network=192.168.1.0/23
Subnet Mask=255.255.254.0


Starting value

255.255.255.255

Subtract the subnet mask

–255.255.254. 0

Resulting wildcard mask

0. 0. 1.255




IPv4 Subnetmask and Wildcardmask Cheetsheet..!

List of wildcard masks
SlashNetmaskWildcard mask
/32255.255.255.2550.0.0.0
/31255.255.255.2540.0.0.1
/30255.255.255.2520.0.0.3
/29255.255.255.2480.0.0.7
/28255.255.255.2400.0.0.15
/27255.255.255.2240.0.0.31
/26255.255.255.1920.0.0.63
/25255.255.255.1280.0.0.127
/24255.255.255.00.0.0.255
/23255.255.254.00.0.1.255
/22255.255.252.00.0.3.255
/21255.255.248.00.0.7.255
/20255.255.240.00.0.15.255
/19255.255.224.00.0.31.255
/18255.255.192.00.0.63.255
/17255.255.128.00.0.127.255
/16255.255.0.00.0.255.255
/15255.254.0.00.1.255.255
/14255.252.0.00.3.255.255
/13255.248.0.00.7.255.255
/12255.240.0.00.15.255.255
/11255.224.0.00.31.255.255
/10255.192.0.00.63.255.255
/9255.128.0.00.127.255.255
/8255.0.0.00.255.255.255
/7254.0.0.01.255.255.255
/6252.0.0.03.255.255.255
/5248.0.0.07.255.255.255
/4240.0.0.015.255.255.255
/3224.0.0.031.255.255.255
/2192.0.0.063.255.255.255
/1128.0.0.0127.255.255.255
/00.0.0.0255.255.255.255






Wednesday, 17 April 2024

Timestamp ping in CMD...Windows ..

 By using CMD, You can use the below given command to ping to any destination with having date and time .


ping -t google.com|cmd /q /v /c "(pause&pause)>nul & for /l %a in () do (set /p "data=" && echo(!date! !time! !data!)&ping -n 2 google.com>nul"







Timestamp Ping Export to a Text File.

 In this blog i will show you, How you can ping to a destination with  date and time by using CMD and also you can export the ping report to a text.


Find the command given below.


C:\Users\hp>ping -t google.com|cmd /q /v /c "(pause&pause)>nul & for /l %a in () do (set /p "data=" && echo(!date! !time! !data!)&ping -n 2 google.com>nul" >D:\pingtest.txt

Once you will enter the above command on your CMD then this script will create a text file in your computer and it will store the ping reports in that notepad file.