| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| playground:arinc9:networking-basics [2021/09/20 07:11] – [Device sections] arinc9 | playground:arinc9:networking-basics [2021/09/20 07:14] – [Interface sections] arinc9 |
|---|
| | ''packet_steering'' | boolean | no | //(none)// | Use every cpu to handle packet traffic | | | ''packet_steering'' | boolean | no | //(none)// | Use every cpu to handle packet traffic | |
| |
| ===== Device sections ===== | ===== Interface sections ===== |
| TODO: move everything related to bridges and layer 2 here. | TODO: move everything related to bridges and layer 2 here. |
| |
| They were [[https://github.com/openwrt/luci/commit/852ec6e28bf90d67882cf909b15a91ecc4501b55|moved out of ''/etc/config/network'']] in March, 2018. | They were [[https://github.com/openwrt/luci/commit/852ec6e28bf90d67882cf909b15a91ecc4501b55|moved out of ''/etc/config/network'']] in March, 2018. |
| |
| ===== Interface sections ===== | ===== Network sections ===== |
| Sections of the type ''interface'' declare logical networks serving as containers for IP address settings, [[docs:guide-user:network:network_interface_alias|aliases]], [[docs:guide-user:network:routes_configuration|routes]], physical interface names and [[docs:guide-user:firewall:startfirewall_rules]] - they play a central role within the LEDE configuration concept. | Sections of the type ''interface'' declare logical networks serving as containers for IP address settings, [[docs:guide-user:network:network_interface_alias|aliases]], [[docs:guide-user:network:routes_configuration|routes]], physical interface names and [[docs:guide-user:firewall:startfirewall_rules]] - they play a central role within the LEDE configuration concept. |
| |
| | ''ip4table'' | string | no | //(none)// | IPv4 routing table for routes of this interface, see ''ip rule show; ip route show table <ip4table>'' | | | ''ip4table'' | string | no | //(none)// | IPv4 routing table for routes of this interface, see ''ip rule show; ip route show table <ip4table>'' | |
| | ''ip6table'' | string | no | //(none)// | IPv6 routing table for routes of this interface, see ''ip -6 rule show; ip -6 route show table <ip6table>'' | | | ''ip6table'' | string | no | //(none)// | IPv6 routing table for routes of this interface, see ''ip -6 rule show; ip -6 route show table <ip6table>'' | |
| |
| ==== Options for bridges ==== | |
| :!: All bridge settings are optional. | |
| |
| ^ Name ^ Type ^ Default ^ Range ^ Description ^ | |
| | ''bridge_empty'' | boolean | ''0'' | ''0'', ''1'' | Enables creating empty bridges | | |
| | ''vlan_filtering'' | boolean | ''0'' | ''0'', ''1'' | Enables **VLAN** aware bridge mode | | |
| | ''igmp_snooping'' | boolean | ''0'' | ''0'', ''1'' | Enables **IGMP** snooping on the bridge, an optimization that only sends multicast traffic to ports with multicast clients or routers | | |
| | ''multicast_querier'' | boolean | (''igmp_snooping'' setting) | ''0'', ''1'' | **IGMP** Enables the bridge as a mutlicast querier, which keeps the multicast group to port mappings current. Only one querier is elected per subnet | | |
| | ''query_interval'' | number | ''12500'' | - | **IGMP** Interval in 1/100 seconds between querier general queries (so default is 125 seconds) | | |
| | ''query_response_interval'' | number | ''1000'' | (less than ''query_interval'') | **IGMP** Max time in 1/100 seconds responses to queries should be sent (increase to make IGMP less bursty) | | |
| | ''last_member_interval'' | number | ''100'' | - | **IGMP** Max time in 1/100s responses to queries after "leave group" messages (the leave latency) | | |
| | ''hash_max'' | number | ''512'' | - | **IGMP** Size of kernel multicast hash table (larger to avoid collisions that disable snooping) | | |
| | ''robustness'' | number | ''2'' | - | **IGMP** Sets Startup Query Count and Last Member Count. Also combined with ''query_interval'' and ''query_response_interval'' to calculate Group Membership Interval and "other querier" timeout (both other values must be set) | | |
| | ''stp'' | boolean | ''0'' | ''0'', ''1'' | Enables the Spanning Tree Protocol (**STP**) which prevents network loops (and resulting packet storms) | | |
| | ''forward_delay'' | number | ''2'':!: | ''2'' - ''30'' | **STP** Delay in seconds between port state transitions from Listening->Learning->Forwarding (i.e. bridge ports will be blocked for 2x this value when brought up) :!: **NOTE** The default ''2'' is below the minimum 802.1D standard of ''4'', and STP will be ignored by conforming switches. Set to at least ''4'' to work with non-OpenWRT switches! | | |
| | ''hello_time'' | number | ''2'' | ''1'' - ''10'' | **STP** Seconds between STP packets | | |
| | ''priority'' | number | ''32767'' | ''0'' - ''65535'' | **STP** Bridge Priority. Lowest priority bridge becomes the Root of the Spanning Tree; most switches default to ''32768'' | | |
| | ''ageing_time'' | number | ''300'' | ''10'' - ''1000000'' | **STP** Expire in seconds for dynamic MAC entries in the Filtering DB | | |
| | ''max_age'' | number | ''20'' | ''6'' - ''40'' | **STP** After current Root Bridge absent this many seconds, attempt to become the Root Bridge (effects the speed a dead bridge is identified) | | |
| |
| See [[docs:guide-user:network:wan:wan_interface_protocols]] for documentation on the protocol-specific options available for each WAN protocol. | |
| |
| The options ''_orig_ifname'' and ''_orig_bridge'' may be seen in ''/etc/config/network'' when managed by LuCI and were used to keep previous information across edits. | |
| They were [[https://github.com/openwrt/luci/commit/852ec6e28bf90d67882cf909b15a91ecc4501b55|moved out of ''/etc/config/network'']] in March, 2018. | |
| |
| ===== Switch configuration (DSA / bridge-vlan) ===== | ===== Switch configuration (DSA / bridge-vlan) ===== |