New Posts  All Forums:Forum Nav:

Join two subnets

post #1 of 10
Thread Starter 
Hi, need to join two subnets together so PC's on either subnet can see each other.

Okay so i'll explain,

Router is a Linksys wrt54gl with ddwrt

Subnet 1 is 10.0.0.1 and is going into the routers WAN port (assigned by DHCP).

Subnet 2 is 192.168.1.254 and is going into routers LAN port and is the authoritative DHCP.

Each subnet has internet.

Currently I set up each PC with manual settings via cmd netsh to either connect to subnet 1 or 2 but the problem is when you are connected to one you cant see the other (cant ping it or any PC's on it).

Now how do I join/bridge the two in the router.

I have no access the the subnets, the ISPs don't allow you to change the settings

Thanks, and please no cryptic replys, keep it simple I really am dump founded with networking.
post #2 of 10
Why is the first ones ip 10.0.0.1?
post #3 of 10
Wait, those are subnets? Do an ipconfig /all and report the results of each computer.
Ninja Box
(14 items)
 
Trusty Dell
(13 items)
 
CPUGraphicsRAMHard Drive
Intel t7250 8600m gt 3gb ddr2 320gb 
OSMonitorCase
7 32bit Ultimate 15'' 1280x800 Vostro 1500 
  hide details  
Reply
Ninja Box
(14 items)
 
Trusty Dell
(13 items)
 
CPUGraphicsRAMHard Drive
Intel t7250 8600m gt 3gb ddr2 320gb 
OSMonitorCase
7 32bit Ultimate 15'' 1280x800 Vostro 1500 
  hide details  
Reply
post #4 of 10
If theyre on the same router then they must be on the same network.

If your one IP is 192.168.254 make the other one 192.168.1.252
post #5 of 10
We clearly need more information to understand his problem, we'll wait until he posts the results the ipconfig /all
Also just because 2 pc's are connected to the same router doesn't mean they have to be on the same network or subnet
RED912
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom x6 1055T ASUS Crosshair V 2xGigabyte 6950 CF 2x4GB Corsair Vengeance 1600mhz 
Hard DriveOptical DriveOSMonitor
OCZ 120GB Vertex3 MaxIOPS, 4x500GB WD Blue Raid0 Asus DVD-RW, LG DVD-RAM Windows 7 Professional x64 BenQ 21.5" G2220HD, x2 Samsung 21.5" S22A300B 
KeyboardPowerCaseMouse
Logitech Wave Antec Gamer 900 Coolermaster HAF912A Microsoft Sidewinder x3 
Mouse Pad
Razer Vespula 
  hide details  
Reply
RED912
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom x6 1055T ASUS Crosshair V 2xGigabyte 6950 CF 2x4GB Corsair Vengeance 1600mhz 
Hard DriveOptical DriveOSMonitor
OCZ 120GB Vertex3 MaxIOPS, 4x500GB WD Blue Raid0 Asus DVD-RW, LG DVD-RAM Windows 7 Professional x64 BenQ 21.5" G2220HD, x2 Samsung 21.5" S22A300B 
KeyboardPowerCaseMouse
Logitech Wave Antec Gamer 900 Coolermaster HAF912A Microsoft Sidewinder x3 
Mouse Pad
Razer Vespula 
  hide details  
Reply
post #6 of 10
Thread Starter 
Well its at my gf house so when I go by it again I will give exact info, going out of memory here currently. Maybe I will setup teamviewer or something to get the info.
post #7 of 10
If you're using two consumer grade routers, just use the LAN ports and lump them into the same network.

On general consumer based devices there is no way to turn off NAT on the WAN interface.
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 #8 of 10
Those are 2 different networks, not subnets. I imagine they both have the mask of 255.255.255.0? Depending on the router, you will need to enable a routing protocal so the router then knows to route between the two networks. I believe your router supports RIP which will do the trick.
post #9 of 10
i don't see why this is a problem... but at the same time, i don't know why you'd want to connect TWO subnets and have TWO subnets... the Correct way to do this is to make it the same network...

(A subnetwork, or subnet, is a logically visible subdivision of an IP network. The practice of dividing a network into subnetworks is called subnetting. -- A Subnet is not the same thing as a Net mask, or subnet mask... )

from your description it sounds like your DD-wrt is doing all the work... but what other devices do you have? modem included... Do you have two routers? Two configured Subnets? Does your ISP provide you with a Private IP or does the modem? -- things to think about...

you *should* be able to disable NAT and configure the routing... but as stated above this is hit or miss with consumer grade trash firmwares...

Snips from the DD-wrt wiki

By default all of these routers will be operating in 'Gateway' routing mode which means they do Network Address Translation (NAT) which makes their LAN subnet addresses invisible on their WAN side. Because each router has an interface connected to the 192.168.1.0/24 subnet, they all have routes to this subnet. However, Router1 doesn't have a route to 192.168.2.0/24 or 192.168.3.0/24, Router2 doesn't have a route to 192.168.3.0/24, and Router3 doesn't have a route to 192.168.2.0/24.

The static routes should be configured with:

Destination LAN NET - The remote subnet that you are creating the route for.
Subnet Mask - The subnet mask of the remote subnet. Typically a Class C subnet mask of 255.255.255.0 is used, which in slash notation is /24 as used in the diagram above.
Gateway - This must be set to the IP address of the next hop to the destination subnet which in this case is the WAN IP of Router2 and Router3. In networks with more devices the next hop may not be the device that is directly connected to the subnet.
Interface - This must be set to the interface that the next hop is connected to. For this example, Router2 and Router3 are connected to the LAN/WLAN (br0) interface of Router1.

With the routes configured it is now safe to disable NAT on Router2 and Router3 by switching their Operating Mode from 'Gateway' to 'Router' on the Setup->Advanced Routing page.

You will also need to use Iptables commands to allow the traffic through the firewalls of Router2 and Router3 to allow full communication between subnets. Iptables commands need to be saved to your firewall script on the Administration->Commands page. Here are a few examples of how you might choose to do so.

# Allow everything to be forwarded through the router (simple but do not use on routers directly connected to the internet)
iptables -I FORWARD -j ACCEPT
# Allow Router2 to forward traffic from Router1 and Router3's subnets
iptables -I FORWARD -s 192.168.1.0/24 -j ACCEPT
iptables -I FORWARD -s 192.168.3.0/24 -j ACCEPT
# Allow Router3 to forward traffic from Router1 and Router2's subnets
iptables -I FORWARD -s 192.168.1.0/24 -j ACCEPT
iptables -I FORWARD -s 192.168.2.0/24 -j ACCEPT
# Allow the entire 192.168.0.0/16 block to be forwarded through the router
iptables -I FORWARD -s 192.168.0.0/16 -j ACCEPT
If you've configured the routes and firewalls correctly then you should now be able to communicate to devices throughout your network without having to rely on bridging. If you have software firewalls running on your PC's then you will need to configure or disable them to allow connections from other subnets.

Snip
Khaos
(14 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 @ 4.59ghz Asus P6T Gigabyte GTX 1080 48GB 6 x G.SKILL Ripjaws X 8GB DDR3 1866 
Hard DriveCoolingOSMonitor
28 x WD Blk 8TB Raid 6 on Areca 24 port SATA/SA... Xigmatek 1283EE 2016 Standard 3x 43" 4k 120hz 
KeyboardPowerCaseMouse
Ergodox Infinity 1.2b Dual 1200w P2 CM Stacker 810 Roccat Tyon 
Mouse PadAudio
48x16" deskmat SMSL AD18, Klipsch R-15M, xDuoo DAC, AKG K7XX 
  hide details  
Reply
Khaos
(14 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 @ 4.59ghz Asus P6T Gigabyte GTX 1080 48GB 6 x G.SKILL Ripjaws X 8GB DDR3 1866 
Hard DriveCoolingOSMonitor
28 x WD Blk 8TB Raid 6 on Areca 24 port SATA/SA... Xigmatek 1283EE 2016 Standard 3x 43" 4k 120hz 
KeyboardPowerCaseMouse
Ergodox Infinity 1.2b Dual 1200w P2 CM Stacker 810 Roccat Tyon 
Mouse PadAudio
48x16" deskmat SMSL AD18, Klipsch R-15M, xDuoo DAC, AKG K7XX 
  hide details  
Reply
post #10 of 10
Yeah but if he uses the 192.168.1.254 max subnets of 2 then he will have 62hosts where the mask will be 255.255.255.192 and the hosts will be 192.168.1.193->192.168.1.254

Subnet 1 will be 192.168.1.65->192.168.1.126
Subnet 2 will be 192.168.1.129->192.168.1.190

Broadcast is 192.168.1.127 for 1
Broadcast is 192.168.1.191 for subnet 2
So set your first static to subnet 1. so set your static for both between those ranges
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security