Compare cert salaries and plan your next career move
hassantalal785 wrote: » Suppose I have 3 computers namely A,B and C. These 3 computers are attached to a Layer 2 Switch (switch has no layer 3 capability).I assign Lan 1 to Computer "A" , VLan 2 to "B" and VLan 3 to "C".First question : If i place the 3 computers on different Vlans , do i have to give them separate sub nets also ? Is it possible to assign 1 subnet to computers of 2 seperate Vlans?
Second question : Is a router or a Layer 3 switch required to make communication between A , B and C possible ?
Danielh22185 wrote: » The true nature / definition of a vlan is to separate broadcast traffic.
Danielh22185 wrote: » Not trying to hijack a thread here but I guess I didn't fully explain my point or I may have been misunderstood. If you have two separate vlans and traffic is sent over one vlan out it it should only reach traffic within its own vlan (Broadcast domain). That traffic will not reach the other due to the separation of broadcast domains that has been created by the switches' vlans.
Forsaken, I am not sure I fully understand your challenge though. I will attempt... It would seem you may need many networking devices to manage 16,000 host devices. If I follow, you could potentially have thousands of vlans that interconnect those devices so long as you have the routing capabilities to do so.
Forsaken_GA wrote: » Yes and no. That seperation is a by-product. So in a situation like this, a vlan will not solve your broadcast solution. A subnet will. A subnet requires layer 3 intervention, which means broadcast domain control is the purview of layer 3, not layer 2. Therefore, it is entirely improper and extremely misleading to say that a vlan breaks up broadcast domains.
hassantalal785 wrote: » If Vlan will not solve our broadcast problem and we need layer 3 intervention to break broadcast then why actually are we using vlans .Meaning what are the advantages of creating multiple vlans then ?
If Vlan will not solve our broadcast problem and we need layer 3 intervention to break broadcast then why actually are we using vlans .Meaning what are the advantages of creating multiple vlans then ?
Yes and no. That seperation is a by-product. The vlan is unaware that it's vlan. It thinks it's one big dumb switch, whether the vlan has 2 ports on one switch, or 4000 ports spanning many switches. Every time you add a port to the vlan, you're increasing the broadcast domain. If you get a question asking which device seperates a broadcast domain and you choose switch instead of router because you're thinking the vlan will break up the broadcast domain, you will get it wrong.
The point I'm trying to make is that the best way to manage broadcast traffic with a subnet that large isn't via using a vlan. A vlan alone is not enough. If I separate the hosts out into different vlans, sure, my broadcast traffic is bounded, but so is my ability to communicate within the subnet,w hich means using a vlan to break up a broadcast domain is an invalid solution.
Diggs wrote: » Just to add onto what Forsaken_GA said regarding your second question, in order to route between the vlans you would need either a router or a layer 3 switch. To my knowledge if using a router you would need either separate interfaces for each vlan or configure sub interfaces on the router for each vlan and assign a trunk from the switch to the router.
Forsaken_GA wrote: » No, it is not. A router separates broadcast domains, not a vlan on a switch. A vlan is nothing more than a logical dumb switch. However, since telling people they're incorrect rarely works, I'll issue this challenge to help demonstrate: 192.168.0.0/16 A broadcast on that subnet can potentially reach over 16,000 devices. Using vlans only, how would you break up the broadcast domain, while still allowing all 16,000+ devices to have unicast connectivity to each other?
nkillgore wrote: » I believe that this is correct. To add to it, with a layer 3 switch, you don't have to assign ip addresses to individual interfaces. You just assign an ip to each vlan on the switch, assign the appropriate ports to the vlans, and set up trunking to the layer 2 switches. Also, you probably need to set up a routing protocol..or some static routes.. or whatever you are doing. edit: oh and the hosts' default gateway should probably be the ip address of the L3 switch vlan interface of the vlan they are on.
xXErebuS wrote: » Trunks are necessary when you have sub interfaces / trunking multiple vlans. hosts default should be the ip address of the layer 3 switch vlan interface; the default IP of the switch should be the layer 3 interface of the MANAGEMENT Vlan. You only need routing for routes outside the connectivity of that layer 3 switch. If you have a layer 3 switch connecting to 10.0.0.0/16 network but host the 192.168.1.0/24, 192.168.2.0/24, 192.168.3.0/24 vlans/interfaces then you only need a route to 10.0.0.0/16; not each vlan since they are in essence directly connected.
Compare salaries for top cybersecurity certifications. Free download for TechExams community.