How to use different virtual network interfaces for different processes?
1
vote
1
answer
1383
views
The solution to non-virtual network interfaces is here: https://unix.stackexchange.com/a/210992
But the problem is I have multiple IPs on one network interface and I'd like to be able to assign each IP to a different application.
For example, I have eth0:0, eth0:1, etc.
When I do command(note the virtual interface):
ip link set eth0:0 netns test_ns
It takes eth0 ip and not eth0:0.. it also takes away the entire interface and I can't connect to it from a public source.
Is there a way to use virtual network interface for different processes while having the server accessible from a public source?
Asked by sojim2
(143 rep)
Jan 25, 2018, 10:56 PM
Last activity: Jan 26, 2018, 08:48 AM
Last activity: Jan 26, 2018, 08:48 AM