Contents
Can two VLANs be on the same subnet?
If the addresses are all different it is possible to route traffic using a very large number of rules which don’t correspond to the actual subnet configuration and will confuse anyone who inherits this from you. However, it is completely permissible to use the same RFC1918 subnets on different physical networks.
How do I connect from one subnet to another?
How to Connect Computers That Are on 2 Different Subnets
- Connect the computers to the network.
- Connect the routers to each other.
- Enable a routing protocol in each subnet’s router.
- Allow time for the routing tables to update.
Can two subnets talk to each other?
Devices in different subnets can communicate. That is the purpose of a router. Routers route packets between different networks. Even if devices in different networks are on the same layer-2 broadcast domain, you need a router to let the devices communicate at layer-3.
What is difference between VLAN and subnet?
At a high level, subnets and VLANs are analogous in that they both deal with segmenting or partitioning a portion of the network. However, VLANs are data link layer (OSI layer 2) constructs, while subnets are network layer (OSI layer 3) IP constructs, and they address (no pun intended) different issues on a network.
How do two subnets see each other?
To do this you need to change the subnet to a /20 range, covering 16 numbers in the third quadrant (0-15, 16-31, 32-47, 48-63, 64-79 etc.) This is represented as a mask of 255.255. 240.0. If you change this on the router, the static machines and the DHCP scope they can all see each other on the same network.
Can you have two VLANs in one subnet?
I think the answer to your question is no, you cannot have a single subnet assigned to two Vlans. As Richard explains below, it would work at a purely Layer 2 level but you would not be able to route between them or between them and others subnets as only one Layer 3 port could exist in that single subnet.
How does inter-VLAN routing on a router work?
The single interface on the router is then configured with multiple IP addresses that correspond to the VLANs on the switch. This interface accepts traffic from all the VLANs and determines the destination network based on the source and destination IP in the packets.
Can a router forward traffic to different VLANs?
As we learnt previously, VLANs logically segment the switch into different subnets, when a router is connected to the switch, an administrator can configure the router to forward the traffic between the various VLANs configured on the switch.
Do you need to configure a switch to connect to a VLAN?
This is the only configuration on the switch, once this is done save the configuration and move on to the router. On R1, we need to configure its interfaces with the default gateways corresponding to the VLANs. That is; on fa0/0 -192.168.20.1/24 and on fa0/1 – 192.168.30.1/24.