This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
technical:openwrt-wan-network [2022/09/18 12:51] admin [DSA enabled devices] |
technical:openwrt-wan-network [2022/09/25 20:19] (current) admin [Xiaomi 4A 100M] |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| * OpenWrt uses config files located under the **/ | * OpenWrt uses config files located under the **/ | ||
| * The **network** file is used to define the network configuration of the device. | * The **network** file is used to define the network configuration of the device. | ||
| - | * Since we can run the MESHdesk package on basically any device that can run OpenWrt **we need to adopt the means to reach the controller so it will work on the specific device.** | + | * Since we can include |
| * Some devices for instance might only have one ethernet port. | * Some devices for instance might only have one ethernet port. | ||
| * Others might have more Ethernet ports where a certain amount is grouped together and used as the LAN side and typically a single one assigned to the WAN port. | * Others might have more Ethernet ports where a certain amount is grouped together and used as the LAN side and typically a single one assigned to the WAN port. | ||
| Line 19: | Line 19: | ||
| <WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
| - | * When looking at these sample files keep in mind that our aim is to use the device section called **br-lan** as a bridge. | + | * When looking at these sample files keep in mind that our aim is to use the //device section// called **br-lan** as a bridge. |
| * Traditionally the LAN ports will be part of it. | * Traditionally the LAN ports will be part of it. | ||
| * We however configure it now in such a way that the WAN port becomes part of it instead of the LAN ports. | * We however configure it now in such a way that the WAN port becomes part of it instead of the LAN ports. | ||
| Line 235: | Line 235: | ||
| * This brings us to the end of the detailed discussion of the **/ | * This brings us to the end of the detailed discussion of the **/ | ||
| * Be sure that this file is tweaked so it will work on your hardware. | * Be sure that this file is tweaked so it will work on your hardware. | ||
| + | |||
| + | ====== Some Hardware Info ====== | ||
| + | ===== Xiaomi 4C ===== | ||
| + | * wan_network | ||
| + | <file bash wan_network> | ||
| + | config interface ' | ||
| + | option device ' | ||
| + | option proto ' | ||
| + | option ipaddr ' | ||
| + | option netmask ' | ||
| + | |||
| + | config device | ||
| + | option name ' | ||
| + | option type ' | ||
| + | list ports ' | ||
| + | |||
| + | config interface ' | ||
| + | option device ' | ||
| + | option proto ' | ||
| + | |||
| + | config interface ' | ||
| + | option proto ' | ||
| + | |||
| + | config interface ' | ||
| + | option proto ' | ||
| + | |||
| + | config switch | ||
| + | option name ' | ||
| + | option reset ' | ||
| + | option enable_vlan ' | ||
| + | |||
| + | config switch_vlan | ||
| + | option device ' | ||
| + | option vlan ' | ||
| + | option ports '4 2 6t' | ||
| + | |||
| + | config switch_vlan | ||
| + | option device ' | ||
| + | option vlan ' | ||
| + | option ports '1 6t' | ||
| + | |||
| + | </ | ||
| + | * hardware section | ||
| + | <file bash meshdesk> | ||
| + | config hardware ' | ||
| + | option morse_led '/ | ||
| + | option internet_led '/ | ||
| + | option wifi_led ' | ||
| + | </ | ||
| + | |||
| + | ===== Xiaomi 4A 100M ===== | ||
| + | * wan_network | ||
| + | <file bash wan_network> | ||
| + | config interface ' | ||
| + | option device ' | ||
| + | option proto ' | ||
| + | option ipaddr ' | ||
| + | option netmask ' | ||
| + | | ||
| + | config device | ||
| + | option name ' | ||
| + | option type ' | ||
| + | list ports ' | ||
| + | |||
| + | config interface ' | ||
| + | option device ' | ||
| + | option proto ' | ||
| + | |||
| + | config interface ' | ||
| + | option proto ' | ||
| + | |||
| + | config interface ' | ||
| + | option proto ' | ||
| + | |||
| + | config switch | ||
| + | option name ' | ||
| + | option reset ' | ||
| + | option enable_vlan ' | ||
| + | |||
| + | config switch_vlan | ||
| + | option device ' | ||
| + | option vlan ' | ||
| + | option ports '0 6t' | ||
| + | |||
| + | config switch_vlan | ||
| + | option device ' | ||
| + | option vlan ' | ||
| + | option ports '4 2 6t' | ||
| + | </ | ||
| + | * hardware section | ||
| + | <file bash meshdesk> | ||
| + | config hardware ' | ||
| + | option morse_led '/ | ||
| + | option internet_led '/ | ||
| + | option wifi_led ' | ||
| + | </ | ||
| + | |||
| + | ===== Totolink X500R (WiFi6) ===== | ||
| + | * wan_network | ||
| + | <file bash wan_network> | ||
| + | config interface ' | ||
| + | option device ' | ||
| + | option proto ' | ||
| + | option ipaddr ' | ||
| + | option netmask ' | ||
| + | |||
| + | config device | ||
| + | option name ' | ||
| + | option type ' | ||
| + | list ports ' | ||
| + | |||
| + | config interface ' | ||
| + | option device ' | ||
| + | option proto ' | ||
| + | |||
| + | config interface ' | ||
| + | option proto ' | ||
| + | |||
| + | config interface ' | ||
| + | option proto ' | ||
| + | </ | ||
| + | * hardware section | ||
| + | <file bash meshdesk> | ||
| + | config hardware ' | ||
| + | option morse_led '/ | ||
| + | option internet_led '/ | ||
| + | option wifi_led ' | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||