I'm testing a network program on Ubuntu. Is there any way to create a virtual network interface in Ubuntu. Something like lo
is good, but unfortunately there is bunch of packets on lo
with 127.0.0.1
as source and destination IP addrress.
Ubuntu – How to create a virtual network interface in Ubuntu
loop-devicenetworkingnic
Best Answer
USE CASE: To create a persistent VIP address in a server to function as a 'loopback' address
Change to /etc/systemd/network/ directory
Create two files, 'vip.netdev' and 'vip.network'
Show the newly created files
Edit the two files with your favorite editor to reflect the detail below
... and ...
Enable the newly created VIP interface w/out rebooting the server
Show the newly create VIP interface
... or ...