10-17-2022 11:22 PM
can vlan 5 of Dsw1can communicate with vlan 10 ?
can vlan 5 of dsw 1 can communicate with vlan 10 of dsw2 ?
means each other'vlan of dsw1 & dsw 2
config..........
Dsw 1.......
en
conf t
hostname Dsw1
int e0/0
no switchport
ip add 192.168.60.1 255.255.255.252
no shut
int e0/3
no switchport
ip add 192.168.60.9 255.255.255.252
no shut
vlan 5
vlan 10
int range e0/1-2
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 1,5,10
int vlan 5
ip add 192.168.1.1 255.255.255.0
no shut
int vlan 10
ip add 192.168.2.1 255.255.255.0
no shut
ip routing
dsw2.........
Dsw 2
en
conf t
hostname Dsw2
int e0/0
no switchport
ip add 192.168.60.5 255.255.255.252
no shut
int e0/3
no switchport
ip add 192.168.60.10 255.255.255.252
no shut
vlan 5
vlan 10
int range e0/1-2
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 1,5,10
int vlan 5
ip add 192.168.1.2 255.255.255.0
no shut
int vlan 10
ip add 192.168.2.2 255.255.255.0
no shut
ip routing
10-18-2022 12:05 AM
Sure it will have communication.
make sure switchports belong to access port VLAN 5 or 10 to belong to respected VLAN, and the device has the right gateway configured.
10-18-2022 12:24 AM
Hello,
you have two switches with 'ip routing' enabled, which essentially makes them layer 3 devices. You have configured the same Vlans with the same IP address spaces on both switches, which won't work unless you use Network Address Translation (which the switches don't support). So, there will be no communication between both Vlans on both switches with this configuration.
What are you trying to accomplish ? Is this the full configuration ? There also is no routing at all between both switches (static or dynamic)...
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide