Question about additional IP in manual network

Hello, I have a VPS that is using Alma Linux.
I virtualized the VPS with Proxmox and added the IP to the main Promox network and the IP was added to the VPS by Mac.
However, when I formatted the VPS, I added the manual network option.

I currently have 1 IP, but I need to add another IP to the VPS.
As I am new to Alma Linux, I have some questions about how to add it.

The IP is in the same subnet as the server’s main IP.

I have already added it. The question is whether to put it on the same line or create a separate address2 with gateway

/etc/NetworkManager/system-connections
ens18.nmconnection

[connection]
id=ens18
uuid=xxxx
type=ethernet
autoconnect-priority=-999
interface-name=ens18
timestamp=17xx

[ethernet]

[ipv4]
address1=192.161.0.70/27,192.168.0.1
dns=8.8.8.8;8.8.4.4; method=manual

[ipv6]
addr-gen-mode=eui64
method=auto

[proxy]

the question is whether to put
address2=192.161.0.71/27,192.168.0.1

Or if I should put it on the same line as the current one as an example

address1=192.161.0.70/27,192.161.0.71/27,192.168.0.1

I have this question if someone can help me with this issue.
I thought about using nmtui but I think that directly in the file will also work.

You “don’t need to know”. Do not edit the file directly. Use nmclior nmtui to add addresses. They know the correct syntax for the file.


That is asking for trouble. You will need policy-based routing in order for correctly sending replies to packet that did arrive with the secondary address.