Configuring the SMTP interface using the CLI

Prev Next

Use the commands in this section to configure a static IP address for the SMTP interface.

Important

Do not use the interface pether3 ipv6 address command to configure the IPv6 address, because it does not enable SMTP on the IPv6 address. Use the command in this procedure instead.

Note

If you configure a second IPv4 or IPv6 address, it will overwrite the existing address.

To configure an SMTP interface address:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. Do one of the following:

    • Configure an IPv4 address and network mask or mask length:

      hostname (config) # interface pether3 ip address <ip address> {<netmask> | <mask length>}

    • Configure an IPv6 address and mask length:

      hostname (config) # email-analysis interface pether3 ipv6 address <IPv6 address> mask-len <mask length>

  3. Verify your changes:

    hostname (config) # show email-analysis
  4. Save your changes:

    hostname (config) # write memory
To remove an SMTP interface address:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. Do one of the following:

    • Remove the IPv4 address:

      hostname (config) # no interface pether3 ip address

    • Remove the IPv6 address:

      hostname (config) # hostname (config) # no interface pether3 ipv6 address <IPv6 address>/<mask length>

  3. Verify your changes:

    hostname (config) # show email-analysis

  4. Save your changes:

    hostname (config) # write memory

Examples

The following example configures a static IPv4 address for the SMTP interface.

hostname (config) # interface pether3 ip address 172.17.74.68 /12
hostname (config) # show email-analysis
Email-Analysis:
   enabled:                  yes
   mode:                     block
   interface:                pether3
   interface ipv4 address:   172.17.74.68
   ...

The following example configures a static IPv6 address for the SMTP interface.

hostname (config) # email-analysis interface pether3 ipv6 address 2001:xxx:xxxx:xxxx:xxx:xxxx:xxxx:xxxx mask-len 64
hostname (config) # show email-analysis
Email-Analysis:
   enabled:                  yes
   mode:                     block
   interface:                pether3
   interface ipv6 address:   2001:xxx:xxxx:xxxx:xxx:xxxx:xxxx:xxxx
   ...