Skip to content

port-affinity

You can configure port affinity to manually assign a CPU core to a specific interface. Once you configure this, the assigned CPU cores handle all the network traffic for that interface.

Note

You can only assign CPU cores to interfaces that have already been configured.

Port-affinity isn't supported with legacy network adapters, for example, when a virtual appliance is deployed in Microsoft Hyper-V.

Note

You don't need to configure port-affinity settings on XGS Firewall devices. Traffic is load-balanced and distributed across CPU cores for these devices automatically.

Command

set port-affinity

Syntax

set port-affinity
add [port] {PortID} [bind-with | start-with] [cpu] [cpu number]
defsetup
del [port] {PortID}
fwonlysetup

Options

add [port] {PortID} [bind-with | start-with] [cpu] [cpu number]

Allows you to add port affinity settings to the desired interface.

defsetup

Applies the default port affinity configuration.

del [port] {PortID}

Deletes current port affinity settings for the selected port.

fwonlysetup

This is the legacy default port affinity setup and only handles plain firewall traffic, which doesn't include any proxy or IPS traffic.