We have netwotk 192.168.1.0 with the default gateway 192.168.1.1 (Juniper Netscreen Firewall). I bought the switch SG500x and want to use as backbone switch. It will be placed between the Juniper and other layer 2 switches.
I want to use this switch to handle the InterVLAN routing of VLAN/Subnet without touching the Juniper.
1) How can I configure the switch so that the clients from VLAN1 go to to the internet? I want to keep the client network configure without change.
They have DHCP assign the IP 192.168.1.X 255.255.255.0 and the gateway is 192.168.1.1
2) Can i setup IP based dynamic IP with this switch?
So your Juniper is 192.168.1.1 and is the default gateway, and you want the switch to take over as the default gateway? Well, your Juniper and the switch can't both be on 192.168.1.1, or the routing table won't make any sense. You'll need to change the IP address of the Juniper, to say 192.168.1.2. We can use that as an example. You would then need to add a default route into the switch like this:
The switch became the default gateway since you assiged 192.168.1.1 as the IP interface for VLAN1 in your example. And since the switch is the default gateway it can handles inter-VLAN communication. And since we just added that default route above it forwards all addresses it doesn't know about (everything, except for your VLAN interfaces) out to the Juniper, and hence the internet. Depending on your exact Juniper configuration, you may need to add a static route on it also.
Thank you for pasting the configuration , it was most enlightening.
The configuration is almost correct, you have made wee fundamental mistake byf having the juniper device and also the SG500X with the same IP address..
Your intention was to allow the DHCP client to get, as you said to " the default gateway 192.168.1.1 (Juniper Netscreen Firewall)."
But your Command Line configuration of my switch shows the switch has that same address;
interface vlan 1
ip address 192.168.1.1 255.255.255.0
no ip address dhcp
This is the same address as the juniper product. aghhhh
Why not make the VLAN 1 IP address of the SG500X equal to , as a suggestion, 192.168.1.2 255.255.255.0 .
That should fix the problem you are experiencing.
But noticing that you have VLAN 2 configured on the switch, do the following in the juniper device.
1. add a static route that points to the 192.168.2.0 network with a gateway address of 192.168.1.2 (SG500X).
also add a default route or gateway in the SG500x, with the command ;
2. ip default-gateway 192.168.1.1
That should resolve your issue. The PC's a probably getting a address via DHCP, but since their default gateway is 192.168.1.1, the same address as the switch, the PC's are not getting out to the juniper device. :-)
Listen: https://smarturl.it/CCRS8E41 Follow us: https://twitter.com/CiscoChampion
Let’s face it: today’s work is hybrid. Making hybrid work requires more than collaboration tools and SaaS applications. It’s about connecting people, dispa...
Join David Bombal as he busts the myths around Cisco Designed while building out an SMB network right at his desk.
David, a CCIE, CCSI and an educator, has delivered training courses all around the globe across multiple Cisco topics. And he’s desig...
This Chat covers the intersection of technology and social impact from community to global levels. Learn how digital maturity accelerates SMB growth and profits that can fund social programs and enable sustainable business practices like remote work.
This Chat covers the intersection of technology and social impact from community to global levels. Learn how digital maturity accelerates SMB growth and profits that can fund social programs and enable sustainable business practices like remote work. We'l...