Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:network:ipv4:configuration [2023/10/08 04:21] – [Examples] split to docs:guide-user:network:ipv4:examples vgaeteradocs:guide-user:network:ipv4:configuration [2023/10/08 04:27] – optimize vgaetera
Line 8: Line 8:
  
 <code bash> <code bash>
-# uci show network 
-... 
-network.wan=interface 
-network.wan.device='eth0.2' 
-network.wan.proto='dhcp' 
-... 
-</code> 
- 
-<code bash># cat /etc/config/network 
-... 
 config interface 'wan' config interface 'wan'
  option device 'eth0.2'  option device 'eth0.2'
  option proto 'dhcp'  option proto 'dhcp'
-... 
 </code> </code>
  
Line 93: Line 82:
  
 <code bash> <code bash>
-# uci show network 
-network.lan=interface 
-network.lan.device='br-lan' 
-network.lan.proto='static' 
-network.lan.netmask='255.255.255.0' 
-network.lan.ip6assign='60' 
-network.lan.ipaddr='192.168.1.1' 
-... 
-</code> 
- 
-<code bash> 
-# /etc/config/network 
 config interface 'lan' config interface 'lan'
  option device 'br-lan'  option device 'br-lan'
Line 117: Line 94:
  list ports 'lan3'  list ports 'lan3'
  list ports 'lan4'  list ports 'lan4'
-... 
 </code> </code>
  
  • Last modified: 2024/05/29 20:25
  • by zorun