Changes

no edit summary
Line 37: Line 37:  
* In the line 119 you should be able to see the '''"ipad=${ipaddr:-"%%LAN_IP%%"}"''' line. Change the '''"%%LAN_IP%%"''' portion with your desired LAN IP address; for example: '''"ipad=${ipaddr:-"10.10.10.1"}"'''
 
* In the line 119 you should be able to see the '''"ipad=${ipaddr:-"%%LAN_IP%%"}"''' line. Change the '''"%%LAN_IP%%"''' portion with your desired LAN IP address; for example: '''"ipad=${ipaddr:-"10.10.10.1"}"'''
 
After applying this change, the '''"generate_network()"''' function should look similar to this:
 
After applying this change, the '''"generate_network()"''' function should look similar to this:
[[File:Lan ip fin.png|1778x663px]]
+
[[File:Lan ip-fin1.png|1793x762px]]
 +
 
    
===Setting WAN port as LAN===
 
===Setting WAN port as LAN===
 
----
 
----
   −
Navigate to the
+
To enable the '''“WAN as LAN”''' feature, you will need to disable the WAN/WAN6 interfaces and bridge the '''“eth1”''' interface to the LAN interface in the same '''"generate_network()"''' function.
 +
 
 +
To bridge the '''"eth1"'''' interface to the LAN interface, add the following command after the line 120:
 +
<pre>
 +
uci set network."$1".ifname='eth0 eth1'
 +
</pre>
 +
 
 +
To disable WAN/WAN6 interfaces, add the following commands after line 147 and line 158:
 +
 
 +
'''After Line 147:'''
 +
<pre>
 +
set network.$1.disabled='1'
 +
</pre>
 +
'''After Line 158:'''
 +
<pre>
 +
set network.${1}6.disabled='1'
 +
</pre>
 +
 
 +
After applying these changes, the '''"generate_network()"''' function should look similar to this:
 +
[[File:Lan-wan-fin1.png|1833x978px]]