What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Help with VLAN routing Buffalo DDWRT/Cisco SG300-10

ddwrtengineer

New Around Here
Hi guys,

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


Thanks
 

Attachments

  • ddwrtv10.PNG
    ddwrtv10.PNG
    3.9 KB · Views: 508
  • ciscov10.jpg
    ciscov10.jpg
    15.9 KB · Views: 892
  • ddwrtv11.jpg
    ddwrtv11.jpg
    57.4 KB · Views: 676
Last edited:
Can you tell me which screen shots are from which device. It would be best to do all your routing either with your router or with your routing switch. It looks like you are spreading out your routing between the two which can work but it can be a nightmare to troubleshoot if there is a problem. Also on one of the screen shots it looks like a default gateway is configured on a different subnet. Each subnet needs its own default gateway.
 
Can you tell me which screen shots are from which device. It would be best to do all your routing either with your router or with your routing switch. It looks like you are spreading out your routing between the two which can work but it can be a nightmare to troubleshoot if there is a problem. Also on one of the screen shots it looks like a default gateway is configured on a different subnet. Each subnet needs its own default gateway.

The title or name of the screenshot shows if its from router or switch...ddwrtv10/v11 is router and ciscov10 is switch

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
 
Last edited:
Ok one more question. Do you want the Cisco switch to do the routing for the 172 network or your Buffalo router to do the routing for the 172 network? If you want the switch to do the routing, have you enabled Layer3 mode on the switch (it ships in Layer2 mode). If you want the Buffalo router to do the routing then we need to set up a trunk port or tagged port on the switch and send both VLANs through the connection to the router, or I guess you could connect two cables from the switch to the router and send a different VLAN down each. How do you want to do it?
 
Ok one more question. Do you want the Cisco switch to do the routing for the 172 network or your Buffalo router to do the routing for the 172 network? If you want the switch to do the routing, have you enabled Layer3 mode on the switch (it ships in Layer2 mode). If you want the Buffalo router to do the routing then we need to set up a trunk port or tagged port on the switch and send both VLANs through the connection to the router, or I guess you could connect two cables from the switch to the router and send a different VLAN down each. How do you want to do it?

The switch is currently is layer3 mode(screenshot attached)
I want the switch to do the routing since the VLAN2 is configured on the switch. Since the switch can reach the internet, i am sure any VLAN configured on the switch can reach the internet by routing from the switch..is this right?

Anyways yes i want to do the routing on the switch and it is Layer3(ever since i have turned it on i had switched to laye3)

Other helpful screenshots from the switch
https://supportforums.cisco.com/sites/default/files/attachments/discussion/ciscov1.png
https://supportforums.cisco.com/sites/default/files/attachments/discussion/ciscov2.png
https://supportforums.cisco.com/sites/default/files/attachments/discussion/ciscov3.png
https://supportforums.cisco.com/sites/default/files/attachments/discussion/ciscov4.png
https://supportforums.cisco.com/sites/default/files/attachments/discussion/ciscov5.png
https://supportforums.cisco.com/sites/default/files/attachments/discussion/ciscov6.png
https://supportforums.cisco.com/sites/default/files/attachments/discussion/ciscov7.png
https://supportforums.cisco.com/sites/default/files/attachments/discussion/ciscov8.png
 

Attachments

  • ciscov11.jpg
    ciscov11.jpg
    23.2 KB · Views: 567
Last edited:
I will be really grateful if anyone can help me
This is just a simple setup...VLAN between router and switch and switch with another VLAN and needs routing from the VLAN on the switch..that is all

Don't know why its so tough to get help
 
Last edited:
I will be really grateful if anyone can help me
This is just a simple setup...VLAN between router and switch and switch with another VLAN and needs routing from the VLAN on the switch..that is all

Don't know why its so tough to get help

Well, to be honest, it looks like you have gotten in over your head and technical abilities. Because every router and switch manufacturers have different interfaces, unless someone happens to be using DD-WRT and a Cisco 300 series switch, then they are not going to be able to tell you the exact commands or fields to fill out in your device interface. Most people (including me) that look at your question and try to help are very familiar with VLAN and routing and can tell you generally what you need to do, but you have to know how to do it. Also you want someone to tell you how to do it your way, which makes it even more difficult. You want to do some of your routing on the Buffalo and some on the Cisco Switch. Thus for someone to be able to tell you the exact steps, they would have to be familiar with routing on both pieces of equipment and not just one. Not saying that person does not exist, I am just saying you really narrow down the pool of available people that can help. I see you posted over on the Cisco forum. Even they are having trouble as they may know the Cisco switch you have but not necessarily DD-WRT.
Now I do understand your frustration. And I am willing to help. Since you have multiple devices I would start with one of them first, the Cisco Switch. This will make it easier so you are not having to work against multiple problems at once (for instance, the problem of having the 192.168.10 subnet defined as VLAN1 on the switch but you have it defined as VLAN10 on the Buffalo). Now it is also my understanding that the Cisco 300 series switches cannot hand out DHCP addresses. If you need DHCP on the 172.16.0 subnet then the Buffalo will have to hand them out. This is where it gets tricky and why it would be much easier to put the Cisco switch in layer2 mode and let your Buffalo do all the routing. But there are instances where you would want the Cisco to route and I take it for your instance, this is what you need.
I would do this on the Cisco:
It is best practice to not use the default VLAN (VLAN1) when using multiple VLANs on a switch. For this reason I would create a VLAN10 on the switch and make it 192.168.10.35. Now if you wanted to manage your switch using a 192.168.10 address you need to make sure to set your switches VLAN management to VLAN10 (some switches allow for multiple management IP's and VLANs). Or you could leave VLAN1 as the management VLAN and give it another IP subnet (that would only be used for management). If you did this, though, I would at least temporarily assign a port to VLAN1 that is access and untagged. That way if for some reason the Cisco would not route between the other VLANs and VLAN1, you have not locked yourself out of the management interface.
Ok then I would create VLAN20 and make it 172.16.0.254 (I am just using the numbers you chose on your screenshots).
Now assign your ports, like ports 9 and 10 to VLAN20 (access ports untagged).
I would also assign at least one port as an access port untagged in VLAN10 and plug in something you can assign a 192.168.10 address to test with. Also you will need to put the port you are going to uplink to the Buffalo router with in VLAN10 as a Tagged, Trunked port.
Now I am not familiar with the Cisco 300 routing, but I assume it will build its own routing table between those VLANs. If so you should be able to ping between them. If not we may have to manually build the routes. Do that and see if it works. If so we can move on to the Buffalo.
Note: If you do not want to redo your VLAN's and you want to keep them as VLAN1 and VLAN2, we can still make it work, but this setup can cause you trouble down the road. Anyway if you do keep them the same then apply what I said above to those VLAN's and test.
 
Last edited:

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top