In the classful addressing system, which predates Classless Inter-Domain Routing (CIDR), IP addresses were divided into five classes: A, B, C, D, and E. The first few bits of the first octet determine the class of the address. Interestingly, the number 7 plays a role in defining these classes.