Код: Выделить всё
root@nas:/usr/local/etc/mpd5# mpd5 -v
Version 5.5 (root@nas 12:43 21-Jan-2011)
Код: Выделить всё
root@nas:/usr/local/etc/mpd5# uname -a
FreeBSD nas 8.2-RELEASE-p4 FreeBSD 8.2-RELEASE-p4 #7: Fri Oct 7 16:22:30 EEST 2011 root@nas:/usr/src/sys/i386/compile/NAS i386
Код: Выделить всё
[root@one /usr/local/etc/mpd5]# uname -a
FreeBSD one 8.2-RELEASE-p2 FreeBSD 8.2-RELEASE-p2 #5: Wed Sep 7 18:24:17 EEST 2011 serg@one:/usr/src/sys/i386/compile/ONE i386
Код: Выделить всё
l2tp_client:
create bundle static B2
set iface enable tcpmssfix
create link static L2 l2tp
set link action bundle B2
set auth authname name
set auth password pass
set link max-redial 0
set link mtu 1460
set link keep-alive 10 60
set l2tp peer YYY.YYY.YYY.YYY
open
Код: Выделить всё
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1460
inet 192.168.7.4 --> 192.168.7.1 netmask 0xffffffff
Код: Выделить всё
[root@one /usr/local/etc/mpd5]# netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default XXX.XXX.XXX.XXX UGS 2767 111449342 vr0
127.0.0.1 link#5 UH 0 3005151 lo0
192.168.7.1 link#12 UH 0 0 ng0
192.168.7.4 link#12 UHS 0 0 lo0
Код: Выделить всё
[root@two /usr/share/examples/cvsup]# uname -a
FreeBSD two 7.4-RELEASE-p4 FreeBSD 7.4-RELEASE-p4 #3: Fri Oct 7 17:49:56 EEST 2011 root@two:/usr/src/sys/i386/compile/GATE i386
Код: Выделить всё
l2tp_client:
create bundle static B1
set iface route 192.168.7.0/24
set iface route 192.168.20.0/24
set iface route 192.168.53.0/24
set iface idle 0
set iface enable tcpmssfix
set bundle enable compression
set ccp yes mppc
set mppc yes compress
set mppc yes e40
set mppc yes e128
set mppc yes stateless
create link static L1 l2tp
set link action bundle B1
set auth authname officelink
set auth password officelinkpass
set link max-redial 0
set link mtu 1190
set link keep-alive 10 60
set l2tp peer YYY.YYY.YYY.YYY
open
Код: Выделить всё
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1031
inet 192.168.7.3 --> 192.168.7.1 netmask 0xffffffff
Код: Выделить всё
[root@two /usr/local/etc/mpd5]# netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.34.1 UGS 0 32138 re1
127.0.0.1 127.0.0.1 UH 0 37641 lo0
192.168.7.0/24 192.168.7.1 UGS 0 4 ng0
192.168.7.1 192.168.7.3 UH 4 25658 ng0
Спасибо.