Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm currently working on a bridged openvpn setup between two places. My home lan uses a 192.168.1.x subnet, as does the remote location (which i can't change the subnet for anyway) which results, naturally in ip address conflict. I'd like to know how i could change my home subnet to 192.168.0.x so that they wouldn't conflict.

share|improve this question
add comment

3 Answers

up vote 1 down vote accepted
+50

With a bridged VPN then both endpoints must have the same subnet. You just have to ensure that each end uses different IP addresses (I would suggest that one uses addresses ending in .1 to .127 and the other .128 to .254).

To change the subnet used for the LAN on a DD-WRT device log in to the web interface, select the Setup tab and change the settings under Network Setup. This, and much more, is covered in the DD-WRT documentation.


What version of DD-WRT are you running? It's certainly there in V24 and something similar should be there for V23.


Right, under Basic Setup you'll see Network Setup. That's the default tab as soon as you select Setup so I didn't see the need to highlight it.


Changing the Local IP address is what you want. Changing the Subnet Mask changes what bits of the Local IP address field are interpreted as the local network, which won't help you.

share|improve this answer
    
there's no such tab. basic set up has an option for setting router IP, but that's about it –  Journeyman Geek Aug 28 '10 at 14:17
    
also Sat Aug 28 23:26:25 2010 WARNING: potential TUN/TAP adapter subnet conflict between local LAN [192.168.1.0/255.255.255.0] and remote VPN [192.168.1.0/255.255.255.0] suggests i may need to change subnets on one side –  Journeyman Geek Aug 28 '10 at 15:28
    
v24sp1 - the options there are * Basic Setup * DDNS * MAC Address Clone * Advanced Routing * VLANs * Networking –  Journeyman Geek Aug 29 '10 at 1:35
    
Probably in Basic Setup or Networking –  BloodPhilia Aug 29 '10 at 19:42
    
i get Local IP Address, Subnet Mask ,Gateway, Local DNS I suppose changing the subnet of the first should work? –  Journeyman Geek Aug 30 '10 at 14:26
show 1 more comment

You can setup a virtual subnet which enables something like this:

alt text

Since the process is a lengthy one, I won't post what to do, but I found this tutorial on how to do just that.

In case that one doesn't work here is a second one to go off of.

Update After reading the tutorials a little more, it looks like the second one, might be a little more successful, but I'll leave both up.

share|improve this answer
    
Nope. I'm NOT trying to have 2 subnets in the same place. I'm trying to change my subnet so that i won't have a conflict with the subnet i'm using for a VPN –  Journeyman Geek Aug 31 '10 at 0:38
    
But you cannot when you have a bridged router. –  KronoS Aug 31 '10 at 1:59
add comment

The simplest idea is to use fixed IP addresses.

For example, give your home computers an IP address that counts down from 192.168.1.253.
This is quite safe, as the remote network will probably go upwards from 192.168.1.1.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.