It depends on subnet mask that was used to append your IP addresses. Some examples below to shad some light on syntax.
Ex 1.
ip a |grep global
inet xx.xx.150.114/29 brd xx.xx.150.119 scope global eth0 inet xx.xx.150.115/29 brd xx.xx.150.119 scope global secondary eth0:0 inet xx.xx.150.116/29 brd xx.xx.150.119 scope global secondary eth0:1 inet xx.xx.150.117/29 brd xx.xx.150.119 scope global secondary eth0:2 inet xx.xx.150.118/29 brd xx.xx.150.119 scope global secondary eth0:3
Then /etc/ips should be looking as the following:
xx.xx.150.114:255.255.255.248:xx.xx.150.119 xx.xx.150.115:255.255.255.248:xx.xx.150.119 xx.xx.150.116:255.255.255.248:xx.xx.150.119 xx.xx.150.117:255.255.255.248:xx.xx.150.119 xx.xx.150.118:255.255.255.248:xx.xx.150.119
Ex 2.
ip a |grep global
inet xx.xx.121.250/32 brd xx.xx.121.250 scope global vlan3009:cp50 inet xx.xx.121.251/32 brd xx.xx.121.251 scope global vlan3009:cp51 inet xx.xx.121.252/32 brd xx.xx.121.252 scope global vlan3009:cp52 inet xx.xx.121.253/32 brd xx.xx.121.253 scope global vlan3009:cp53 inet xx.xx.121.254/32 brd xx.xx.121.254 scope global vlan3009:cp54
The /etc/ips should be looking as the following
xx.xx.121.250:255.255.255.255:xx.xx.121.250 xx.xx.121.251:255.255.255.255:xx.xx.121.251 xx.xx.121.252:255.255.255.255:xx.xx.121.252 xx.xx.121.253:255.255.255.255:xx.xx.121.253 xx.xx.121.254:255.255.255.255:xx.xx.121.254
Similar Posts:
- How to fix bounced back message with error in filter file: string is too long in line XX of filter file
- How to increase the view limit of PureFTP on cPanel using whmapi1
- Enable SpamAssassin globally for all users
- How to change a website’s IP address via command line
- How to enable Inline HTML display in Horde