cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7790
Views
15
Helpful
6
Replies

Connecting a printer with static IP to vlan

Tramullo
Level 1
Level 1

Hello

I have this situation and Im not sure what to do, any recommendation will be very appreciate.

 

I have 2 vlans:

 

VLAN 10 has a scope of 192.168.0.0/22

VLAN 8 has a scope of 172.16.28.0/22

 

 

The switches in the the building that connect all the jacks  are default connections to VLAN 8.

 

I have a printer that has a static configuration of 192.168.0.147.

If all the switch ports have a default configuration as follows:

 

interface GigabitEthernet3/0/29

switchport access vlan 8

switchport mode access

switchport voice vlan 20

spanning-tree portfast

 

What would I have to change on this port configuration to allow the printer to work on the network?

 

Thank you and blessings.

6 Replies 6

cofee
Level 5
Level 5
Under the interface configuration change this line "switchport access vlan 8" to "switchport access vlan 10".

Hello,

 

in addition to cofee's post,  I would also remove the voice vlan from the port. And, obviously, exclude the static IP address from the DHCP pool...that said, how is your DHCP set up ?

 

interface GigabitEthernet3/0/29

description Payroll printer

switchport access vlan 10

switchport mode access

spanning-tree portfast

Reza Sharifi
Hall of Fame
Hall of Fame

In addition to Cofee's comment, You don't need the voice vlan for the port that is connecting to the printer.

So, it would look like this:

 

interface GigabitEthernet3/0/29

description Payroll printer

switchport access vlan 10

switchport mode access

spanning-tree portfast

HTH

You don't really need the Switchport voice vlan on that port that the printer is on

config t

int 3/0/29

switchport mode access

switchport access vlan 8

spanning-tree portfast

 

sorry I mean vlan 10 not 8

Hello 

printer -  make sure it has a static ip of:
192.168.0.147
255.255.252.0
192.168.0.3.254  <---assuming this is your gateway address the same

on switch
conf t
default  interface GigabitEthernet3/0/29

interface GigabitEthernet3/0/29
no shut
switchport host
switchport access vlan 10

Switch & printer
make sure they are both set to the same speed and duplex setting

res
Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking products for a $25 gift card