Skip to content

Kotenko IT Blog

Menu
  • Home
  • CISCO
  • Virtualization
  • About
  • Certificates
Menu

IPv4 Addressing

Posted on June 2, 2025June 6, 2025 by kotenkoo

Layer 3 and IP

  • IPv4 is the main protocol at Layer 3 (Network layer)
  • Every router interface needs an IP address from its connected network
  • IP header contains:
    • Source IP (4 bytes)
    • Destination IP (4 bytes)
    • Plus other fields (e.g., TTL, Protocol, Checksum)

IP Broadcast

  • Example: 192.168.1.255/24 is a broadcast address
  • When a computer sends a packet to this IP, it:
    • Encapsulates it into an Ethernet frame
    • Uses destination MAC address: FFFF.FFFF.FFFF (broadcast)

Binary Conversion

Binary to Decimal

  • Binary 11000000 = 192
  • Bit positions: 128 64 32 16 8 4 2 1 → sum active bits

Decimal to Binary

  • Example: Convert 255 → write decreasing powers of 2
  • Helpful decimal values to remember:
    • 128, 192, 224, 240 — help quickly identify subnet masks
    • Binary 1111 = decimal 15

Number Systems

BaseDescription
BinaryBase-2 → powers of 2
DecimalBase-10 → powers of 10
HexadecimalBase-16 → powers of 16

IPv4 Address Classes

ClassBinary StartRangeNotes
A0xxxxxxx1–1260.0.0.0 reserved, 127.x.x.x is loopback
B10xxxxxx128–191–
C110xxxxx192–223–
D1110xxxx224–239Multicast addresses
E1111xxxx240–255Experimental
  • Class is determined by the first octet
  • Multicast ≠ unicast or broadcast
  • 127.0.0.0/8 = loopback range → used to test TCP/IP stack

Network vs Broadcast Addresses

TypeHost BitsExampleAssignable?
Network AddressAll 0s192.168.1.0❌
Broadcast AddressAll 1s192.168.1.255❌

Subnet Breakdown (Example: 192.168.1.0/24)

AddressMeaning
192.168.1.0Network Address
192.168.1.1First usable host
192.168.1.254Last usable host
192.168.1.255Broadcast Address
  • Host bits: 8 → 2^8 = 256 total addresses
  • Usable: 256 - 2 = 254 hosts

Cisco Router IP Configuration

Show interface summary

R1# show ip interface brief // or: sh ip int br

FieldDescription
OKLegacy (no longer relevant)
MethodHow IP was assigned (manual/unset)
StatusLayer 1 state (shutdown?)
ProtocolLayer 2 state (cable plugged in?)

Configure IP Address on Interface

R1# conf t

R1(config)# interface gigabitethernet 0/0 // shortcut: in g0/0

R1(config-if)# ip address 10.255.255.255 255.0.0.0

R1(config-if)# no shutdown

R1(config-if)# do show ip int br // to verify

  • To switch interface from config-if mode: repeat interface g0/x command

Interface Commands

R1# show interfaces g0/0 // detailed info

R1# show interfaces description // summary

R1(config-if)# description ## to SW1 ##

R1(config-if)# do show interfaces description

📌 These are personal study notes. Please read the full disclaimer for more information.

Category: CCNA

Post navigation

← Ethernet LAN Switching
Switch Interfaces →

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • IPv4 Header
  • Switch Interfaces
  • IPv4 Addressing
  • Ethernet LAN Switching
  • Cisco IOS CLI

Recent Comments

No comments to show.

Archives

  • June 2025
  • May 2025

Categories

  • CISCO
    • CCNA
    • CISCO Troubleshooting
  • Uncategorized
  • Virtualization
    • Proxmox
© 2025 Kotenko IT Blog | Powered by Minimalist Blog WordPress Theme