To connect your gateway to The Things Network, it has to be configured to properly forward the traffic to it, and it also has to be added/registered on The Things Network.
It is recommended to use LoRa Basics Station protocol, due to number of security and scalability issues related to UDP Packet Forwarder.
Registering your gateway can be done in two ways, via Console or via CLI.
To add a gateway, you will need to provide Gateway EUI and its Frequency Plan. Some other optional parameters can be defined. Learn how to add gateways using Console or CLI.
If you are experiencing issues while adding gateways to The Things Network, see Troubleshooting.