06-05-2013 09:05 AM - edited 03-07-2019 01:44 PM
I am trying to get my workstation to talk to a workstation on a different sub-net through a Cisco 3560 switch. The switch is running the following IOS version:
Cisco Internetwork Operating System Software
IOS (tm) C3560 Software (C3560-I9-M), Version 12.2(20)EX, RELEASE SOFTWARE (fc1)
My primary network is 172.16.0.0 and I am trying to connect to a device on a 192.168.111.0 sub-net. Here is my setup:
My Workstation: 172.16.115.190 Remote Workstation: 192.168.111.10
192.168.111.20 |
| |
Unmanaged Layer 1 Switch |
| |
----------------- Switch VLAN1: 172.16.112.3 -----------
What would be the best way to get the two workstations talking via the switch?
Solved! Go to Solution.
06-05-2013 12:57 PM
Hello
FYI- You did not need the static routes on the workstations.
On the switch:
ip routing
int vlan 1
ip address 172.16.112.3 255.255.255.0
int vlan 20
ip address 192.168.111.10 255.255.255.0
vlan 20
exit
int x/x
description access port to My workstation
switchport mode access
(deafults to vlan 1)
int x/x
description access port to Remote workstation
switchport access vlan 20
switchport mode access
On each workstation just assign an ip address/subnet mask/ default-gateway of the vlan the workstation in attached to.
res
Paul
Please don't forget to rate any posts that have been helpful.
Thanks.
06-05-2013 10:03 AM
I figured this out on my own.
For reference, I created a VLAN20 with an IP address of 192.168.111.10 on the switch and assigned the port that the remote workstation is on to this new VLAN. I then added a static route on my workstation pointing 192.168.111.0 network to the VLAN1 IP address on the switch (172.16.112.3) and I added a static route on the remote workstation to point the 172.16.0.0 network to the VLAN20 IP address on the switch (192.168.111.10). Finally I enabled IP routing on the switch.
06-05-2013 12:57 PM
Hello
FYI- You did not need the static routes on the workstations.
On the switch:
ip routing
int vlan 1
ip address 172.16.112.3 255.255.255.0
int vlan 20
ip address 192.168.111.10 255.255.255.0
vlan 20
exit
int x/x
description access port to My workstation
switchport mode access
(deafults to vlan 1)
int x/x
description access port to Remote workstation
switchport access vlan 20
switchport mode access
On each workstation just assign an ip address/subnet mask/ default-gateway of the vlan the workstation in attached to.
res
Paul
Please don't forget to rate any posts that have been helpful.
Thanks.
06-05-2013 01:43 PM
Thanks! That would have been much easier.
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