[CentOS] more than one IP address on network device?

Ulf Volmer u.volmer at u-v.de
Sun Sep 4 15:33:41 UTC 2016


On 09/04/2016 05:00 PM, Ulf Volmer wrote:

>> IPADDR2=192.168.1.10
>> BROADCAST2=192.168.1.255 <--
>> NETMASK2=255.255.255.0
>> NETWORK2=192.168.1.0 <--
>> GATEWAY2=192.168.1.1 <--
>>
>> in case they don't match the first IP address?
> 
> I'm not sure at this point. If you have to add a second ip in another
> different network maybe you need a virtual device.

OK, some testing has been done. you have to specify

IPADDR=192.168.0.10
NETMASK=255.255.255.0
NETWORK=192.168.0.0
GATEWAY=192.168.0.1
IPADDR2=192.168.2.10
NETMASK2=255.255.255.0
NETWORK2=192.168.2.0

please note, that you have to specify only one GATEWAY, there can be
only one default gateway active.

best regards
Ulf




More information about the CentOS mailing list