You would need to trunk the VLANS to the router and create sub interfaces and then, create access lists applied to the interfaces to control inter vlan communication. I hope this helps,
Router interfaces something like this, may not work on all versions of IOS:
interface FastEthernet0/0 no ip address speed 100 full-duplex ! interface FastEthernet0/0.1 description VLAN1_Servers encapsulation dot1Q 1 native ip address 192.168.1.1 255.255.255.0 ! interface FastEthernet0/0.2 description VLAN2_QA encapsulation dot1Q 2 ip address 192.168.2.1 255.255.255.0 ! interface FastEthernet0/0.3 description VLAN3_DEV encapsulation dot1Q 3 ip address 192.168.3.1 255.255.255.0 ! interface FastEthernet0/0.4 description VLAN4_FIN encapsulation dot1Q 4 ip address 192.168.4.1 255.255.255.0
Answers & Comments
You would need to trunk the VLANS to the router and create sub
interfaces and then, create access lists applied to
the interfaces to control inter vlan communication. I hope this helps,
Router interfaces something like this, may not work on all versions of
IOS:
interface FastEthernet0/0
no ip address
speed 100
full-duplex
!
interface FastEthernet0/0.1
description VLAN1_Servers
encapsulation dot1Q 1 native
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/0.2
description VLAN2_QA
encapsulation dot1Q 2
ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet0/0.3
description VLAN3_DEV
encapsulation dot1Q 3
ip address 192.168.3.1 255.255.255.0
!
interface FastEthernet0/0.4
description VLAN4_FIN
encapsulation dot1Q 4
ip address 192.168.4.1 255.255.255.0