🌐
CCNA Prep
  • Intro
  • Network Devices
  • Interfaces and Cables
  • OSI Model & TCP/IP Suite
  • Intro to the CLI
  • Ethernet LAN Switching (Part 1)
  • Ethernet LAN Switching (Part 2)
  • IPv4 Addressing (Part 1)
  • IPv4 Addressing (Part 2)
  • Switch Interfaces
  • IPv4 Header
  • Routing Fundamentals
  • The Life of a Packet
  • Subnetting (Part 1)
  • Subnetting (Part 2)
  • Subnetting (Part 3 - VLSM)
  • VLANs (Part 1)
  • VLANs (Part 2)
  • VLANs (Part 3)
  • DTP/VTP
  • Spanning Tree Protocol (Part 1)
  • Spanning Tree Protocol (Part 2)
  • Rapid Spanning Tree Protocol
  • EtherChannel
  • Dynamic Routing
  • RIP & EIGRP
  • OSPF (Part 1)
  • OSPF (Part 2)
  • OSPF (Part 3)
  • First Hop Redundancy Protocols
  • TCP & UDP
  • IPv6 (Part 1)
  • IPv6 (Part 2)
  • IPv6 (Part 3)
  • Standard ACLs
  • Extended ACLs
  • CDP & LLDP
  • NTP
  • DNS
  • DHCP
  • SNMP
  • Syslog
  • SSH
  • FTP & TFTP
  • NAT (Part 1)
  • NAT (part 2)
  • QoS (Part 1)
  • QoS (Part 2)
  • Security Fundamentals
  • Port Security
  • DHCP Snooping
  • Dynamic ARP Inspection
  • LAN Architectures
  • WAN Architectures
  • Virtualization & Cloud, Containers, VRF
  • Wireless Fundamentals
  • Wireless Architectures
  • Wireless Security
  • Wireless Configuration
  • Network Automation
  • JSON, XML, & YAML
  • REST APIs
  • Software-Defined Networking
  • Ansible, Puppet, & Chef
Powered by GitBook
On this page

IPv4 Addressing (Part 2)

PreviousIPv4 Addressing (Part 1)NextSwitch Interfaces

Last updated 1 year ago

Class A network is in the range 0-127 but 0 and 127 ranges are reserved, so the usable range of Class A network is 1-126. Let's see one network for calculating the number of usable addresses for hosts. 192.168.1.0/24 is a Class C network so it has a /24 subnet mask. The host range is 192.168.1.0 - 192.168.1.255. It gives us 256 (2^8) addresses. But there are network and broadcast addresses, so the total number of usable host addresses is 254. The number of hosts per network is

2n−22^n-22n−2

where n is the number of host bits.

IPv4 Configuration

To check the status of the interfaces on the device, you have to enter show ip interface brief command in privileged EXEC mode. It lists the interface name, IP address, method used to assign, status, and protocol of each interface. The status column refers to the Layer 1 state and protocol - to the Layer 2 state. The default status of Cisco routers is administratively down, it is when the shutdown command is applied. Also, you can enter show interfaces command but it displays too much information, so it's better to specify an interface using the same command but followed by the interface name. Besides that, you can see the description of each interface, they are optional but might help in identifying the purpose of each interface. The command is show interfaces description.

To enter interface configuration mode, you have to enter interface followed by the interface name you want to enter in global configuration mode. To configure an IP address - ip address followed by the IP address and subnet mask in dot-decimal notation. And lastly, no shutdown - to enable the interface. The command to configure the description is description followed by the description.

7KB
Day 8 Flashcards - IPv4 Addresses Part 2.apkg
47KB
Day 8 Lab - IPv4 Addresses.pkt
ipv4 classes table
ip interfaces brief command