Hello,
I have a cPanel server with a range of IP addresses on eth1 nic.
So:
eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:55:56:04:22:68 brd ff:ff:ff:ff:ff:ff
inet 5.35.114.178/29 brd 5.35.114.191 scope global eth1
inet 5.35.114.179/29 brd 5.35.114.183 scope global eth1:cp1
I have addedd a new IP range on the same interface and now it also includes these aliases:
inet 92.115.8.6/24 brd 92.115.8.255 scope global secondary eth1:cp6
inet 92.115.8.7/24 brd 92.115.8.255 scope global secondary eth1:cp7
inet 92.115.8.8/24 brd 92.115.8.255 scope global secondary eth1:cp8
inet 92.115.8.9/24 brd 92.115.8.255 scope global secondary eth1:cp9
The problem is the default gateway which is setup to use the first IP block:
0.0.0.0 5.35.114.177 0.0.0.0 UG 0 0 0 eth1
How do I go about adding a new gateway pertaining to the new IP block so that this new block is usable in cPanel ?
Should I use rt_tables or is there a centos or cpanel way to do it ? What is your recommendation about it ?
Thank you in advance.
Alex.
I have a cPanel server with a range of IP addresses on eth1 nic.
So:
eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:55:56:04:22:68 brd ff:ff:ff:ff:ff:ff
inet 5.35.114.178/29 brd 5.35.114.191 scope global eth1
inet 5.35.114.179/29 brd 5.35.114.183 scope global eth1:cp1
I have addedd a new IP range on the same interface and now it also includes these aliases:
inet 92.115.8.6/24 brd 92.115.8.255 scope global secondary eth1:cp6
inet 92.115.8.7/24 brd 92.115.8.255 scope global secondary eth1:cp7
inet 92.115.8.8/24 brd 92.115.8.255 scope global secondary eth1:cp8
inet 92.115.8.9/24 brd 92.115.8.255 scope global secondary eth1:cp9
The problem is the default gateway which is setup to use the first IP block:
0.0.0.0 5.35.114.177 0.0.0.0 UG 0 0 0 eth1
How do I go about adding a new gateway pertaining to the new IP block so that this new block is usable in cPanel ?
Should I use rt_tables or is there a centos or cpanel way to do it ? What is your recommendation about it ?
Thank you in advance.
Alex.