pfSense Interface Commands

Synopsis

netapi pfsense interfaces [OPTIONS]
netapi pfsense interfaces show <INTERFACE>

Commands

interfaces list

List all interfaces.

netapi pfsense interfaces
netapi pfsense interfaces --format json
Sample Output
Interface    Status    IPv4              Description
---------    ------    ----              -----------
wan          up        dhcp              WAN
lan          up        10.50.1.1/24      LAN
opt1         up        10.238.1.1/24     DATA_VLAN
opt2         up        10.238.2.1/24     VOICE_VLAN

interfaces show

Show interface details.

netapi pfsense interfaces show opt1

Configuration via YAML

interfaces:
  - name: opt3
    enable: true
    descr: "IoT_VLAN"
    ipaddr: 10.238.100.1
    subnet: 24
    gateway: none