09-04-2013 06:06 AM - edited 03-04-2019 08:56 PM
Hello dear community!
I have 10 PCs connected to a switch.
IPs are: 192.168.10.10-10.168.10.18 and one pc with 192.168.15.31
I need to set a route so that when PCs ask for 192.168.10.31 they would be forwarded to 192.168.15.31 PC (its not a network)
Is it possible?
I've tried:
route 192.168.10.0 255.255.255.0 192.168.15.31
and
route 192.168.10.31 255.255.255.255 192.168.15.31
but this does not work
Would appreciate any help
Solved! Go to Solution.
09-04-2013 07:24 AM
oh sorry there was an mistake in my command.
you cannot forward this via command route.
route 192.168.10.31 255.255.255.255 192.168.15.31 <----- this command said that the Host 192.168.10.31 is reacheable via the router 192.168.15.31.
You want, that the ip traffic change the destination Ip to 192.168.15.31 thats true?
so you need a router to create a network like this: 192.168.15.0 255.255.255.0 (for example)
The router get the IP 192.168.10.31. You configure the router that packet with the destination address 192.168.10.31 forwarded to 192.168.15.31.
Interface fa 0/0
ip nat outside
ip add 192.168.10.31
interface fa 0/1
ip nat inside
ip add 192.168.15.31
ip nat inside source static tcp 192.168.15.31 192.168.10.31
I hope that is helpful
09-04-2013 06:10 AM
Hi
it can not be work, because the gateway must be in the same network.
route 192.168.0.0 255.255.255.0 192.168.10.1
Regards
Markus
09-04-2013 07:06 AM
Is there just any sense to route to the same network?
09-04-2013 07:15 AM
Andrey,
You could forward packets destined to 192.168.10.31 to 192.168.15.31 but the issue is that the PC with address 192.168.15.31 will discard those packets as it will not recognize the destination address as its own. This would require some kind of NAT to get it to work. Could you tell us a bit more on what you are trying to achieve and why you can't just change the adress of this PC from 192.168.15.31 to 192.168.10.31?
Regards
09-04-2013 11:29 PM
Im using Allied Telesis switch (it level 2+ switch) x510-28GTX
I cant change adress from 192.168.15.31 to 192.168.10.31 because of broadcasting from 192.168.10.10 to 192.168.10.0
I've created vlan2 and put 192.168.15.31 pc port to that vlan, then made ip route 192.168.10.31 255.255.255.255 vlan2
but couldn't check if its working.
09-05-2013 01:57 AM
Hi,
it is not possible to make that without NAT. I have get you a solution with NAT.
Computers can not communicate form different subnets without a router (layer 3 device).
Your possibility is to use a router with NAT.
Regards
Markus
09-05-2013 05:56 AM
Hi, thanks for help, this seems to be correct, but impossible for my l2+ switch
09-04-2013 07:24 AM
oh sorry there was an mistake in my command.
you cannot forward this via command route.
route 192.168.10.31 255.255.255.255 192.168.15.31 <----- this command said that the Host 192.168.10.31 is reacheable via the router 192.168.15.31.
You want, that the ip traffic change the destination Ip to 192.168.15.31 thats true?
so you need a router to create a network like this: 192.168.15.0 255.255.255.0 (for example)
The router get the IP 192.168.10.31. You configure the router that packet with the destination address 192.168.10.31 forwarded to 192.168.15.31.
Interface fa 0/0
ip nat outside
ip add 192.168.10.31
interface fa 0/1
ip nat inside
ip add 192.168.15.31
ip nat inside source static tcp 192.168.15.31 192.168.10.31
I hope that is helpful
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