[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 472
  • Last Modified:

Problems accesing one device from two VLAN on a HP 2650 Switch.

Hello everybody.

I'm new in VLAN configuration, i've read lots of information and manuals about them but i'm having problems configuring VLAN's.

I've a HP Switch 2650 with two VLAN's created. Ports 1-25 are untagged to VLAN1 and Ports 26-50 are untagged to VLAN2.
One computer (A) is connected on Port 1 with IP 192.168.0.100, another one (B) is connected to Port 26 with IP 192.168.0.101.
Switch IP is 192.168.0.254, and finally one network printer (P) is connected to Port  2 with IP 192.168.0.1.

Routing is NOT enable on Switch.
Computers/Printer gateway are not switch's IP.

VLAN1              VLAN2
-------------------------------------
|    1   2           | 26                | IP VLAN1 (primary): 192.168.0.254 / IP VLAN2: not configured
-------------------------------------
     |   |               |
     |   |               |
     A   P              B

Problem: Printer is only accessed by computer A. When i ping P from VLAN2 i get no response.

Well, probably the first recommendation will be activate IP Routing and using a Layer 3 router, connect two VLAN's to see the printer, but i don't want computer A to see computer B. Only the printer P to be accessed from both computers.

TAGGED ports seems to be the solution, but i've tried to TAGG Port 2 on VLAN 2 and still doesn't work.

Questions:

- The printer's network card has to be 802.1Q compliant?
- Computer's network card has to be 802.1Q compliant?
- Is this configuration correct or do i need a router to make this work.
- Is a network card driver parameter?
- Switch firmware?

Note:

I tried to connect to laptops with this configuration (without the printer connected), and TAGGING ports 1 and 26, each laptop see the other one.

Yes, same IP range is used on every VLAN, that's what i want (if possible).

Thanks in advance.
0
_marcos_
Asked:
_marcos_
  • 4
  • 2
1 Solution
 
gmooney7Commented:
The printer's network card has to be 802.1Q compliant? no
- Computer's network card has to be 802.1Q compliant? no
- Is this configuration correct or do i need a router to make this work.  --- I believe you'll be needing a router.  You'll also have to have the vlan's in different networks.  You can't route traffic between 2 interfaces that are both on 10.0.0.0/24 for example.   If you don't want the pc's to see each other, that's where acl's, etc come in.
- Is a network card driver parameter?  i don't think so
- Switch firmware?  no

Maybe i'm way off base, i'm tired...
0
 
_marcos_Author Commented:
Thanks gmooney7 for quick response!

I've seen lots of examples refering to that kind of configuration but... is possible to configure as we want?

Two VLAN, TAGGED ports where devices are installed (printers, servers, DSL routers) and computers with same network range divided on two VLAN's.

Something like that:

Ports    VLAN1            VLAN2          Device
  1        untagged        no               Computer A
  2        untagged        TAGGED       Network Printer
  3        untagged        no
  4        no                  untagged     Computer B
  5        no                  untagged


0
 
gmooney7Commented:
ok, after looking over the manual for this switch.  it appears that whatever device you want to be able to communicate on both vlan's without using a router, does have to understand 801.1q tagging.  At least one of the vlan's has to be tagged so the device can differentiate between the 2 vlan's.  

So, unless someone else knows better, I think you're going to have to go with what I mentioned above.  At least for devices that do not support 802.1q tagging.
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
gmooney7Commented:
0
 
_marcos_Author Commented:
I've been able to connect only computers using VLANS and TAGGED ports only. No HP Jetdirect printer i tried has been able to communicate that way with computers.

Probably non-compliant devices required routing on switches and 802.1Q compliant devices can use TAGGED ports.

Thanks for all gmooney7.

Points for you, of course!

0
 
gmooney7Commented:
Hope it all works out!  Thanks!
0

Featured Post

Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now