inter vlan routing layer 2 switches with layer 3

Post Reply
ramyrez
Member
Posts: 7
Joined: 12 Oct 2021 07:49

inter vlan routing layer 2 switches with layer 3

Post by ramyrez »

Hi evryone can u please help me
i had problem i can't access from my pc to another devices from diffrent vlan .
vlan 162-163.
i want to access from my pc to all vlan , how?
i have 4 switches L2 and 1 L3:

*vlan 162 :
-switch "a" is connected with pc1 and pc2.
switch a:10.20.162.100.
pc1:10.20.162.2 mask 255.255.255.0 getway 10.20.162.1.
pc2:10.20.162.3 mask 255.255.255.0 getway 10.20.162.1.
-switch "b" is connected with pc3 and pc4.
switch a:10.20.162.101.
pc3:10.20.162.4 mask 255.255.255.0 getway 10.20.162.1.
pc4:10.20.162.5 mask 255.255.255.0 getway 10.20.162.1.

*vlan 163 :
-switch "c" is connected with pc5 and pc6.
switch a:10.20.163.100.
pc1:10.20.163.2 mask 255.255.255.0 getway 10.20.163.1.
pc2:10.20.163.3 mask 255.255.255.0 getway 10.20.163.1.
-switch "d" is connected with pc7 and pc8.
switch a:10.20.163.101.
pc3:10.20.163.4 mask 255.255.255.0 getway 10.20.163.1.
pc4:10.20.163.5 mask 255.255.255.0 getway 10.20.163.1.

*switch L3 "s" : 10.20.164.2.
my pc:10.20.162.6 mask 255.255.255.0 getway 10.20.162.1.

**-switch a is connected to b and b connected to s(switch L3).
**-switch c is connected to d and d connected to s(switch L3).
my pc is connected to switch l3 "s"

this is my configration and it didn't work

switch a :

Code: Select all

system name "a"
vlan 162-163
ip interface "vlan162" address 10.20.166.100 mask 255.255.255.0 vlan 162
ip static-route 0.0.0.0/0 gateway 10.20.162.1 metric 1 
vlan 162 members port 1/1/1-8 untagged
vlan 162-163 members port 1/1/9-12 tagged
switch b:

Code: Select all

system name "b"
vlan 162-163
ip interface "vlan162" address 10.20.166.101 mask 255.255.255.0 vlan 162
ip static-route 0.0.0.0/0 gateway 10.20.162.1 metric 1 
vlan 162 members port 1/1/1-8 untagged
vlan 162-163 members port 1/1/9-12 tagged
switch c:

Code: Select all

system name "c"
vlan 162-163
ip interface "vlan163" address 10.20.166.100 mask 255.255.255.0 vlan 163
ip static-route 0.0.0.0/0 gateway 10.20.163.1 metric 1 
vlan 163 members port 1/1/1-8 untagged
vlan 162-163 members port 1/1/9-12 tagged
switch d:

Code: Select all

system name "d"
vlan 162-163
ip interface "vlan163" address 10.20.166.101 mask 255.255.255.0 vlan 163
ip static-route 0.0.0.0/0 gateway 10.20.163.1 metric 1 
vlan 163 members port 1/1/1-8 untagged
vlan 162-163 members port 1/1/9-12 tagged
switch l3 "s" :

Code: Select all

ystem name "s"
vlan 162-163
ip interface "vlan163" address 10.20.163.102 mask 255.255.255.0 vlan 163
ip interface "vlan162" address 10.20.162.102 mask 255.255.255.0 vlan 162
ip static-route 0.0.0.0/0 gateway 10.20.164.2 metric 1 
vlan 162 members port 1/1/1-4 untagged
vlan 163 members port 1/1/5-8 untagged
vlan 162-163 members port 1/1/9-12 tagged
ruemelin
Member
Posts: 14
Joined: 13 Oct 2021 05:44

Re: inter vlan routing layer 2 switches with layer 3

Post by ruemelin »

Hi,
the PCs are all connected to the untagged Ports 1/1/1-8 (i.e. the PCs are connected to the corresponding VLAN on untagged Ports)?
The connection between the switches is on port 1/1/9-12 (i.e. all VLANs are configured tagged on the uplink-Ports)?

As far as I can see you are using 10.20.162.1 and 10.20.163.1 as gateway on your PCs, while there is no device configured with this IP. I would assume the l3-switch "s" should be your Router in this scenario, so I guess you should change

Code: Select all

ip interface "vlan163" address 10.20.163.102 mask 255.255.255.0 vlan 163
ip interface "vlan162" address 10.20.162.102 mask 255.255.255.0 vlan 162
to

Code: Select all

ip interface "vlan163" address 10.20.163.1 mask 255.255.255.0 vlan 163
ip interface "vlan162" address 10.20.162.1 mask 255.255.255.0 vlan 162
or change the gateway on the PCs to .102

Regards
Norbert
ramyrez
Member
Posts: 7
Joined: 12 Oct 2021 07:49

Re: inter vlan routing layer 2 switches with layer 3

Post by ramyrez »

hi ruemelin
Thanks or your answer
Yes all PCs are connected to untagged Port 1/1/1-8 and also the connection between the switches is on port 1/1/9-12.

I changed it as you said and it didn't work, I'm still can't connect to other PCs.
Post Reply

Return to “OmniSwitch 6860 / 6860E”