07-09-2018 08:44 AM - edited 03-05-2019 10:44 AM
Hello All
So, I'm new to Cisco and just wanted to get some help in setting up Multiple Vlans to print to the same printer and have access to the same fileserver. Please help, thanks. Please be very basic too.
Thanks
07-09-2018 08:56 AM
Hi there,
Based on your requirement see the config below. This will create two VLANs and DHCP pools for both. Since you just want communication between the VLANs, there are no ACLs at this stage...
! ip routing ! vlan 10 vlan 20 ! int vlan 10 ip address 192.168.10.254 255.255.255.0 ! int vlan 20 ip address 192.168.20.254 255.255.255.0 ! int gi1/0/1 desc A_PC switchport mode access switchport access vlan 10 spanning-tree portfast ! int gi1/0/2 desc A_SERVER switchport mode access switchport access vlan 20 spanning-tree portfast ! int gi1/0/3 desc A_PRINTER switchport mode access switchport access vlan 20 spanning-tree portfast ! ip dhcp pool DHCP_V10 network 192.168.10.0 255.255.255.0 domain-name TEST.COM dns-server 1.1.1.1 default-router 192.168.10.254 ! ip dhcp pool DHCP_V20 network 192.168.20.0 255.255.255.0 domain-name TEST.COM dns-server 1.1.1.1 default-router 192.168.20.254 ! ip dhcp excluded-address 192.168.10.254 ip dhcp excluded-address 192.168.20.254 !
cheers,
Seb.
07-10-2018 03:57 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide