Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++ write and IPCheck class. The class will read in an IP address and a network mask. Use classes and proper object-oriented techniques. Each

In C++ write and IPCheck class.

The class will read in an IP address and a network mask. Use classes and proper object-oriented techniques. Each class should have .h and .cpp file. You will analyze the address and mask and answer the following questions. You will output the answers to the screen.

1 Is the address a valid number - 32 bits, 4 octets, doted decimal notation

2 Is the network mask a network mask? Must be 32 bitts, in binary all ones followed by all 0s.

3 What is the network address of this IP? Apply mask.

4 Is it classful or classless? Is it class A, B, C

Class A mask 255.0.0.0

Class B mask 255.255.0.0

Class C mask 255.255.255.0

Classless none of the above

5 Is the address public or private?

See ranges below

7 Is it a loopback 128.0.0.0/8

image text in transcribed

Ho st RFC1 918 name Numb Largest CID IP address er of R block range addres (subnet ses mask) ID siz Ma sk Classful descri bit ption Note 11 s 24-bit block 10.0.0.0 - 10.255.255 .255 167772 10.0.0.0/8 16 (255.0.0.0) 24 bit S 8 single class A bits network 20-bit block 172.16.0.0 104857 172.16.0.0/12 172.31.255 6 (255.240.0.0) .255 20 bit S 12 bits 16 contiguous class B networks 16-bit block 192.168.0. 0- 192.168.25 5.255 65536 192.168.0.0/1 16 6 bit (255.255.0.0) 16 bits 256 contiguous class C networks Ho st RFC1 918 name Numb Largest CID IP address er of R block range addres (subnet ses mask) ID siz Ma sk Classful descri bit ption Note 11 s 24-bit block 10.0.0.0 - 10.255.255 .255 167772 10.0.0.0/8 16 (255.0.0.0) 24 bit S 8 single class A bits network 20-bit block 172.16.0.0 104857 172.16.0.0/12 172.31.255 6 (255.240.0.0) .255 20 bit S 12 bits 16 contiguous class B networks 16-bit block 192.168.0. 0- 192.168.25 5.255 65536 192.168.0.0/1 16 6 bit (255.255.0.0) 16 bits 256 contiguous class C networks

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions