lab topology
deltaos
/ \
pc1 pc2
deltaos
ge0: 10.11.2.2
pc1
eth0: 10.11.2.41
pc2
eth0: 10.11.2.42
lab configuration
running deltaos, see How to run deltaos
check current configuration
# show running-config
# DELTAOS CONFIG VERSION: 0
interface ge 0
no ip address
shutdown
interface ge 1
no ip address
shutdown
line console
line serial
line vty
no login
transport input none
end
configure the static ip
# conf t
(config)# int ge0
(config-if)# ip address 10.11.2.2 255.255.255.0
(config-if)# no shutdown
(config-if)# end
#
enable dsvpn
# conf t
(config)# int dsvpn 1
(config-if)# ip add 10.0.100.1 255.255.255.0
(config-if)# no shutdown
(config-if)# end
#
create vpn user for pc1 and pc2.
# conf t
(config)# username pc1 password 123456
(config)# username pc2 password 123456
(config)# end
#
test
pc1
cat > lab.conf <<EOF
server 10.11.2.2
username pc1
password 123456
EOF
./dsvpn --config lab.conf
pc2
cat > lab.conf <<EOF
server 10.11.2.2
username pc2
password 123456
EOF
./dsvpn --config lab.conf
now, dsvpn should works, let's check it.
pc1
# ifconfig tun0
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1424
inet 10.0.100.2 netmask 255.255.255.0 destination 10.0.100.1
inet6 fe80::9327:c051:3207:8060 prefixlen 64 scopeid 0x20<link>
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2 bytes 96 (96.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# iperf3 -s
pc2
# ifconfig tun0
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1424
inet 10.0.100.3 netmask 255.255.255.0 destination 10.0.100.1
inet6 fe80::ee9f:de85:74a8:e3c4 prefixlen 64 scopeid 0x20<link>
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4 bytes 192 (192.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# ping -c 4 10.0.100.2
PING 10.0.100.2 (10.0.100.2) 56(84) bytes of data.
64 bytes from 10.0.100.2: icmp_seq=1 ttl=63 time=1.49 ms
64 bytes from 10.0.100.2: icmp_seq=2 ttl=63 time=1.23 ms
64 bytes from 10.0.100.2: icmp_seq=3 ttl=63 time=0.856 ms
64 bytes from 10.0.100.2: icmp_seq=4 ttl=63 time=1.58 ms
--- 10.0.100.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3066ms
rtt min/avg/max/mdev = 0.856/1.285/1.575/0.281 ms
# iperf3 -c 10.0.100.2
Connecting to host 10.0.100.2, port 5201
[ 5] local 10.0.100.3 port 39296 connected to 10.0.100.2 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 53.9 MBytes 452 Mbits/sec 31 118 KBytes
[ 5] 1.00-2.00 sec 53.7 MBytes 450 Mbits/sec 37 105 KBytes
[ 5] 2.00-3.00 sec 53.1 MBytes 446 Mbits/sec 27 103 KBytes
[ 5] 3.00-4.00 sec 53.8 MBytes 451 Mbits/sec 33 89.8 KBytes
[ 5] 4.00-5.00 sec 60.0 MBytes 503 Mbits/sec 21 121 KBytes
[ 5] 5.00-6.00 sec 63.0 MBytes 529 Mbits/sec 33 97.8 KBytes
[ 5] 6.00-7.00 sec 68.4 MBytes 573 Mbits/sec 45 109 KBytes
[ 5] 7.00-8.00 sec 66.7 MBytes 560 Mbits/sec 41 95.1 KBytes
[ 5] 8.00-9.00 sec 70.8 MBytes 594 Mbits/sec 30 96.5 KBytes
[ 5] 9.00-10.00 sec 70.0 MBytes 587 Mbits/sec 49 107 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 613 MBytes 515 Mbits/sec 347 sender
[ 5] 0.00-10.04 sec 613 MBytes 512 Mbits/sec receiver
iperf Done.