cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1321
Views
25
Helpful
6
Replies

Home lab vlan setup help. Can ping the other VLANS, but unable to access internet from them

speedup
Level 1
Level 1

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

6 Replies 6

balaji.bandi
Hall of Fame
Hall of Fame

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

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Jaderson Pessoa
VIP Alumni
VIP Alumni
Dear speedup,

Firstly you dont need it. Because this networks are in own device.
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

for internet access, you need configure a NAT.
check it for more information: https://community.cisco.com/t5/routing/nat-overload-on-router-works-from-inside-the-router-only/td-p/2643990
Jaderson Pessoa
*** Rate All Helpful Responses ***

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 ?

Thanks so much for the replies, and tips!

 

The model of the home router is a Netgear R8500.

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

Jaderson Pessoa
*** Rate All Helpful Responses ***

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

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help