If a company has 2 offices (on the same floor in close proximity of each other) Office one (Marketing) and office two (Finance) both have 5 computers and share 1 switch.
I understand I can set up a VLAN to separate traffic for the 2 departments so each dept only receives 'their' own packets.
What I still don't understand is subnetting - If I setup a subnet of 255.255.255.0 on that switch does that mean the IP address for each dept is different? E.g. 192.168.1.x = Marketing Computers & 192.168.2.x = Finance Computers
OR as the subnet is set-up on the switch the 3rd octet of the IP address of both offices will be the same?
Will 2 separate switches be better?