Hey,
You can use the following to create a new loopback interface
Code:
ifconfig lo:40 192.168.40.1 netmask 255.255.255.0 up
Or add them permanently to /etc/network/interfaces
Code:
auto lo lo:10 lo:20
iface lo inet loopback
iface lo:10 inet static
address 192.168.10.1
netmask 255.255.255.0
network 192.168.10.0
iface lo:20 inet static
address 192.168.20.1
netmask 255.255.255.0
network 192.168.20.0
Then use ifup to enable each lo interface after you've configured the file. You won't have to use ifup after reboot.
HTH
Bookmarks