02-14-2022 11:37 AM
Hi, Hope I'm in the right section.
For my college project I want to subnet my network into 16 with subnet mask 255.255.255.240 i.e /28
but as far as I know the max ports on a router is 8?
So I'm kind of stuck
I tried using two routers and then static forwarding but I'm on the same subnet mask and it didn't seem to like it so what options do I have.
Basically for my college project I want my network split into 16 using subnet mask 255.255.255.240 but router only has 8 ports.
Any help guys please
02-14-2022 11:50 AM
Hi
Dont follow but let´s see if I can help you. When you say " I want my network split into 16 using subnet mask 255.255.255.240 " you propably means that you are going to have 16 hosts on the network? Or do you mean, 16 networks ?
Either way, this is easy to solve by adding a switch on your topology. Use trunk between switch and router and that way you need only one port on the router.
02-14-2022 12:07 PM
Hi thanks for your reply
Hi not 16 hosts I'm subnetting - 16 networks using subnet mask 255.255.255.240
192.168.0.0 | 192.168.0.1 - 192.168.0.14 | 192.168.0.15 |
192.168.0.16 | 192.168.0.17 - 192.168.0.30 | 192.168.0.31 |
192.168.0.32 | 192.168.0.33 - 192.168.0.46 | 192.168.0.47 |
192.168.0.48 | 192.168.0.49 - 192.168.0.62 | 192.168.0.63 |
192.168.0.64 | 192.168.0.65 - 192.168.0.78 | 192.168.0.79 |
192.168.0.80 | 192.168.0.81 - 192.168.0.94 | 192.168.0.95 |
192.168.0.96 | 192.168.0.97 - 192.168.0.110 | 192.168.0.111 |
192.168.0.112 | 192.168.0.113 - 192.168.0.126 | 192.168.0.127 |
192.168.0.128 | 192.168.0.129 - 192.168.0.142 | 192.168.0.143 |
192.168.0.144 | 192.168.0.145 - 192.168.0.158 | 192.168.0.159 |
192.168.0.160 | 192.168.0.161 - 192.168.0.174 | 192.168.0.175 |
192.168.0.176 | 192.168.0.177 - 192.168.0.190 | 192.168.0.191 |
192.168.0.192 | 192.168.0.193 - 192.168.0.206 | 192.168.0.207 |
192.168.0.208 | 192.168.0.209 - 192.168.0.222 | 192.168.0.223 |
192.168.0.224 | 192.168.0.225 - 192.168.0.238 | 192.168.0.239 |
192.168.0.240 | 192.168.0.241 - 192.168.0.254 | 192.168.0.255 |
So I have 16 default gateways to set etc If I had a 16 port Router that would be easy but I only have max 8 ports.
02-14-2022 12:26 PM
Hello,
one way to get as many routed interfaces as you want is by configuring subinterfaces on the a router. Simply connect a switch to a router, and configure it like below:
Switch
interface FastEthernet0/1
description Uplink to Router GigabitEthernet0/0
switchport mode trunk
Router
interface GigabitEthernet0/0
ip address 192.168.0.1 255.255.255.240
duplex auto
speed auto
!
interface GigabitEthernet0/0.2
encapsulation dot1Q 2
ip address 192.168.0.17 255.255.255.240
!
interface GigabitEthernet0/0.3
encapsulation dot1Q 3
ip address 192.168.0.33 255.255.255.240
!
interface GigabitEthernet0/0.4
encapsulation dot1Q 4
ip address 192.168.0.49 255.255.255.240
!
interface GigabitEthernet0/0.5
encapsulation dot1Q 5
ip address 192.168.0.65 255.255.255.240
!
interface GigabitEthernet0/0.6
encapsulation dot1Q 6
ip address 192.168.0.81 255.255.255.240
!
interface GigabitEthernet0/0.7
encapsulation dot1Q 7
ip address 192.168.0.97 255.255.255.240
!
interface GigabitEthernet0/0.8
encapsulation dot1Q 8
ip address 192.168.0.113 255.255.255.240
!
interface GigabitEthernet0/0.9
encapsulation dot1Q 9
ip address 192.168.0.129 255.255.255.240
!
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.0.145 255.255.255.240
!
interface GigabitEthernet0/0.11
encapsulation dot1Q 11
ip address 192.168.0.161 255.255.255.240
!
interface GigabitEthernet0/0.12
encapsulation dot1Q 12
ip address 192.168.0.177 255.255.255.240
!
interface GigabitEthernet0/0.13
encapsulation dot1Q 13
ip address 192.168.0.193 255.255.255.240
!
interface GigabitEthernet0/0.14
encapsulation dot1Q 14
ip address 192.168.0.209 255.255.255.240
!
interface GigabitEthernet0/0.15
encapsulation dot1Q 15
ip address 192.168.0.225 255.255.255.240
!
interface GigabitEthernet0/0.16
encapsulation dot1Q 16
ip address 192.168.0.241 255.255.255.240
02-14-2022 12:32 PM
Thanks for your Reply - this looks just what I'm looking for.
I'll try it out
Thanks again
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide