Thursday, September 9, 2010

Subnetting

# How to understand about Subnetting ?

2^7 2^6 2^5 2^4 2^3 2^2 2^1 2^0
128 64 32 16 8 4 2 1
128 192 224 240 248 252 254 255

# How to find Host ?

c=2^n-2 where c= host or computer and n=number of bit or /n or /27

# How to find network or subnets ?

network or subnets = 2^n where n= network
for class A = Total 24 bits to use for subnetting.
for class B = Total 16 bits to use for subnetting.
for class C = Total 8 bits to use for subnetting.

# What is the subnet for the host IP address 201.100.5.68/28 ?

Here /28 means 255.255.255.240 subnet
from formula,
Host =2^32-28-2=14
subnets=2^4=16(network)
here host=14 then
0-15
16-31
32-47
48-63
64-79
Here 64 subnet 79 Broadcast
(68 comes between this range means 201.100.5.64 will be subnet
and 201.100.5.79 will Broadcast)
Host range=201.100.5.65-201.100.5.78
1 after bit 1 before bit Host Range.
80-95

# What is the Subnet for the host IP address 172.16.210.1/22 ?

Here /22 =255.255.252.0
172.16.210.1 in Binary
10101100.00010000.11010010.00000001 AND Opration
11111111.11111111.11111100.00000000 2 bit
255.255.128+64+32+16+8+4.(2+1).0
_________________________________________
10101100.00010000.11010000.00000000

Again convert Decimal
172.16.208.0 Subnet
For Broadcast here 2 bit host(total 10 bit 8+2 )
Broadcast 172.16.211.255 (Because 2+1=3, 208+3=211
Host Range=172.16.208.1-172.16.211.254
Host Range =(subnet+1)-(Broadcast-1)

# What is the Subnet for the host IP 172.16.210.4/27 ?

172.16.210.4 255.255.255.224
Convert Both in Binary & AND Opration
10101100.00010000.11010010.00000100
11111111.11111111.11111111.11100000
________________________________________________
10101100.00010000.11010010.00000000 convert Decimal

172.16.210.0 Subnet

How to find out Broadcast,here Host no.=30 then range start will be

0-31 4 comes this range means 172.16.210.4
32-63 Here Subnet =172.16.210.0
64-95 Broadcast =172.16.210.31
Host Range = 172.16.210.1 - 172.16.210.30
Host Range =(subnet+1)-(Broadcast-1)

# What is the subnet for the ip address 10.10.5.68/28 ?
Here Hosts=2^4-2=14
subnets = 2^20 (28-8)=1048576
0-15
16-31
32-47
48-63
64-79 (68 comes this range) here subnet=10.10.5.64
80-95 Braadcast=10.10.5.79


Host Range =(subnet+1)-(Broadcast-1)

Host Range = 10.10.5.65 - 10.10.5.78

# What is the subnet for the ip address 172.16.210.1/21 ?

10101100.00010000.11010010.00000001
11111111.11111111.11111000.00000000
255.255.128+64+32+16+8.(4+2+1).0
_______________________________________________
10101100.00010000.11010000.00000000
172.16.208.0
Subnet = 172.16.208.0
Broadcast = 172.16.215.255 (208+7)((4+2+1))
Host Range =(subnet+1)-(Broadcast-1)
Host Range = 172.16.208.1 - 172.16.215.254

# What is the subnet for the IP address 10.10.5.68/21 ?
00001010.00001010.00000101.01000100
11111111.11111111.11111000.00000000
______________________________________________
00001010.00001010.00000000.00000000
Subnet = 10.10.0.0
Broadcast= 10.10.7.255
Host Range= 10.10.0.1 - 10.10.7.254

Wednesday, April 21, 2010

My Networking

#How to enable or desable Hibernate ?
Click Start, and then type cmd in the Start Search box.
In the search results list, right-click Command Prompt, and then click Run as Administrator.
When you are prompted by User Account Control, click Continue.
At the command prompt, type powercfg.exe /hibernate on, and then press ENTER.
Type exit and then press ENTER to close the Command Prompt window.

#How do I clear a laptop BIOS or CMOS password?

Question

How do I clear a laptop CMOS password?

Answer

The below steps are for a laptop computer and do not include steps on how to clear a desktop BIOS or CMOS password.

A laptop BIOS password is more secure than a traditional desktop to help protect the data if it was stolen. If you are the original owner of the laptop, we highly recommend contacting the manufacturer of the laptop. Companies such as Dell, Lenovo, and Toshiba can reset the password if you are the original owner using the Service Tag, disk, or give you exact steps for your laptop.

If you are not the original owner of the laptop, there are some ways to bypass the password depending on the manufacture and model of the laptop.

5 to 8 character code on System Disabled screen
1.As the computer is booting press F1, F2, or Del to enter CMOS setup.
2.In CMOS setup when prompted for a password, guess three times until you're giving the code. If after entering the wrong password three times the computer is displaying a 5 to 8 code, as shown in the picture, continue to the next step.
3.Write down the code and visit Dogbert's BIOS Password Backdoors scripts page to download Python and the free Python scripts to clear many of these types of passwords.

Clear by dipswitches, jumpers, jumping BIOS, or replacing BIOS

Finally, if the above suggestions do not apply to your laptop you will need to open the laptop and clear the password using dipswitches, jumpers, jumping the BIOS using a paperclip or soldering a wire to pins on the BIOS, or in some situations replacing the BIOS chip.

Which step you take depends on the manufacturer and model of your laptop computer. For most end users we highly recommend having the laptop serviced by a qualified technician who can properly disassemble a laptop.


#How to Shutdown Remote computer ?
c:\shutdown /s /m computer name or ip.
c:\shutdown -m \\ip address.
c:\shutdown -i (Gui this is the Best command)

#How to find remote computer IP Address ?
open cmd type arp -a

#How to know host name of remote compueter ?
ping -a 192.168.2.1(ip address of remote computer)

# SHUTCMD \\205.56.44.24 /Y
NOTE: You must first logon to the computer that you're trying to reboot.

# How to know how many users in this computer ?
c:/> net user

# How to know server name or remote computer ?
c:/> net view

# How to know ip address of remote computer or server ?
c:/> tracert server name
i.e -> tracert casean

# How to know shared printer on the server or remote computer ?
c:/> net view \\casen (where casen=server name or remote computer name)

# How to know other computer name through command ?
c:/> tracert 192.168.0.66 (ip address of other computer)

# How to know other computer name ?
c:/> arp -a

Monday, April 19, 2010

My Html Learning

# How to embed flash player in html.

@object width="320" height="242"@
@embed src="c:\picture\saksham\saksham.swf" width="320" height="242"@
@/embed@
@/object@
where < >=@
# How to create Link in Html.
www.google.com
#how set Marquee ?
1.marquee width=100% direction=right,left,up,down bgcolor=yellow>This is Dheeraj Blog.
marquee width=30% direction=left bgcolor=yellow
3.marquee width=60% behavior=alternet bgcolor=yellow
4.marquee width=60% alternet=left bgcolor=yello
5.This is an example of a scrolling marquee
6.7.marquee vspace=50 width=100%
8.marquee behavior=slide loop=5
9.Attribute for MARQUEE ...
SCROLLAMOUNT = integer(20,50)
10.Attribute for
SCROLLDELAY = integer (100,500)
11.Attribute for marquee
BEHAVIOR = SCROLL | SLIDE | ALTERNATE
#How to set background color?

Sunday, April 11, 2010

#Setting Up root password for the first time:
mysqladmin -u root password "newpassword"

#Change MySQL password:
mysqladmin -u root password "newpassword" -p
Enter Passsword: ******* <<> update user set password=PASSWORD("dheeraj") where User='dheeraj';

#Create Database:
create database "database name";
i.e-> create database hello;

#Show database:
show databases;

#Show Tables:
use mysql;
show tables;

#Show password:
select user,password from user;

#Show host:
select User,password,host from user;
select * from user where user="dheeraj";