Changes

119 bytes added ,  10:40, 13 December 2022
no edit summary
Line 70: Line 70:  
uci set wireless.@wifi-iface[-1].wifi_id='wifi1'</pre>
 
uci set wireless.@wifi-iface[-1].wifi_id='wifi1'</pre>
   −
New internface configuration
+
===New internface configuration===
 
+
----
 
<pre>uci set network.wifi_wan=interface
 
<pre>uci set network.wifi_wan=interface
 
uci set network.wifi_wan.proto='dhcp'
 
uci set network.wifi_wan.proto='dhcp'
Line 78: Line 78:  
uci set network.wifi_wan.force_link='0'
 
uci set network.wifi_wan.force_link='0'
 
uci set network.wifi_wan.broadcast='0'</pre>
 
uci set network.wifi_wan.broadcast='0'</pre>
  −
IPv6 interface creation
  −
  −
<pre>uci set network.wifi_wan6=interface
  −
uci set network.wifi_wan6.proto='dhcpv6'
  −
uci set network.wifi_wan6.metric='6'
  −
uci set network.wifi_wan6.disabled='0'
  −
uci set network.wifi_wan6.force_link='0'
  −
uci set network.wifi_wan6.reqaddress='try'
  −
uci set network.wifi_wan6.reqprefix='auto'
  −
uci set network.wifi_wan6.device='@wifi_wan'</pre>
  −
  −
<pre>uci set network.lan_repeater=interface
  −
uci set network.lan_repeater.proto='relay'
  −
uci set network.lan_repeater.lan_mark='lan'
  −
uci set network.lan_repeater.enabled='1'
  −
uci set network.lan_repeater.network='lan wifi_wan'</pre>
  −
  −
<pre>uci set network.lan.ipaddr='192.168.1.3'</pre>
  −
  −
Set DHCP settings for LAN interface (disable dhcp on LAN) and enable IPv6 relay on wifi_wan interface and
  −
  −
<pre>uci set dhcp.lan.ignore='1'
  −
uci set dhcp.lan.ra='relay'
  −
uci set dhcp.lan.dhcpv6='relay'
  −
uci set dhcp.lan.ndp='relay'</pre>
  −
  −
<pre>uci set dhcp.wifi_wan=dhcp
  −
uci set dhcp.wifi_wan.ra='relay'
  −
uci set dhcp.wifi_wan.dhcpv6='relay'
  −
uci set dhcp.wifi_wan.master='1'
  −
uci set dhcp.wifi_wan.ndp='relay'</pre>
  −
  −
Set firewall zone, using WAN firewall zone for newly created wifi_wan network interface
  −
  −
<pre>uci set firewall.@zone[1].network='wan wan6 mob1s1a1 mob1s2a1 wifi_wan'</pre>
      
Set mwan3 settings for new interface wifi_wan
 
Set mwan3 settings for new interface wifi_wan
Line 139: Line 103:  
uci add_list mwan3.mwan_default.use_member='wifi_wan_member_mwan'
 
uci add_list mwan3.mwan_default.use_member='wifi_wan_member_mwan'
 
uci add_list mwan3.balance_default.use_member='wifi_wan_member_balance'</pre>
 
uci add_list mwan3.balance_default.use_member='wifi_wan_member_balance'</pre>
 +
 +
===IPv6 interface creation===
 +
----
 +
<pre>uci set network.wifi_wan6=interface
 +
uci set network.wifi_wan6.proto='dhcpv6'
 +
uci set network.wifi_wan6.metric='6'
 +
uci set network.wifi_wan6.disabled='0'
 +
uci set network.wifi_wan6.force_link='0'
 +
uci set network.wifi_wan6.reqaddress='try'
 +
uci set network.wifi_wan6.reqprefix='auto'
 +
uci set network.wifi_wan6.device='@wifi_wan'</pre>
    
Set proper ipv6 settings for wifi_wan6 iface
 
Set proper ipv6 settings for wifi_wan6 iface
Line 169: Line 144:  
uci set mwan3.default_rule_ipv6.family='ipv6'</pre>
 
uci set mwan3.default_rule_ipv6.family='ipv6'</pre>
    +
===LAN interface configuration===
 +
----
 +
<pre>uci set network.lan_repeater=interface
 +
uci set network.lan_repeater.proto='relay'
 +
uci set network.lan_repeater.lan_mark='lan'
 +
uci set network.lan_repeater.enabled='1'
 +
uci set network.lan_repeater.network='lan wifi_wan'</pre>
 +
 +
<pre>uci set network.lan.ipaddr='192.168.1.3'</pre>
 +
 +
Set DHCP settings for LAN interface (disable dhcp on LAN) and enable IPv6 relay on wifi_wan interface and
 +
 +
<pre>uci set dhcp.lan.ignore='1'
 +
uci set dhcp.lan.ra='relay'
 +
uci set dhcp.lan.dhcpv6='relay'
 +
uci set dhcp.lan.ndp='relay'</pre>
 +
 +
<pre>uci set dhcp.wifi_wan=dhcp
 +
uci set dhcp.wifi_wan.ra='relay'
 +
uci set dhcp.wifi_wan.dhcpv6='relay'
 +
uci set dhcp.wifi_wan.master='1'
 +
uci set dhcp.wifi_wan.ndp='relay'</pre>
 +
 +
===Firewall configuration===
 +
----
 +
Set firewall zone, using WAN firewall zone for newly created wifi_wan network interface
 +
 +
<pre>uci set firewall.@zone[1].network='wan wan6 mob1s1a1 mob1s2a1 wifi_wan'</pre>
 +
 +
===Commit changes===
 +
----
 
Save all the changes and restart the configuration
 
Save all the changes and restart the configuration
    
<pre>uci commit
 
<pre>uci commit
 
reload_config</pre>
 
reload_config</pre>