Skip to contentSkip to conversation

OFF??? POINT-TO-POINT

DISCUSSION Gáspár Lajos 2 participants 6 messages Aug 24, 2010

lore
Share & tools
lore
#0 lore raw

Hi List.

My ISP set up this "IPVPN":

A location:

VLAN4093: ww.xx.yy.zz/30
Public IP to Internet.
VLAN4094: 192.168.0.2/30
Endpoint of "VPN" (a tunnel to B)

B location:
192.168.1.2/30 (No VLAN)

I thought that I can set up an point-to-point connection. But this is only available for PPP/SLIP/etc. "driven" interfaces. I can set up the connection with the following lines in my interfaces file:

auto vlan4094
iface vlan4094 inet static

    address 192.168.0.2
    netmask 255.255.255.255
    pointopoint 192.168.1.2
    vlan_raw_device wan3
    up /sbin/ifconfig vlan4094 up arp
    up /sbin/route add -host 192.168.1.2 dev vlan4094
    down /sbin/route del -host 192.168.1.2 dev vlan4094

This works, however the interface just ignores the pointopoint line....

My question is maybe offtopic, but anyone knows a good reason why the pointopoint feature is not available on "normal" interfaces?

Thanx,

Swifty

#1 lore raw
Quoted 10 lines · Gáspár Lajos

auto vlan4094
iface vlan4094 inet static
address 192.168.0.2
netmask 255.255.255.255
pointopoint 192.168.1.2
vlan_raw_device wan3
up /sbin/ifconfig vlan4094 up arp
up /sbin/route add -host 192.168.1.2 dev vlan4094 down /sbin/route del -host 192.168.1.2 dev vlan4094

Quoted 4 lines

This works, however the interface just ignores the pointopoint line....

My question is maybe offtopic, but anyone knows a good reason why the pointopoint feature is not available on "normal" interfaces?

So what's the output of ip addr?

#2 lore raw
Quoted 3 lines

So what's the output of ip addr?

21: vlan4094@wan3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP

    link/ether 00:19:e0:0b:ac:fc brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.2/32 scope global vlan4094
    inet6 fe80::219:e0ff:fe0b:acfc/64 scope link
       valid_lft forever preferred_lft forever

Swifty

#3 lore raw
Quoted 9 lines · Gáspár Lajos
Quoted 3 lines

So what's the output of ip addr?

21: vlan4094@wan3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether 00:19:e0:0b:ac:fc brd ff:ff:ff:ff:ff:ff
inet 192.168.0.2/32 scope global vlan4094
inet6 fe80::219:e0ff:fe0b:acfc/64 scope link
valid_lft forever preferred_lft forever

Tricky :)

And ip route?

#4 lore raw
Quoted 11 lines
Quoted 7 lines

21: vlan4094@wan3:<BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP

    link/ether 00:19:e0:0b:ac:fc brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.2/32 scope global vlan4094
    inet6 fe80::219:e0ff:fe0b:acfc/64 scope link
       valid_lft forever preferred_lft forever

Tricky :)

And ip route?

192.168.1.2 dev vlan4094 scope link

#5 lore raw
Quoted 7 lines · Gáspár Lajos
Quoted 7 lines
Quoted 7 lines

21: vlan4094@wan3:<BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether 00:19:e0:0b:ac:fc brd ff:ff:ff:ff:ff:ff
inet 192.168.0.2/32 scope global vlan4094
inet6 fe80::219:e0ff:fe0b:acfc/64 scope link
valid_lft forever preferred_lft forever

Quoted 5 lines
Quoted 4 lines

Tricky :)

And ip route?

192.168.1.2 dev vlan4094 scope link

So everything is correct.