Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Help with VLAN on Cisco SG300-10 Switch

I am having trouble pinging between VLANs on the SG300-10 switch

 

IP address of my switch is 192.168.10.35/24

I have VLAN1 192.168.10.1/24

           VLAN2  172.16.0.254/24

 

Main router IP address 192.168.1.1/24 (i am using DD-WRT router)

I can ping 192.168.1.0/24 from 192.168.10.0/24 and also can ping internet from both 192.168.1.0/24 and 192.168.10.0/24

 

Now i want to be able to ping internet from 172.16.0.0/24 on VLAN2 of the switch

Also i want to be able to ping both 192.168.1.0/24 and 192.168.10.0/24

 

Please advice what to do next

 

I have attached all images

 

Thanks

12 REPLIES
Bronze

To ping both 192.168.1.0/24

To ping both 192.168.1.0/24 and 192.168.10.0/24- Enable the inter-vlan routing( Change the switch to layer 3 mode-Lead to factory default)-Take backup of the current configuration.

To make Layer 3 mode: Under Administration---->System mode---> Change from L2 to L3

 

Note: Upgrade the switch firmware and Boot code to latest version.

 

To ping internet from 172.16.0.0/24 on VLAN2 of the switch: You need to add the route in your DD-WRT router (Since this router don't know 172.16.0.0 network)

 

New Member

I already have Layer 3 mode

I already have Layer 3 mode (not sure i could have done all i did if i did not have Layer 3 mode already)

 

#How do i do intervlan routing?

Did you see the images i attached? Are they ALL correct?

 

Also if you work for cisco, a screenshot speaks more than a thousand words, but if not possible then a step by step instruction will be greatly appreciate as well

 

#2 In order to add that route on the DD-WRT router

What will be destination LAN? Gateway?

 

I already provided all needed information in the opening post

 

Thanks for helping

New Member

You a cisco employee and

You a cisco employee and cannot help?

Bronze

I am going to update

I am going to update screenshot.

Bronze

Once you change the switch to

Once you change the switch to Layer 3 mode-Inter Vlan is enabled-See the figure attached.(fig1.jpg).

 

As per your attachment with reference to ciscov2png:

 

For VLAN 1 users(Example): IP :192.168.10.XX/24 Gateway:192.168.10.35 

 

For VLAN 2 users(Example): IP :172.16.0.XX/24 Gateway:172.16.0.254 

 

After above configuration you ping form Vlan1 to vlan 2 (both direction)

Note:your router network(192.168.1.x/24) is not added in this switch.How your ping internet from this network?.Kindly clarify on this.

 

 

 

 

 

 

Hi,I think that you connect a

Hi,

I think that you connect a PC on port 10, can you ping your default gateway (172.16.0.254) from that host?

Regards.

New Member

Yes i can ping the gateway,

Yes i can ping the gateway, and that is after setting static IP on the PC...not like automatic IP. I can even ping 192.168.10.35 which is ip of the switch..nothing more from there

Ok,So your problem is with DD

Ok,

So your problem is with DD-WRT router, do you add your LAN routes? for example you have to add the route 172.16.0.0/24 with 192.168.10.35 like next hope into DD-WRT.

Regards. 

New Member

The router is not taking that

The router is not taking that route (172.16.0.0/24 with gateway 192.168.10.35)The only route it takes is 172.16.0.0/24 with gateway 0.0.0.0 (see image below)
 

 

 

 

I have a buffalo DDWRT router on 192.168.1.1/24 ip address and i have configured VLAN10 on LAN port 1 for 192.168.10.0/24 subnet

Now the thing here is i plugged in a Cisco SG300-10 switch with ip address 192.168.10.35 on LAN port 1 of the buffalo DDWRT router and want to configure VLAN2 on the cisco switch for 172.16.0.0/24 subnet

I am able to do this but the problem is i cannot ping the internet from 172.16.0.0/24 and also cannot ping the 192.168.1.0/24 and cannot ping 192.168.10.0/24(BUT i can ping 192.168.10.35 which is the ip address of the switch since i am directly connected i am guessing but cannot ping any other address on the 192.168.10.0/24 subnet)

What i want to be able to do

#1 ping 192.168.1.0/24 subnet
#2 ping 192.168.10.0/24 subnet
#3 ping the internet


What do i do?
I have attached images

 

New Member

DDWRT router#####IP address

DDWRT router
#####

IP address 192.168.1.1
Subnet 192.168.1.0/24

LAN Port1 is configured for VLAN10 192.168.10.0/24 subnet and gateway 192.168.10.1 (the Cisco SG300 is plugged into this port)
#
#
#
#
#
Cisco SG300-10 Switch
#####
GE1/Port1 of switch is connected to LAN Port1 of DDWRT router
Default VLAN of switch is VLAN1
IP address(management ip address) 192.168.10.35
Subnet 192.168.10.0/24


VLAN2 is configured for GE9/Port9 and GE10/Port10 for 172.16.0.0/24 subnet with 172.16.0.254 gateway

 


What i want to be able to do from the VLAN2 on the switch 172.16.0.0/24 subnet is to:

#1 ping 192.168.1.0/24 subnet
#2 ping 192.168.10.0/24 subnet
#3 ping the internet

Currently

172.16.0.0/24 cannot ping anywhere...it can only ping the gateway 172.16.0.254 and 192.168.10.35 which is the ip of the switch it is directly connected to...it cannot ping anything else. And no one else can ping it.


Let me know what other information you need
Thanks

Hi,Do you have an option to

Hi,

Do you have an option to make a tracert from DDWRT Router?

I see on ddwrtv10 image that 192.168.10.0 is attached to vlan10 interface;

- Do you add this interface?

- Is this interface on vlan 1?

Can you add another image from your routing table, with more detail please?

Regards.

New Member

Most of your questions can be

Most of your questions can be answered by just going over what am trying to do and what i have written and the images i have attached..every single question you have most likely can be answered from what i have already

 

 

Like i said DDWRT create a VLAN10 where the cisco switch is connected

the route 192.168.10.0 you saw is added automatically by the router

The interface is VLAN10 on port1 of the DDWRT router

 

Anyways i have other images...cisco switch wont let me so many routes i try to..it complains about almost any combination of routes i try to enter from being  illegal route to cannot add route for ip on the switch..it is just getting really annoying

 


 

770
Views
0
Helpful
12
Replies
CreatePlease to create content