cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2344
Views
0
Helpful
5
Replies

Cisco SG300 10 Routing Help

jitesh1971
Level 1
Level 1

Hi Everyone

I need some help.

On my cisco switch/router i have created 4 vlans, using the below interfaces

192.168.1.254 if the ip address of the switch

ipv4 interface.JPG

port 1 which is vlan1 is connected to my Netgear WDNR4500 Wirelss Router

The remain ports are connected to seperate network cards, on my VMWare Esxi host.

When i create VM's within each individual vlan communication is fine and i can ping vms on the different vlans,

My issue is i do not get any internet access from any device connected to the specified vlans, except for vlan1

If i ssh into my switch i am able to ping my isp's dns servers 194.168.4.100, but from all other vlans its not possible.

Not really sure what i have done wrong or what i need to get internet access for my vm's.

In my netgear router, which is 192.168.1.1 i have configured the following statis routes.

Netgear Static Routes.JPG

All vm's connected to the different vlan can ping 192.168.1.1, but it appears communication stops there, it cannot go beyond.

When i do a tracet from a vm connected to vlan 10, i get timeouts after it reaches 192.168.1.1

My laptop which is connected to 192.168.1 network is able to tracert beyong my router.

If anyone could help or provide some input, it would be appreciated.

Anymore information is required please let me know, i am a novice, hence why i am not sure how to resolve this issue.

Thank you all.

1 Accepted Solution

Accepted Solutions

Hi Jitesh, that is correct behavior. The default gateway need to be the vlan interface Ip address.

If vlan 20 is 192.168.20.1 then any machine connecting in vlan20 gateway should be 192.168.20.1

-Tom
Please mark answered for helpful posts

-Tom Please mark answered for helpful posts http://blogs.cisco.com/smallbusiness/

View solution in original post

5 Replies 5

bhackbarth
Level 1
Level 1

Hello,

Make sure the clients in VLANs 10,20,30, and 50 are using 192.168.1.254 as their default gateway. Also be sure the switch has a default ip route that points to the router supplying the internet access (but it sounds like you have that bit working, since VLAN1 has internet access). Finally if you have traffic NATing in from the internet that needs to reach one of the VLANs, add static route(s) on the edge router to point back to the VLAN, e.g.

ip route 192.168.30.0 255.255.255.0 192.168.1.254

if i set my windows 2008 vm's to to have a default gateway of 192.168.1.254, but soon as i do that.

i am unable to ping any machines in the different vlans once gateway ip address is changed.

Hi Jitesh, that is correct behavior. The default gateway need to be the vlan interface Ip address.

If vlan 20 is 192.168.20.1 then any machine connecting in vlan20 gateway should be 192.168.20.1

-Tom
Please mark answered for helpful posts

-Tom Please mark answered for helpful posts http://blogs.cisco.com/smallbusiness/

Hi Tom

But i need to find a solution, to allow my vm's connected to vlan 192.168.20.0 network to have internet access.

Which is the real issue i am facing.

Inrter Vlan i can ping and communicate, but i dont seem to have any internet connctivity.

Port1 which is Vlan 1 ip 192.168.1.254, is connected to my home Netgear wdnr 4500 cable router.

Maybe i need to do something on Port1 to allow traffic from all other vlans to cross it out to the real world, but how to do this i do not know.

The router, is then connected to a cable modem, supplied by my ISP.

Hi Jitesh, Brayton is correct about the static route.

Please reference this post for clarification.

https://supportforums.cisco.com/thread/2123434

-Tom
Please mark answered for helpful posts

-Tom Please mark answered for helpful posts http://blogs.cisco.com/smallbusiness/