Chapter 4 - Dynamic and Static IP Addresses-2022
Chapter 4 - Dynamic and Static IP Addresses-2022
• Static IP Addresses
• Fixed, always the same IP address even if the
host reboots.
• Dynamic IP Addresses
• Is not fixed. IP address of a host may change
after the host reboots.
Official (Open), Non-sensitive
What are “Static” IP Addresses?
• “Static” = “unchanging”.
• Therefore “Static IP Addresses”
are IP addresses that remain
unchanged.
• Static IP Addresses are often
“manually” allocated and
configured on hosts, but can
be done automatically too.
• Even if the host is rebooted,
the configured IP address is
preserved.
• The host always has the same IP
address.
Official (Open), Non-sensitive
Why do we use “Static IP Addresses”?
• Deterministic IP address – always the same IP
address, conveniently contactable from other
hosts.
My IP
I can easily Switch address is
contact Laptop C “static”.
because it has a Laptop A
fixed IP address.
Laptop C
Me too. I always
know where to Laptop B
find Laptop C.
• Insufficient IP addresses
• Each static IP address is dedicated to a particular
host, hence cannot be relocated to other hosts when
it is not in use.
• May not have enough IP addresses for every host.
IP addr = 88.88.88.44
There is a ‘1’.
Official (Open), Non-sensitive
Type 2: Broadcast Address
• Broadcast Address is an address in which all the bits in
the Host portion are ‘1’s.
• Broadcast Address is a special address that allows
communication to all the hosts in that network.
• Example:
• For network 100.88.99.0 /24, the broadcast address would be
100.88.99.255.
• Proof:
• 100.88.99.0 = 01100100 01011000 01100011 00000000
• Prefix Length = 24, hence the IP address has 24 bits for Network
portion, and 8 bits for Host portion.
• For a Broadcast Address, all the 8 bits in the Host portion are ‘1’s.
• Therefore, Broadcast Address is:
• 01100100 01011000 01100011 11111111
• 100 88 99 255 (proved)
• (iii)
• First valid IP address is
11000000 10101000 00100000 00000001
• 192 168 32 1
• First valid Host Address = 192.168.32.1
• (v)
• Broadcast Address is
11000000 10101000 00111111 11111111
• 192 168 63 255
• Broadcast Address = 192.168.63.255
Laptop A
Official (Open), Non-sensitive
Try this: Find out your DHCP Server
• Launch a DOS prompt window.
• Key in “IPCONFIG /ALL” <ENTER>
Laptop
Dynamic IP address
Network printer
Static IP address Desktop computer
Dynamic IP address
Official (Open), Non-sensitive
How to mix Static and Dynamic IP
Addresses? (1)
• Dynamic IP Addresses
• In the DHCP server, define a pool of IP addresses (for
example, 192.168.1.100 to 192.168.1.149) for dynamic
IP address allocation.
• Make sure that the pool of IP addresses is large enough to
serve the maximum possible number of hosts to connected to
the network.
• When a new connecting host requests for an IP address,
the DCHP server will pick one IP address from the pool
and makes the offers.
• The IP address that a host gets is not fixed. It depends
on what IP addresses are available when the request is
made.
Official (Open), Non-sensitive
How to mix Static and Dynamic IP
Addresses? (2)
• Static IP Addresses MAC ADDRESS SAME AS PHYSICAL ADDRESS !!