You are not logged in.

#1 2011-07-14 10:41:11

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

[SOLVED] Creating another loopback interface

Hi,

I'm trying to follow a tutorial (in French) to bind specific applications to a VPN tunnel. It works fine except when I reach the part about creating a second loopback interface... It says:

Edit /etc/network/interfaces and add:

# The secondary loopback network interface
auto lo:1
        iface lo:1 inet static
        address 192.168.0.1
        netmask 255.255.255.255

My problem of course is that there is no /etc/network/interfaces file on my Arch setup.

I tried to use "ip link add" to create a loopback interface but it always returns an error message. Can't find any information about this anywhere. Can someone help?

Last edited by stqn (2011-07-14 20:29:13)

Offline

#2 2011-07-14 13:16:11

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: [SOLVED] Creating another loopback interface

# ifconfig lo:1 inet 192.168.0.1 netmask 255.255.255.255 up

I'd probably just stick it in a startup script if you want it plumbed permanently - this way you avoid it potentially being overwritten by system updates

Last edited by oliver (2011-07-14 13:18:59)

Offline

#3 2011-07-14 20:28:36

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED] Creating another loopback interface

Thanks! That does the trick and now the whole tutorial works for me smile.

I'll try to find the equivalent with the "ip" command instead of ifconfig.

Offline

Board footer

Powered by FluxBB