Lantronix SGX 5150 User Guide - Page 41

Using XML, Bridge, Warning

Page 41 highlights

Using XML  Include in your file: 6: Network Settings Bridge The SGX 5150 bridges traffic between an Ethernet and WLAN interface. For example, br0 is a bridge between eth0 and wlan0. When a bridge is enabled, the Wired (eth0) Network configuration is used for configuring direct connections into the device over the primary interface; the Wireless (wlan0) Network configuration is ignored. Both the Ethernet and WLAN link configurations are used the same as when the bridge is disabled. Bridging MAC Address specifies the MAC address of bridgeable traffic between the Ethernet and WLAN interfaces. When bridging is active, this MAC Address will be used as the MAC address of the WLAN interface. Packets received on the Ethernet interface from this address will be bridged to the WLAN interface (except traffic directed at the Primary Interface). If this field is not configured, then the device waits for the first packet to arrive on the Ethernet interface and uses the source address as the bridging address. Bridging IP Address specifies the IP address of the bridged client. When bridging is active, this IP Address will be used to create a static route between this device and the bridged client. This route is required for connecting to the bridged client from devices connected via the access point network and from this device. If Auto Detect IP Address is enabled, then the device will attempt to learn the IP Address by using the source or destination IP address of packets arriving on the Ethernet interface. Warning: Enabling Auto Detect IP Address may affect the performance of running processes during the learning phase. During initialization, the bridging subsystem enables and controls both eth0 and wlan0 networks. These are important aspects to keep in mind:  If the eth0 physical link is inactive, wlan0 is the primary interface.  If the eth0 physical link is active, eth0 is the primary interface. When the eth0 link is active, the wlan0 link is established. Additionally, the bridging MAC address is acquired using preconfiguration or auto-detection, and bridging enters the Active state. If either link goes down, bridging reverts to the Inactive state. When in the Active state, all packets that arrive on the wlan0 interface are bridged out (through) the eth0 interface. Similarly, all packets that arrive on the eth0 interface are bridged out (through) the wlan0 interface. However, exceptions to this behavior include:  Ethernet packets directed specifically to the Ethernet (eth0) MAC address are terminated internally and are not bridged to WLAN.  An ARP request for the primary interface IP address is terminated internally and is not bridged to the WLAN. Ethernet packets that do not originate from the bridging MAC Address are discarded. SGX 5150 IoT Device Gateway User Guide 41

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129

6: Network Settings
SGX 5150 IoT Device Gateway User Guide
41
Using XML
Include in your file:
<configgroup name=”access point”>
Bridge
The SGX 5150 bridges traffic between an Ethernet and WLAN interface. For example, br0 is a
bridge between eth0 and wlan0.
When a bridge is enabled, the
Wired (eth0) Network
configuration is used for configuring direct
connections into the device over the primary interface; the
Wireless (wlan0) Network
configuration
is ignored. Both the Ethernet and WLAN link configurations are used the same as when the bridge
is disabled.
Bridging MAC Address specifies the MAC address of bridgeable traffic between the Ethernet and
WLAN interfaces. When bridging is active, this MAC Address will be used as the MAC address of
the WLAN interface. Packets received on the Ethernet interface from this address will be bridged
to the WLAN interface (except traffic directed at the Primary Interface). If this field is not
configured, then the device waits for the first packet to arrive on the Ethernet interface and uses
the source address as the bridging address.
Bridging IP Address specifies the IP address of the bridged client.
When bridging is active, this IP Address will be used to create a static route between this device
and the bridged client.
This route is required for connecting to the bridged client from devices connected via the access
point network and from this device.
If Auto Detect IP Address is enabled, then the device will attempt to learn the IP Address by using
the source or destination IP address of packets arriving on the Ethernet interface.
Warning:
Enabling Auto Detect IP Address may affect the performance of running
processes during the learning phase.
During initialization, the bridging subsystem enables and controls both eth0 and wlan0 networks.
These are important aspects to keep in mind:
If the eth0 physical link is inactive, wlan0 is the primary interface.
If the eth0 physical link is active, eth0 is the primary interface.
When the eth0 link is active, the wlan0 link is established. Additionally, the bridging MAC address
is acquired using preconfiguration or auto-detection, and bridging enters the Active state. If either
link goes down, bridging reverts to the Inactive state.
When in the Active state, all packets that arrive on the wlan0 interface are bridged out (through)
the eth0 interface. Similarly, all packets that arrive on the eth0 interface are bridged out (through)
the wlan0 interface. However, exceptions to this behavior include:
Ethernet packets directed specifically to the Ethernet (eth0) MAC address are terminated
internally and are not bridged to WLAN.
An ARP request for the primary interface IP address is terminated internally and is not bridged
to the WLAN.
Ethernet packets that do not originate from the bridging MAC Address are discarded.