04-14-2015 04:35 AM - edited 03-07-2019 11:31 PM
Hi,
I've got two layer 3 switches, each of which have their own set of vlans and hosts, the network ip range however is totally different on both switches. I've created a trunk and etherchannel between the two switches, and can communicate across both switches, provided the hosts are on the same vlan. I cannot however get hosts on a different vlan to talk to the gateway or hosts on the other L3 switch.
What I'm trying to achieve is host A:
IP address 10.155.12.34 on switch A
vlan 12
Default gateway 10.155.12.1
communicate with host B:
IP address 172.14.102.45 on switch B
vlan 102
Default gateway 172.14.102.45
If I put host A on vlan 102 and change its IP address to the same subnet as hosts on switch B, I can ping across without any issues.
I've tried creating some static routes but they didn't work, for example:
ip route 10.155.12.0 255.255.255.0 172.14.102.1 - didn't work
If anybody can share some advice with this issue I'd highly appreciate it.
Thanks
04-14-2015 04:55 AM
Hello Daniela,
Can you please clarify if these switches are the Default Gateway for VLAN 12 and VLAN 102 respectively?. If they are not then, who is the default gateway and where is connected? Is it a router directly connected to the switches?
Can you please share the following outputs from both switches:
* Show ip interface brief | exc una
* Show ip route
* Show run interface vlan 12
* Show run int vlan 102
* Show interface trunk
What's the interface that connects both switches?
Thanks,
Cesar Fernandez J
CCNP R&S
04-14-2015 05:02 AM
Hi,
Who is 172.14.102.1?
Config example:
client 1--vlan 3--> switch1 --transfernetwork/vlan 4--> switch 2 -- vlan 5 --> client 2
Client 1:
IP: 192.168.0.1
Subnet: 255.255.255.0
GW: 192.168.0.254 (vlan 3 interface on switch 1)
Switch1:
vlan 3
name client vlan 3
exit
interface x/x/x
switchport access vlan 3
exit
interface vlan 3
ip address 192.168.0.254 255.255.255.0
no shut
exit
vlan 4
name transfer vlan
exit
interface x/x/x
switchport mode access or switchport mode trunk
switchport access vlan 4 or switchport trunk allowed vlan 4
exit
interface vlan 4
ip address 192.168.1.254 255.255.255.0
no shut
exit
ip route 0.0.0.0 0.0.0.0 192.168.1.1
Switch 2:
vlan 5
name client vlan 5
exit
interface x/x/x
switchport access vlan 5
exit
interface vlan 5
ip address 192.168.2.254 255.255.255.0
no shut
exit
vlan 4
name transfer vlan
exit
interface x/x/x
switchport mode access or switchport mode trunk
switchport access vlan 4 or switchport trunk allowed vlan 4
exit
interface vlan 4
ip address 192.168.1.1 255.255.255.0
no shut
exit
ip route 0.0.0.0 0.0.0.0 192.168.1.254
Client 2
IP: 192.168.2.1
Subnet: 255.255.255.0
GW: 192.168.2.254 (vlan 3 interface on switch 1)
Regards,
Bernhard
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