Use the commands in this section to configure a static IP address for the SMTP interface.
Important
Do not use the
interface pether3 ipv6 addresscommand 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.
Go to CLI configuration mode:
hostname > enable hostname # configure terminal
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>
Verify your changes:
hostname (config) # show email-analysis
Save your changes:
hostname (config) # write memory
Go to CLI configuration mode:
hostname > enable hostname # configure terminal
Do one of the following:
Remove the IPv4 address:
hostname (config) # no interface pether3 ip addressRemove the IPv6 address:
hostname (config) # hostname (config) # no interface pether3 ipv6 address <IPv6 address>/<mask length>
Verify your changes:
hostname (config) # show email-analysisSave 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 ...