02-18-2019 09:47 AM - edited 03-08-2019 05:22 PM
I am trying to configure a VLAN lab. The goal was to set up 2 VLANS on a multi layer switch, and be able to ping between them, and also access the internet from these VLANS.
I enabled ip routing, and added the VLANS, and assigned switch ports to the vlan. They can ping each other no problem. The problem I have is they cannot ping the default gateway, or access the internet. I can move the cable to another port on my switch in default vlan 1 and get a dhcp address and access the internet that way, but not from the vlan ports.
can anyone please shed some light on what i have configured wrong?
My setup:
* home ISP cable modem setup with netgear home router/wifi. (ip address is 192.168.0.1)
* cisco 3750v2 switch, using ports fa1/0/10 (vlan 10) and f1/0/20 (vlan 20)
* the 3750v2 is plugged into a small 8 port netgear which plugs into my home router/wifi.
some setup info:
Gateway of last resort is 192.168.0.1 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 192.168.0.1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.1.10.0/24 is directly connected, Vlan10
L 10.1.10.1/32 is directly connected, Vlan10
C 10.1.20.0/24 is directly connected, Vlan20
L 10.1.20.1/32 is directly connected, Vlan20
192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.0.0/24 is directly connected, FastEthernet1/0/47
L 192.168.0.6/32 is directly connected, FastEthernet1/0/47
10 VLAN0010 active Fa1/0/10
20 VLAN0020 active Fa1/0/20
switch 1 provision ws-c3750v2-48ps
system mtu routing 1500
ip routing
interface FastEthernet1/0/10
switchport access vlan 10
switchport mode access
!
interface FastEthernet1/0/20
switchport access vlan 20
switchport mode access
interface Vlan1
ip address dhcp
shutdown
!
interface Vlan10
ip address 10.1.10.1 255.255.255.0
!
interface Vlan20
ip address 10.1.20.1 255.255.255.0
!
ip http server
ip http secure-server
!
!
ip route 0.0.0.0 0.0.0.0 192.168.0.1
ip route 10.1.10.0 255.255.255.0 192.168.0.1
ip route 10.1.20.0 255.255.255.0 192.168.0.1
02-18-2019 09:57 AM
You do not have NAT configured ? Look at some example, ( i can provide config, since you leaning home LAB, good to learn with examples).
https://www.cisco.com/c/en/us/support/docs/ip/network-address-translation-nat/13773-2.html
02-18-2019 10:13 AM
02-18-2019 10:48 AM
Hello,
on a side note, since your 3750 does not support NAT, your only option is to configure the ISP modem and/or the Netgear, and add additional networks to be translated. What type/model are the ISP modem and Netgear ?
02-18-2019 10:54 AM
Thanks so much for the replies, and tips!
The model of the home router is a Netgear R8500.
02-18-2019 11:04 AM - edited 02-18-2019 11:06 AM
i found this steps, but netgear is very simple.
link: https://kb.netgear.com/24431/How-to-enable-NAT-of-EX6100
https://community.netgear.com/t5/General-WiFi-Routers-Non/Opening-NAT-types/m-p/1140331
02-18-2019 11:20 AM
Sorry i may not made clear last reply, i mean to say NAT on Router.
Another way you can do is Trunk Switch with netgear, and allow VLAN and do NAT on netgear
read the admin Manual, i do not have access to netgear to office an config for now.
http://www.downloads.netgear.com/files/GDC/GS808E/GS808E_UM_EN.pdf
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