Pre-requisite
Create API Token
To allow Proxmox to talk to NetBox, you need an API token.
- Log in to NetBox.
- Click on your Username (top right) → API Tokens.
- Click Add a Token.
- Description: `Proxmox SDN`
- Write Enabled: Checked (Proxmox needs to write IP data).
- Click Create.
- Copy the Token. You will need this for the Proxmox SDN Controller setup.
Configure Proxmox SDN with NetBox
Now that NetBox is running, connect Proxmox to it.
Add NetBox IPAM Plugin
- Go to Datacenter → SDN → Options → IPAM.
- Click Add → NetBox.
- ID: netbox
- URL: http://192.168.1.24/api (Your NetBox URL; no trailing slash or /api path).
- Token: Paste the API Token you generated.
- Click Add.
Important: Pre-create Prefixes in NetBox
Proxmox will not create the subnet/prefix in NetBox for you. You must do it manually first.
- In NetBox, go to IPAM → Prefixes → Add.
- Add the prefix that matches your Proxmox VNet subnet (e.g., `10.60.10.0/24`).
- Set Status to Active.
Assign NetBox to a Zone
- Go to Datacenter → SDN → Zones.
- Edit your EVPN Zone (e.g., `evpntest`).
- Change IPAM to netbox.
- Click OK.
Apply & Verify
- In Proxmox, go to Datacenter → SDN → Apply.
- Restart a VM/LXC in that VNet.
- Check NetBox IPAM; you should see the IP address automatically registered with the VM’s name.