So i just cant manage this.
I have just 2 nics. (eth0 and eth1)
On one i have my management network (vmbr0 bridge to eth0).
I want to have another ip for either vmbr0 or eth0.
vmbr0 has 192.168.20.11
What i can do now is execute this :
ip addr add 192.168.50.11/24 dev vmbr0 label vmbr0.0
And it works. But after i restart everything is gone.
I can also add this to the interfaces file :
But again, after the restart its gone.
So is there any way that i can make this king of config stick around after restart ?
It says this in the interfaces file :
How do these directives work ? Any example ?
So is there a way i can have multiple ips on my nic ?
I have just 2 nics. (eth0 and eth1)
On one i have my management network (vmbr0 bridge to eth0).
I want to have another ip for either vmbr0 or eth0.
vmbr0 has 192.168.20.11
What i can do now is execute this :
ip addr add 192.168.50.11/24 dev vmbr0 label vmbr0.0
And it works. But after i restart everything is gone.
I can also add this to the interfaces file :
Code:
auto vmbr0
iface vmbr0 inet static
address 192.168.20.11
netmask 255.255.255.0
bridge_ports eno3
bridge_stp off
bridge_fd 0
post-up ip addr add 192.168.50.11/24 dev vmbr0 label vmbr0.0
post-down ip addr del 192.168.50.11/24 dev vmbr0 label vmbr0.0
But again, after the restart its gone.
So is there any way that i can make this king of config stick around after restart ?
It says this in the interfaces file :
# If you want to manage part of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
How do these directives work ? Any example ?
So is there a way i can have multiple ips on my nic ?