Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Routing between 2 VLANs ? Som help needed!
New Posts  All Forums:Forum Nav:

Routing between 2 VLANs ? Som help needed!

post #1 of 6
Thread Starter 
I currently have 2 VLANs set up in my router (WRT160N V3, with Firmware: DD-WRT v24-sp2 (04/11/11) mini)

I have 2 vlans created, to make the QoS rules easier to apply.

Vlan 1 192.168.1.1 /24 -- Ports 1,2,4
Vlan 2 192.168.2.1 /24 -- Port 3
- Ports 1,2,4 are directly connected to hosts.
- Port 3 is connected to a switch.

What i want to do is to interconnect those 2 vlans / route between those vlans.
Or, in other words, I want to be able to share the resources of vlan1 with vlan2 and backwards.

I know that when you set up vlans on the router, they are in fact connected, and the IPtables commands are to isolate them, not to connect them.

So, i think its a subnet problem ??
For example, if I do a ping to 192.168.1.1 (gateway) from 192.168.2.100, i receive replies.
But, if i ping 192.168.1.108 (a host) from 192.168.2.100, i receive no replies.


Any suggestion?
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i5 2500 Biostar TH67b Sandy Bridge Integrated Supertalent 2x4gb 1333mhz 
Hard DriveOSMonitorPower
320gb + 2TB Windows 7 Professional X64 + Fedora i686 Samsung T260 26" Antec Signature 850w 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i5 2500 Biostar TH67b Sandy Bridge Integrated Supertalent 2x4gb 1333mhz 
Hard DriveOSMonitorPower
320gb + 2TB Windows 7 Professional X64 + Fedora i686 Samsung T260 26" Antec Signature 850w 
  hide details  
Reply
post #2 of 6
iptables -A FORWARD -i vlan1 -o vlan2 -j ACCEPT
iptables -A FORWARD -i vlan2 -o vlan1 -j ACCEPT

Should work?
post #3 of 6
Thread Starter 
Already tryed that, and didn't worked

Thanks anyway
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i5 2500 Biostar TH67b Sandy Bridge Integrated Supertalent 2x4gb 1333mhz 
Hard DriveOSMonitorPower
320gb + 2TB Windows 7 Professional X64 + Fedora i686 Samsung T260 26" Antec Signature 850w 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i5 2500 Biostar TH67b Sandy Bridge Integrated Supertalent 2x4gb 1333mhz 
Hard DriveOSMonitorPower
320gb + 2TB Windows 7 Professional X64 + Fedora i686 Samsung T260 26" Antec Signature 850w 
  hide details  
Reply
post #4 of 6
Make sure the alternate subnet is allowed in your application firewall.
Most of them only allow the current subnet they are in and that's it.
Waiting on X399
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II B57 @ X4 3.9 Gigabyte 790FXTA-UD5 Sapphire Radeon 290 8 GB G.Skill 2133 
Hard DriveCoolingOSKeyboard
250 GB 840 EVO Noctua NH-D14 Windows 10 Logitech K350 
PowerCaseMouseMouse Pad
Seasonic x750 Corsair 600T Logitech G100s Razer Goliathus Speed 
Audio
Plantronics Gamecom 788 
  hide details  
Reply
Waiting on X399
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II B57 @ X4 3.9 Gigabyte 790FXTA-UD5 Sapphire Radeon 290 8 GB G.Skill 2133 
Hard DriveCoolingOSKeyboard
250 GB 840 EVO Noctua NH-D14 Windows 10 Logitech K350 
PowerCaseMouseMouse Pad
Seasonic x750 Corsair 600T Logitech G100s Razer Goliathus Speed 
Audio
Plantronics Gamecom 788 
  hide details  
Reply
post #5 of 6
Thread Starter 
Quote:
Originally Posted by beers View Post
Make sure the alternate subnet is allowed in your application firewall.
Most of them only allow the current subnet they are in and that's it.
Do you mean allowing it on iptables? or in the OS Firewall?

If you mean OS firewall, i thought in that, and even completely disabled firewall and still i cant get both subnets connected.

Also, i have some devices that doesnt have firewall (WDTV live, for example), and it cant be reached from the alternate subnet.


this is really weird...
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i5 2500 Biostar TH67b Sandy Bridge Integrated Supertalent 2x4gb 1333mhz 
Hard DriveOSMonitorPower
320gb + 2TB Windows 7 Professional X64 + Fedora i686 Samsung T260 26" Antec Signature 850w 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i5 2500 Biostar TH67b Sandy Bridge Integrated Supertalent 2x4gb 1333mhz 
Hard DriveOSMonitorPower
320gb + 2TB Windows 7 Professional X64 + Fedora i686 Samsung T260 26" Antec Signature 850w 
  hide details  
Reply
post #6 of 6
Can you post the routing table of your router?

Also do you have this value set to 1?
Code:
/proc/sys/net/ipv4/ip_forward
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Routing between 2 VLANs ? Som help needed!