You are not logged in.

#1 2012-03-01 23:54:25

leoc
Member
Registered: 2011-10-22
Posts: 6

How to use Pointopoint/peer addr with netcfg

Hello,

I´m pretty new to Archlinux. So far everything is quite pleasuring. wink
Best switch ever!

Now I want to setup something like that.

iface tun0 inet static
        address 11.11.0.200
        pointopoint 11.11.0.100
        netmask 255.255.255.255


I used a command like `sudo ip addr add 11.11.0.200/32 peer 11.11.0.100 dev tun0` to accomplish this,
but what do I have to write to my /etc/network.d/my-interface, to get the same result?

Hope this is easy to answer! Thanks!

Last edited by leoc (2012-03-02 00:01:49)

Offline

#2 2012-03-02 11:53:45

leoc
Member
Registered: 2011-10-22
Posts: 6

Re: How to use Pointopoint/peer addr with netcfg

My current work around is just specifying ADDRESS and NETMASK and then do something like:

POST_UP="ip addr add 11.11.0.200/32 peer 11.11.0.100 dev tun0; ip addr del 11.11.0.200/32 scope global dev tun0;"

Works, but is not that neat! smile

Offline

Board footer

Powered by FluxBB