connect_wireless
Attach a laptop or wireless client to a Wi-Fi network by SSID, security, and key, using DHCP or static IP, and report association and access point.
Instructions
Connect a laptop, PC or other client with a wireless card to a network: SSID, security and key, plus DHCP or a static address. Packet Tracer only associates when a network is loaded, so pktctl takes the network as bytes, sets the client's current profile, opens the result as a temporary copy (your own file is not written) and reports whether it associated and with which access point.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | Static address. Omit for DHCP. | |
| dns | No | ||
| key | No | ||
| mask | No | ||
| ssid | Yes | ||
| device | Yes | Client with a wireless card, for example a laptop. | |
| gateway | No | ||
| security | No | open | |
| bring_access_point | No | Move the access point with this SSID next to the client first when it is out of radio range (Packet Tracer's radios reach about 120 units in the physical workspace). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | Address of the wireless port; with DHCP, the lease if one arrived. | |
| file | Yes | The temporary copy Packet Tracer now has open. Your own file is untouched: save with `save_network` and a path to keep the change there. | |
| ssid | Yes | ||
| device | Yes | ||
| diagnosis | No | When the client did not associate: why, with the distance to each access point broadcasting the SSID. | |
| associated | Yes | ||
| access_point | No | ||
| moved_access_point | No | The access point that `bring_access_point` moved next to the client. |