cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2252
Views
0
Helpful
17
Replies

Configuring 2 VLAN with different Gateways

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

17 Replies 17

ahmedshoaib
Level 4
Level 4

Hi Moreno;

Cisco SG200-26 is a Layer 2 switch and support 256 vlan. If you want both Network to be segregate and work individually you can do without any extra device. But if you want intercommunication between these 2 Vlan you need a routing device (e.g Router).

Now with reference to your issue PLC network need to access internet. Then you required a  Router with Internet connection. On Router you need configure NAT for PLC network (means your 192.168.0.X - PLC network need to nat with Public IP).

PLC                     --->                                 Router                         --->     Internet Cloud

(192.168.0.X)              192.168.0.200                     X.X.X.X 

                                    (PLC DG on Router)           (public IP)

Best regards;

Shoaib Ahmed

So I have to NAT the PLC on the router.

And do I have to create the second VLAN?

Hi;

You need to enable the NAT on PLC Router where your NAT inside will be PLC subnet & NAT Outside will be Router public ip address.

No extra vlan is required.

Thanks & Best regards;