Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k

creating ipv4 addressing scheme

I have been tasked with creating an ipv4 addressing scheme and I am a bit of a newbie at this.

I have a cisco 1941 router with IOS release 15.2(4), and a switch cisco 2960 with IOS release 15.0(2), and 2 pc's with windows 7)

PC #1 <----G0/0  Router  G 0/1-->F0/5  Switch F0/6 --> PC #2

Configuration layout

PC #1 is going to need to have 25 hosts and PC #2 is going to have to have 30 hosts

 

I was given the ip address of 192.168.0.0/24.

My boss told me that the 2 computers will use the first ip addresses in the subnet, the switch will use the second to the last, and the router the last.

Here is are my thoughts:  I need 30 hosts for my largest subnet.  I need to use a /27 which has 5 subnets which supports 30 hosts each.  Subnet #1 192.168.0.0-192.168.0.31 [usable .1-.30]; Subnet #2 192.168.0.32 - 192.168.0.63 [usable .33-.62]; Subnet #3 192.168.0.64-1925.168.0.95 [usable .65-.94];Subnet #4 192.168.0.96-192.168.0.127 [usable .97-.126]; Subnet #5 192.168.0.128 - 192.168.0.159 [usable .129-.158]

I assigned PC #1 192.168.0.1 (which is in subnet 1) with a subnet mask of 255.255.255.224 and a gateway of 192.168.0.30, Router G0/0 192.168.0.30 (which falls into subnet 1, Router G0/1 (which falls into subnet 2) 192.168.0.62, the Switch (which falls into subnet 2) 192.168.0.61, and the 2nd PC (which falls into subnet 2) 192.168.0.33 with a subnet mask of 255.255.255.224 and a gateway of 192.168.0.30.

Is this correct??

 

Thanks
Tana

 

 

 

 

 

 

 

 

 

 

1 REPLY
Silver

Hello Tana, /27 is correct.On

Hello Tana,

 

/27 is correct.

On the last octet you would have: 

SN | HOSTS
000|00000

Now regarding the IP assignment there is one small detail that i would like to point out: 

 

"and the 2nd PC (which falls into subnet 2) 192.168.0.33 with a subnet mask of 255.255.255.224 and a gateway of 192.168.0.30."

 

Based on this you are giving PC#1 and #2 the same gateway but they are actually on different subnets and collision domains, unless there is further information i would change this for 192.168.0.62 which is the last usable IP from the second subnet.

PC #1 <----[192.168.0.30] G0/0  Router  G 0/1-->F0/5 [192.168.0.62] Switch F0/6 --> PC #2

 

Regards,

 

D8vid

418
Views
0
Helpful
1
Replies
CreatePlease to create content