cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
520
Views
0
Helpful
2
Replies

Multiple Vlans, sharing printer and file server

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

2 Replies 2

Seb Rupik
VIP Alumni
VIP Alumni

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.

Joseph W. Doherty
Hall of Fame
Hall of Fame
Assuming your VLANs are support different networks, you'll need a L3 device to route between them.

Se's example is how that might be accomplished on a L3 switch.

What devices, and their feature sets, were you planning to use?
Review Cisco Networking for a $25 gift card