01-29-2018 12:21 PM - edited 03-08-2019 07:43 PM
i have a Cisco SF300-48, i configured in L3,
i configure a vlan 5 (192.168.5.1 255.255.255.0)
and a vlan 10 (192.168.10.1 255.255.255.0)
Fasehternet 2 is a PC in vlan 10 whit access mode
and Gigabiteethernet 1 is the routher of internet, in mode trunk or access,
how i get internet in vlan 10??
dont work:
route 0.0.0.0 0.0.0.0 192.168.5.1
route 0.0.0.0 0.0.0.0 192.168.0.1 (enlace internet)
01-30-2018 05:31 AM
Hi there,
You need to configure Gi1 as:
! int gi1 switchport mode access switchport access vlan 10 !
Your PC connected on VLAN10 should have the following route configured (via DHCP?):
0.0.0.0 0.0.0.0 192.168.5.1
The problem you are going to encounter is getting the router to route packets back to VLAN5 via your SG300 (192.168.10.1) .
Since the SG does not do NAT, you will need to configure a static route on the router:
ip route 192.168.5.0 255.255.255.0 192.168.10.1
cheers,
Seb.
01-30-2018 09:45 AM
NAT es necesario para tener internet en cualquier vlan?
but when i run comand:
ip route 192.168.5.0 255.255.255.0 192.168.10.1
The routher say: Gateway cannot be one of the addresses configured on this device.
same case on this comand:
0.0.0.0 0.0.0.0 192.168.5.1
So, this device (SF300-48) cant have vlans able to internet?
01-31-2018 04:49 AM
Hi there,
The route command I provided was for the router connected to the internet.
As the SG300 can't do NAT, unless you can configure static routes on your internet router you will not be able to have any more subnets than 192.168.0.0/24 .
If you can't configure static routes then you will need another device (router of firewall) to provide the NAT function for VLANs 5 and 10.
cheers,
Seb.
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