macsat.com OpenWrt and ASUS WL Forum
December 04, 2008, 00:07:56 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Changing LAN network address  (Read 2235 times)
0 Members and 1 Guest are viewing this topic.
Szumi
Newbie
*
Offline Offline

Posts: 4


View Profile
« on: March 06, 2006, 22:47:27 PM »

In your tutorial
http://www.macsat.com/macsat/content/view/13/30/

You have user setting these values:

nvram set wan_ifname=vlan1
nvram set wan_proto=dhcp
nvram set lan_ifname=br0
nvram set lan_ifnames="vlan0 eth1"
nvram set lan_proto=static
nvram set lan_netmask=255.255.255.0
nvram set lan_gateway=192.168.1.1
nvram set dhcp_start=192.168.1.50
nvram set dhcp_end=192.168.1.75
nvram commit


I changed the following thinking that it would change network address of lan:

nvram set lan_gateway=10.1.1.1
nvram set dhcp_start=10.1.1.50
nvram set dhcp_end=10.1.1.75
nvram commit
reboot


router came up with LAN still 192.168.1.0

So I changed lan_addr to 10.1.1.1, commited and rebooted and then WAN side changed to a 10.1.1.0 network .

Did you leave something out of tutorial or am I missing something?

Thanks,

Szumi



Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,104



View Profile
« Reply #1 on: March 07, 2006, 08:45:37 AM »



For changing to 10.1.1.1 you need to:

Code:
nvram set lan_ipaddr=192.168.0.1
nvram set wan_ifname=vlan1
nvram set wan_proto=dhcp
nvram set lan_ifname=br0
nvram set lan_ifnames="vlan0 eth1"
nvram set lan_proto=static
nvram set lan_netmask=255.0.0.0
nvram set lan_gateway=10.1.1.1
nvram set dhcp_start=10.1.1.50
nvram set dhcp_end=10.1.1.75
nvram commit
....as far as I know.
I am not too sure about the lan_netmask, but I do believe the above would be correct.

Changing lan_ varibles shouldnt interfer with your WAN address!
Logged
Szumi
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #2 on: March 07, 2006, 15:56:17 PM »

My bad.

So I changed lan_addr to 10.1.1.1, commited and rebooted and then WAN side changed to a 10.1.1.0 network.

Should have been

So I changed lan_addr to 10.1.1.1, commited and rebooted and then LAN side changed to a 10.1.1.0 network .

Szumi
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.506 seconds with 24 queries.