Hi,
Sorry in advance if this is a stupid question, but I have been trying all day to figure this out and have got nowhere. I am not a networking person, but do occasionally get involved troubleshooting these issues on site.
I had a similar issue before, and the way I got round it was using port forwarding on a router. However, I do not know if this is the best way going forward.
To summarise the situation:
- We have a PC which is on 192.168.0.*.
- We want to be able to talk to a variety of bits of equipment which have all sorts of different IP's (e.g. 10.0.124.4; 192.100.4.3; etc).
- We have a layer 3 lite switch (NetGear GS716T)
- We do not just want to open up the subnet mask due to security concerns
You can see the network topology in the following link (sorry for the awful paint skills!): Imgur
NIC 1 on the PC is just used for site/internet access etc. It has a default gateway to the router.
NIC 2: 192.168.0.111
Switch: 192.168.0.239
Device 1: 192.168.2.222
Device 2: Does not exist yet, but could have IP such as 10.0.124.4
Device 3: Same as above
My understanding of this is that I need to create a static route from the PC to the devices (and back again). Currently I am just trying to get it working with one device (192.168.2.222). Here is what I tried to do:
- Static route on Windows so it knows to use NIC 2, rather than the default gateway
route ADD 192.168.2.0 MASK 255.255.255.0 192.168.0.239 IF 4
If I understand this correctly, what I am doing here is saying that if I try to connect to 192.168.2.*, it will instead go to 192.168.0.239 through interface 4 (NIC 2).
- Static route on switch to pass from 192.168.0.* to 192.168.2.*
Route Type: Static Network Address: 192.168.2.0 Subnet Mask: 255.255.255.0 Next Hop IP Address: 192.168.0.111 Preference: 1
My understanding here is that I am saying if the router gets a connection from 192.168.0.111, then pass it on to 192.168.2.*. I feel like I have got something wrong here though.
- Static route back from device 1 to the PC
Route Type: Static Network Address: 192.168.0.0 Subnet Mask: 255.255.255.0 Next Hop IP Address: 192.168.2.222 Preference: 1
Here I am just reversing what I did above. From what I have read, because this is all dumb routing, you need to specify the return route too.
After doing those things, I cannot talk to device 1. I tried doing a tracert to see what's happening, but then I have since read that tracert would not work unless you're on a full layer 3 device.
My colleague has also tried messing around with using VLAN's and routing them together, but he also has limited network experience.
I have no idea where to go from here so any help or pointers would be greatly appreciated!
No comments:
Post a Comment