07-21-2016 09:58 AM - edited 03-08-2019 06:43 AM
Hello,
I need to setup to VLAN inside a network.
I have a network with this gateway 144.146.18.1, a DNS server 144.146.18.14 and a mask 255.255.0.0
IPs are assigned via DHCP.
And I need to connect a PLC which has a default gateway like this 192.168.0.200 and a static IP. I need to give internet access to this PLC
So, I guess I need to create a second VLAN in order to do this.
Is it possible?
I'm working with these switches: Cisco SG200-26 26-port Gigabit Smart Switch
Thank you in advance
07-21-2016 01:46 PM
To give PLC access to the internet while keeping its 192.168.0 address, you need to NAT it's 192.168.0.x address to 144.146.18.x address.
The other way would be to place the PLC on the public [144.146.18.] VLAN.
Thanks.
07-21-2016 10:47 PM
So I need to NAT IP 192.168.0.200 (it will be the Gateway) on a Port. Then I have to plug a Router into that port. And finally, connect PLC with IP address 192.168.0.x to the router.
Am I right?
07-22-2016 01:24 PM
You have to Network Address Translate (NAT) the PLC address [not gateway address]. This NAT will be performed by the Internet facing router/firewall and will be transparent to other network elements.
http://www.cisco.com/c/en/us/support/docs/ip/network-address-translation-nat/13772-12.html
Rais.
08-03-2016 11:44 PM
I finally did NAT to that IP and it is working.
Thank you for your support.
07-21-2016 04:20 PM
Hello
I have not used those switches, So cannot comment on the functionality regards available services.
Dont you have access to the internet already? -if you have access from the 192.168.0.0 network then NAT is already enabled and youll need to specify a static nat entry for this PLC device on whatever device is supplying the DHCP for the 192.168.0.0 network as I guess that doing the routing also
Do you have router connecting to these switches?
res
Paul
07-21-2016 10:55 PM
I have not connected the PLC yet. I need to set up the network before.
Since I don't know the requirements, I have not bought any router yet. I wanted to be sure that I can do it and then I will get everything I need.
07-22-2016 02:31 PM
Hello
I need to setup to VLAN inside a network.
I have a network with this gateway 144.146.18.1, a DNS server 144.146.18.14 and a mask 255.255.0.0
IPs are assigned via DHCP.
Since I don't know the requirements, I have not bought any router yet. I wanted to be sure that I can do it and then I will get everything I need.
Since you say you don't the hardware - can you tell us what actually you do have currently running
res
Paul
07-28-2016 01:20 AM
I have the switches running and I have the PLC without connection.
07-28-2016 05:51 AM
Hello
sill not sure on what it is your asking - it sounds like youhave dual wan links and wish to communicate between them from a source Vlan or that you have two L3 vlans and wish the connect between them?
Maybe you could post a simple topology to help?
res
paul
08-01-2016 12:36 AM
Hello,
I have a complete network working (servers, desktops,switches, hubs...) under Star Topology.
Gateway is 144.146.18.1, DNS Server is 144.146.18.14 and IPs are automatically assigned by DHCP server from 144.146.18.50 to 144.146.18.200
And I have found a PLC that should be connected to the internet with IP 192.168.0.21 and Gateway 192.168.0.200. PLC settings can not be changed. It is connected to one of our switches (Cisco SG200-26 26-port Gigabit Smart Switch).
So, what do I really need to do in order to give internet access to this PLC without modifying PLC settings?
Thank you in advance
08-01-2016 12:54 AM
Hi;
Please review my first comment, you need a Router with internet connection. If PLC gateway cannot change then your Router ip address should be 192.168.0.200 on LAN side & then enable NAT for 192.168.0.21 IP Address or more.
E.g: RTR:
Int g0/0
Description ISP Link for Internet
ip add X.X.X.X
ip nat outside
no shut
Int g0/1
Description LAN – PLC
ip add 192.168.0.200
ip nat inside
no shut
access-list 10 permit host 192.168.0.21
ip nat inside source list 10 interface g0/0 overload
Thanks & Best regards;
08-01-2016 01:21 AM
So, I have a Cisco 800 Series Router. A firewall connected to that Router and all the servers, switches connected to that firewall.
Your suggestion is to connect PLC directly to that router?
Also, I will have to change Router IP address to 192.168.0.200. isn't it?
08-01-2016 01:24 AM
Hi Jorgen;
Can you share you complete topology and your requirement. With half information no body can suggest or troubleshoot your issue.
Thanks & Best regards;
08-01-2016 03:22 AM
Hello
And I need to connect a PLC which has a default gateway like this 192.168.0.200 and a static IP. I need to give internet access to this PLC
It seems like you have this PLC device connecting to "another " device probably a rtr and you wish to give this internet access without changing it addressing.
So you either need to change the addressing of the PLC device to a routable one or as stated by others apply some network translation as the 192.168.x.x is not a routable Internet ip address.
If 192.168.0.200 device seems to be performing routing , So apart from providing a default gateway for the PLC what else is it used for?
If this rtr is the same device connecting upstream towards the gateway 144.146.18.1, then I simple nat statement on this rtr would be applicable to provide internet access to the PLC device.
But I am not clear how your physical network setup is, Hence why I previously stated, posting a simple topology to help in the resolution of your issue
res
Paul
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