cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
288
Views
1
Helpful
2
Replies

Subinterfaces and VLANs together on the same device

encap
Level 1
Level 1

I have a non-vlan capable Linux PC with a sub-interface 192.168.1.x/24 and 192.168.2.x/24 connected to an IR1821.

Linux PC connected to Port 0/1. I have devices on Port 0/2 192.168.1.x/24 (vlan 10) and Port 0/3 192.168.2.x/24 (vlan 20)

The goal is to maintain vlan isolation (these are hard coded and I can't change them) while allowing the linux PC to communicate to each device on each vlan.

Can I configure Port 0/1.10 with dot1q 10 IP 192.168.1.254/24 
Port 0/1.20 with dot1q 20 192.168.2.254/24
And standard vlan configured access ports 0/2 (vlan 10) and 0/3 (vlan 20)

No routing in between vlans is needed at this time.
I can not add a second network port to the PC.

 

2 Replies 2

Only l3 port can config with subinterface' l2 port (config with vlan) can not config with subinterface

MHM

encap
Level 1
Level 1

Can you suggest a path forward so that my linux device with a single physical port and one virtual port on two separate IP addresses can communicate with both vlan 10 and 20 over the single router I have?  What am I missing?

Thanks!