(H6) Day11 Networking Ess part8 Private IP Address , NAT and PAT, How configure IP Address
20240531 144321
Private IP Address:
Class A: 10.0.0.0 – 10.255.255.255 – 10.x.x.x
Class B: 172.16.0.0 – 172.31.255.255 – 172.16.x.x, 172.17.x.x, ., 172.31.x.x
Class C: 192.168.0.0 – 192.168.255.255 – 192.168.0.x,192.168.1.x.., 192.168.255.x
Non routable in public
We can’t access internet with private ip address
We use NAT and PAT technique to access public network(internet)
NAT – Network Address Translation
PAT – Port Address Translation (NAT Overload)
NAT – Maps Inside(private) IP address to Outside(Public) Ip address
Devices can communicate in private with private ip, when they communicate to outside(public) they use public ip address
1 private – 1 public , 10 private – 10 pubic
PC1: 10.0.0.11 – 21.2.2.11
PC2:10.0.0.12 – 21.2.2.12
PC3:10.0.0.13 – 21.2.2.13
PAT – Maps Multiple (All) Private ip address to 1 Public ip address
10 private – 1 public
PC1: 10.0.0.11:1234 – 21.2.2.110:1234
PC2: 10.0.0.12:1352 – 21.2.2.110:1352
PC3: 10.0.0.13:5422 – 21.2.2.110:5422
–
*every device must have an ip address required to communicate in network
Assign IP Address: ip address can be assigned manually or automatically.
Manual – configure ip address to the network adaptor manually
Manually configured ip address called static ip address
The static ip address can change manually but not automatically
Automatic – IP address configured to the network adapter automatically by dhcp server, the dhcp server can be a router or wifi router (act as a dhcp server), windows/linux server or some app act as dhcp server.
The ip address assigned automatically is called dynamic ip address.
The dynamic ip address changes automatically when it connected to different networks or sometime to same network when connect and disconnect happens
In Windows
Control Panel – Network and Internet – Network and Sharing center – Change Adaptor setting – right click on the adapter – status – Details (to know what ip address is configured)
Properties(to change configuration) – click on IPv4… – properties
Run/Search – ncpa.cpl – network connections – right click status or double click on adapter – properties – ipv4 … – properties –
Obtain IP address Automatically – to get ip address from DHCP Server
Use following ip address – manual configuration
Assigning ip address manually
Assigning ip address automatically
Check assigned IP Address
DHCP Enabled: Yes – IP address configured automatically by dhcp server
DHCP Enabled: No – IP Address configured manually
—————————————————————————–
ipv4