Resolving SCALANCE W748-1 DHCP Client IP Assignment Behind AP

David Krause15 min read
Industrial NetworkingSiemensTroubleshooting
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

1. Problem Overview

A SCALANCE W748-1 RJ45 operating as an IWLAN client frequently associates with the access point and receives its own IP address from the upstream DHCP server, but any device on the Ethernet side of the W748-1 (for example, a Linux PC, a controller, or a managed switch) fails to obtain an IP address. The downstream device either times out on DHCPDISCOVER, sees the lease table on the server remain empty, or only completes the four-way handshake after the operator forces the DHCP server to respond in broadcast mode.

The symptom is platform-agnostic on the wired side: it has been reproduced on Linux (dhclient, systemd-networkd, NetworkManager), on Windows, and on embedded devices using standard DHCP clients. On the wireless side, the SCALANCE W748-1 itself remains associated, the WLAN link quality is good, and the uplink DHCP lease is renewed normally. The condition is therefore a Layer 2/3 visibility problem, not a radio or association problem.

Operationally, this means a single wired host behind a W748-1 client cannot be commissioned in default configuration. In brownfield cabinets, the same problem often surfaces only after a firmware update, an AP swap, or a MAC Mode change on the client, so the root cause is not always recognized immediately.

Field signature: W748-1 receives IP; downstream device stuck in DHCPDISCOVER. The wired host's MAC never appears in the DHCP server's binding table. The wired link is up at 100/1000 Mbit/s with no errors. No ACL, firewall, or 802.1X is applied on the wired port.

2. Affected Hardware and Firmware

The behavior described in this article applies to the following IWLAN client family:

Device Role Interfaces Notes
SCALANCE W748-1 RJ45 (e.g. 6GK5748-1 series) IWLAN client (station) 1x WLAN, 1x Ethernet RJ45 Subject of this article
SCALANCE W748-1 M12 IWLAN client (station) 1x WLAN, 1x Ethernet M12 Same MAC Mode options apply
SCALANCE W747-1 IWLAN client (station) 1x WLAN, 1x Ethernet Same client firmware branch
SCALANCE W74x family IWLAN client WLAN + Ethernet Shares the iPCF, iREF, and MAC Mode feature set

Firmware branches that expose the three MAC Mode options (Automatic, Own, Layer 2 Tunnel) are the relevant versions. Newer SCALANCE W firmware does not remove these options, but the default can differ between releases; the configuration paths below assume the W748-1 Web-Based Management (WBM) and the Command Line Interface (CLI via TELNET/SSH) for Primary Setup Tool (PST) and SINEC NMS management.

Reference documentation: Configuring SCALANCE X / W / M - DHCP Server, Address assignment with DHCP (ID: 109826940).

3. Technical Background: MAC Mode on IWLAN Clients

The W748-1 supports three MAC modes that determine how the device identifies itself on the WLAN segment. The choice has a direct impact on DHCP, ARP, and bridge learning upstream.

MAC Mode WLAN MAC used by the W748-1 Effect on downstream wired devices DHCP behavior
Automatic Same as the first Ethernet device seen on the LAN port. If the W748-1 is the only device, the WLAN MAC equals the Ethernet MAC. All frames sourced from the downstream device appear to come from the W748-1 MAC. The downstream MAC is essentially invisible upstream. Server sees a single MAC; only one lease possible per AP association.
Own W748-1 always uses its factory WLAN MAC regardless of what is connected to the Ethernet port. Downstream frames are bridged with their own source MAC, but the W748-1 itself answers ARP/probes for the downstream IP using the W748-1 MAC. Conflicting ARP entries; DHCP offers may be discarded by the client because the chaddr does not match the bridge port seen by the server.
Layer 2 Tunnel (L2T) W748-1 uses its own MAC plus a proprietary L2T header that encapsulates the downstream MAC addresses. Each downstream MAC is preserved end-to-end across the WLAN; up to eight MACs can be tunneled. DHCP works for each downstream device as if it were directly attached to the AP.

The Automatic and Own modes both deliberately hide or override the wired device's MAC. This is the root cause of the DHCP failure in the typical deployment: the DHCP server only ever sees one MAC address, and the lease it issues cannot be delivered to the right host because the W748-1's bridging logic in these modes is not designed to pass the DHCP transaction through with full per-host MAC identity.

4. Root Cause Analysis

In default Automatic or Own MAC mode, the IWLAN client inserts its own MAC address (or a shared MAC) into every frame sourced from the wired segment. The chain of events on a typical DHCP exchange is therefore:

  1. Wired device sends DHCPDISCOVER with chaddr = AA:BB:CC:DD:EE:01 and giaddr = 0.0.0.0.
  2. W748-1 bridges the frame upstream but rewrites the source MAC to AA:BB:CC:DD:EE:00 (its own WLAN MAC).
  3. DHCP server logs the request from AA:BB:CC:DD:EE:00 and reserves a lease for that MAC, or, if the W748-1 already holds a lease for that MAC, sees a duplicate chaddr and either silently drops or NAKs the request.
  4. Server replies DHCPOFFER unicast to AA:BB:CC:DD:EE:00. The W748-1 accepts the offer locally because chaddr matches its own MAC.
  5. The wired device never sees DHCPOFFER because the reply was consumed by the W748-1 and not forwarded to the correct port (or it sees an offer whose chaddr does not match its own and discards it per RFC 2131).

The broadcast flag in the DHCP options field (option 53 with giaddr=0.0.0.0) is the standard mechanism the client uses to request DHCPOFFER/DHCPACK as broadcast frames. If the server, switch, or W748-1 is configured to drop broadcast suppression on the WLAN segment, the offer can be delivered; this is the "brutal broadcast solution" that has been observed to work in the field. It is, however, a workaround that masks the underlying MAC translation problem.

5. Why L2T Fails to Associate on Non-SCALANCE APs

Layer 2 Tunneling is a proprietary Siemens extension carried in proprietary 802.11 information elements between the SCALANCE client and the access point. The AP must understand and trust the L2T encapsulation; only SCALANCE W access points running a matching firmware branch and configured to accept L2T will preserve the tunneled frames and forward them with the original MAC addresses.

When the W748-1 is pointed at a third-party AP (Cisco, Aruba, Ruckus, generic, etc.), the association itself is standard 802.11 and succeeds. The L2T IE is sent in the association request, but the foreign AP discards the encapsulated information and only sees the W748-1 MAC. Some third-party APs treat the unknown vendor IE as a malformed association, which can produce the "will not associate" symptom seen in the field. The W748-1 then continuously retries, the link LED is solid, and WBM shows Not associated with no obvious error.

Consequence: L2T requires a SCALANCE W access point (or a third-party controller with an explicit L2T interop profile, which is uncommon). For installations that must remain on a non-SCALANCE AP, L2T is not a viable solution.

Constraint: Do not enable L2T on a W748-1 that associates with a non-SCALANCE AP unless you are prepared for repeated association failures. Revert to Automatic or Own first, then use one of the alternative solutions below.

6. Solution 1: Manual MAC Mode (Mixed Use)

If L2T is not available because the AP is foreign, the next best option is Manual MAC mode (sometimes called Static). In this mode, the operator decides which device on the wired side is allowed to use the WLAN link, and the W748-1 itself does not perform a DHCP client on the wired segment.

  1. Connect to the W748-1 WBM: https://<IP-of-W748> (default credentials: admin/admin).
  2. Navigate to Layer 2 > WLAN > Client.
  3. Set MAC Mode to Manual.
  4. Enter the MAC address of the single downstream host that is allowed to use this radio link. Up to eight MACs are accepted on some firmware versions.
  5. Click Set Values and reboot the client.
  6. Re-associate and confirm the W748-1 is online (Information > WLAN > Client shows Associated).
  7. From the downstream host, run ipconfig /renew (Windows) or dhclient -v eth0 (Linux) and verify a lease is granted.

Manual mode is suitable when only one device on the wired side needs network access, which is the common case for a controller cabinet. The DHCP server then sees a single, stable MAC and the W748-1 stays out of the way.

7. Solution 2: L2 Tunnel with a SCALANCE Access Point

For greenfield deployments, multi-device panels, or any site already running a SCALANCE W AP, L2T is the correct long-term solution. L2T preserves MAC identity for up to eight downstream devices, which means a SCALANCE W client can pass traffic for an HMI, a controller, and a network printer simultaneously without MAC collision.

  1. On the SCALANCE W access point, navigate to Layer 2 > WLAN > AP and confirm Layer 2 Tunneling is enabled (default on most firmware versions).
  2. On the W748-1, navigate to Layer 2 > WLAN > Client.
  3. Set MAC Mode to Layer 2 Tunnel.
  4. Set the SSID, Security, and Radio parameters identical to the original Automatic profile.
  5. Click Set Values and reboot the W748-1.
  6. On the AP, verify in Information > WLAN > Client List that the W748-1 is shown as Associated (L2T) with the tunneled downstream MACs listed in the detail view.
  7. From the downstream host, run a DHCP renew and confirm the server log shows the host's MAC in the binding entry.

Once L2T is active, the W748-1 acts as a transparent Layer 2 bridge with a one-to-one MAC pass-through. DHCP, ARP, IPv6 ND, and 802.1X all work end-to-end as if the device were wired directly to the AP.

8. Solution 3: DHCP Server Broadcast Response

When neither L2T nor Manual mode fits the deployment, the operator can configure the DHCP server or the W748-1 to ensure DHCPOFFER and DHCPACK are always broadcast on the WLAN segment. This is the workaround that has been confirmed to work in production but is the least clean option because it floods the wireless segment with broadcast frames and stresses the AP.

8.1. Configure the wired client to set the broadcast flag

  • Windows: The Microsoft DHCP client always sets the broadcast flag by default. No change is required. Reference: DHCP Client Fails to Obtain IP Address from DHCP Server.
  • Linux (dhclient): The default /etc/dhcp/dhclient.conf already requests broadcast responses. To force it explicitly, add request subnet-mask, broadcast-address, routers, domain-name-servers; and verify with dhclient -v eth0.
  • Linux (systemd-networkd): Add DHCPv4=true and RequestBroadcast=true to the [DHCPv4] section of the .network file.
  • Linux (NetworkManager): Add ipv4.dhcp-broadcast=true to the connection profile: nmcli con mod <name> ipv4.dhcp-broadcast yes.

8.2. Configure the SCALANCE to allow broadcast forwarding

On the W748-1, the Layer 2 > WLAN > Client page includes a Broadcast or DHCP Broadcast option. Set it to Forward rather than Filter to permit DHCP broadcast frames to traverse the radio link. Apply, save, and reboot if required by the firmware version.

On the SCALANCE AP side, review the same setting on Layer 2 > WLAN > AP > Broadcast to make sure broadcast DHCP frames are not filtered at the AP.

8.3. Configure the DHCP server

Most enterprise DHCP servers (Windows DHCP, ISC DHCP, dnsmasq, Siemens SIMATIC NET DHCP) honor the broadcast flag by default. On ISC DHCP, confirm always-broadcast is not set; on dnsmasq, confirm --dhcp-broadcast is enabled. See SCALANCE X / W / M DHCP Server for the Siemens-side configuration example.

Side effect: Enabling broadcast forwarding on a wireless segment can also forward other broadcast traffic (NetBIOS, mDNS, LLMNR) and increase airtime utilization by 5-15% depending on the network. Use this option only when the alternatives are not feasible.

9. Step-by-Step Diagnostic Procedure

Use the following sequence to isolate the failure quickly on site.

  1. Confirm radio association. WBM > Information > WLAN > Client: status Associated, RSSI > -75 dBm, TX rate matches the configured 802.11 standard.
  2. Confirm the W748-1 has a DHCP lease. WBM > Information > System > IP & MAC: shows the IP from the server, lease time, and DHCP server address. If empty, the upstream DHCP problem is unrelated to the wired device.
  3. Capture DHCP traffic on the wired port. Use a managed tap or mirror port. Run tcpdump -i eth0 -n port 67 or port 68 -vvv on the Linux client. Confirm whether DHCPDISCOVER is leaving the device and whether DHCPOFFER is being returned.
  4. Capture DHCP traffic on the server side. Confirm the chaddr in the request. If it is the W748-1's MAC and not the downstream device's MAC, MAC Mode is the problem.
  5. Check the AP vendor. If it is non-SCALANCE, expect L2T to fail to associate. Move directly to Solution 1 (Manual) or Solution 3 (Broadcast).
  6. Apply the chosen fix and re-run steps 1-4 to verify the downstream MAC now appears in the binding table.
  7. Verify connectivity: from the wired host, ping <DHCP-server-IP> and ping 8.8.8.8 (or any reachable external target) to confirm L3 reachability beyond the AP.

10. Verification Checklist

Check Pass criterion Command / WBM path
W748-1 associated Status = Associated, RSSI > -75 dBm Information > WLAN > Client
W748-1 has IP IP from server, lease > 0 s Information > System
Wired host has IP IP from server, lease > 0 s, chaddr matches host ipconfig / ip addr
DHCP binding has correct MAC Downstream MAC present, not the W748-1 MAC Server lease table
L3 reachability from wired host ICMP echo to gateway and to one external host ping
Renewal works Lease renews at T1 (50%) without disconnect ipconfig /renew
Reboot test Wired host obtains IP after a power cycle of the W748-1 and AP Field test

11. Best Practices and Field Notes

  • Pick MAC Mode deliberately. Default Automatic is fine for a single direct-attached device with no other wired clients. For a panel with a controller, HMI, and managed switch on the same Ethernet segment, use L2T (with a SCALANCE AP) or Manual (with a single trusted MAC).
  • Keep Alive. Per Siemens KB 109826940, disabling Keep Alive resets the IP to 0.0.0.0 and forces a full DHCP exchange. Enable Keep Alive in installations where link flapping would otherwise disrupt the lease.
  • MAC allow-list on the AP. When you have moved to Manual mode, the W748-1 itself still presents a single MAC to the AP. Locking the AP's MAC filter to that single address is a simple defense-in-depth measure.
  • Avoid mixing L2T and non-SCALANCE APs. If a brownfield expansion must add a third-party AP, prefer keeping the W748-1 in Manual mode for that segment rather than enabling L2T and breaking association.
  • Document the MAC Mode in the project's networking standard. DHCP outages caused by MAC Mode drift are common after a swap-out; a single line in the cabinet documentation ("W748-1: MAC Mode = Manual, downstream MAC = AA:BB:CC:DD:EE:01") saves a half-day of troubleshooting.
  • Update the DHCP server's view of the world. When L2T is enabled, the DHCP server will see the downstream device's real MAC. Pre-staging reservations and Option 82 information is recommended if the network relies on per-device policy.

12. Troubleshooting Matrix

Symptom Most likely cause Fix
Wired host stuck in DISCOVER, lease table shows W748-1 MAC MAC Mode = Automatic/Own Switch to Manual (non-SCALANCE AP) or L2T (SCALANCE AP)
W748-1 will not associate after switching to L2T Non-SCALANCE AP discards L2T IE Revert MAC Mode; choose Manual or broadcast solution
Lease obtained only when server is forced to broadcast Broadcast flag filtered on the radio path Enable broadcast forwarding on W748-1 and AP; set client to request broadcast
Lease obtained but only on W748-1, not on wired host Server responds to W748-1 MAC; W748-1 does not forward L2T (SCALANCE AP) or Manual mode
Wired host gets IP, no upstream connectivity Routing/NAT issue unrelated to MAC Mode Validate default gateway, DNS, ACLs on AP/controller
Wired host gets IP, but ping fails intermittently Keep Alive disabled; lease drops on radio glitch Enable Keep Alive per KB 109826940
Linux client never sends DHCPDISCOVER Interface not in up state, or NetworkManager is suppressing DHCP Check ip link, nmcli device status; disable MAC randomization

FAQ

Why does my SCALANCE W748-1 get an IP but the device behind it does not?

By default the W748-1 uses MAC Mode Automatic or Own, which makes the WLAN MAC equal to (or override) the downstream device's MAC. The DHCP server only ever sees one MAC and only leases an IP to the W748-1 itself, so the wired device never receives a valid DHCPOFFER. Switch to MAC Mode Layer 2 Tunnel with a SCALANCE AP, or to Manual mode with a single downstream MAC, or enable broadcast DHCP forwarding.

Can I use Layer 2 Tunneling with a non-SCALANCE access point?

No, not reliably. L2T is a proprietary Siemens encapsulation in a vendor-specific 802.11 information element. Most third-party APs (Cisco, Aruba, Ruckus, generic) ignore or reject the L2T IE, and the W748-1 will fail to associate. For non-SCALANCE APs use Manual MAC mode or enable broadcast DHCP forwarding instead.

How do I force my Linux client to request a broadcast DHCP response?

For dhclient the default behavior already requests broadcast, but you can confirm with dhclient -v eth0 and look for the broadcast flag in the request. For systemd-networkd add RequestBroadcast=true under [DHCPv4]; for NetworkManager run nmcli con mod <name> ipv4.dhcp-broadcast yes. The Microsoft Windows DHCP client sets the broadcast flag by default.

Where do I change MAC Mode on the W748-1?

Open the WBM at https://<W748-IP> and go to Layer 2 > WLAN > Client. The MAC Mode dropdown exposes Automatic, Own, and Layer 2 Tunnel. Click Set Values, save permanently with System > Save, and reboot the client for the change to take effect.

What does the Siemens KB article 109826940 say about DHCP and Keep Alive?

Article 109826940 - Address assignment with DHCP explains that if Keep Alive is disabled, the IP address is reset to 0.0.0.0 when DHCP is switched on and a new IP from the DHCP server is anticipated. Enabling Keep Alive preserves the lease across short radio glitches and is recommended for stable operation behind an IWLAN client.

Back to blog