Sign in with
Sign up | Sign in
Your question

VLAN subnetting question.

Last response: in Networking
Share
December 4, 2012 6:09:00 PM

Hi guys,

I had this question on an exam that I just cannot get out of my mind.

Note I'm completely new at subnetting, I can understand this question might make some of you think why I'd even need help on this.

First a little assignment story:

You have to make 4 subnets for 4 VLANs, the router interface assigned to each VLAN is the LAST usable host on the subnet.

So unless I'm really bad at networking the graph should be:

NET ID // HOSTS // BROADCAST ADDRESS // VLAN

192.168.0.0 // 192.168.0.1 – 192.168.0.62 // 192.168.0.63 // VLAN1
192.168.0.64 // 192.168.0.65 – 192.168.0.126 // 192.168.0.127 // VLAN2
192.168.0.128 // 192.168.0.129 – 192.168.0.190 // 192.168.0.191 // VLAN3
192.168.0.192 // 192.168.0.193 – 192.168.0.254 // 192.168.0.255 // VLAN4

So if I'd have to write down a single host configuration for VLAN2..I think it should be:

IP: 192.168.0.65
subnet mask: 255.255.255.192
default gateway: 192.168.0.126

Is this correct? I'm not sure whether the default gateway should be 192.168.0.255 (as would with normal subnets) or as I wrote down 192.168.0.126, this is the first time i've ever gotten assignments including VLANs and I havn't really gotten a solid explanation.


Help would be very much appreciated, I'm really trying to get into this and understand it better.
December 5, 2012 1:20:53 AM

You are correct. Just remember the default gateway is the address of a device that gives you access outside your subnet. It must be within the subnet...doesn't do a lot of good to try to reach a IP that is already outside if you don't know how to get there in the first place.
!