Без прописанного роута:
Код: Выделить всё
FreeBSD# ifconfig -a
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2808<VLAN_MTU,WOL_UCAST,WOL_MAGIC>
ether 00:1c:f0:ca:ed:ea
inet 10.10.9.1 netmask 0xffffff00 broadcast 10.10.9.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vr1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2808<VLAN_MTU,WOL_UCAST,WOL_MAGIC>
ether 00:1e:58:aa:91:91
inet 192.168.88.88 netmask 0xfffff000 broadcast 10.224.95.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1460
inet 10.10.1.1 --> 10.10.1.11 netmask 0xffffffff
Код: Выделить всё
Mikrotik# /ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 X ;;; default configuration
192.168.88.1/24 192.168.88.0 192.168.88.255 ether1
1 192.168.115.61/20 192.168.112.0 192.168.127.255 ether2
2 10.10.10.1/24 10.10.10.0 10.10.1.255 wlan1
3 I 10.10.10.3/24 10.10.10.0 10.10.10.255 ether1
4 D 10.10.1.11/32 10.10.1.1 0.0.0.0 pptp-vpn_serv
Код: Выделить всё
#Mikrotik /ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY-STATE GATEWAY DISTANCE INTERFACE
0 A S ;;; added by setup
0.0.0.0/0 reachable 192.168.112.1 1 ether2
1 ADC 10.10.1.1/32 10.10.1.11 0 pptp-vpn_serv
2 ADC 10.10.10.0/24 10.10.10.1 0 wlan1
3 ADC 10.224.112.0/20 192.168.115.61 0 ether2
Код: Выделить всё
FreeBSD#netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.80.1 UGS 0 2030 vr1
10.10.1.11 10.10.1.1 UH 0 3 ng0
10.10.9.0/24 link#1 UC 0 0 vr0
10.10.9.9 00:0e:2e:0d:22:ce UHLW 1 1797 vr0 357
10.10.9.21 00:1c:f0:bc:fa:22 UHLW 1 2 vr0 401
192.168.80.0/20 link#2 UC 0 0 vr1
192.168.80.1 00:04:96:1e:xx:xx UHLW 2 0 vr1 1200
127.0.0.1 127.0.0.1 UH 0 4 lo0
С прописанным роутом:
Код: Выделить всё
FreeBSD# add route 10.10.10.0/24 10.10.1.11
:
Код: Выделить всё
Mikrotik# add route dst-address 10.10.9.0/24 gateway 10.10.1.11
Код: Выделить всё
FreeBSD#ifconfig -a
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2808<VLAN_MTU,WOL_UCAST,WOL_MAGIC>
ether 00:1c:f0:ca:ed:ea
inet 10.10.9.1 netmask 0xffffff00 broadcast 10.10.9.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vr1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2808<VLAN_MTU,WOL_UCAST,WOL_MAGIC>
ether 00:1e:58:aa:xx:xx
inet 192.168.88.88 netmask 0xfffff000 broadcast 10.224.95.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1460
inet 10.10.1.1 --> 10.10.1.11 netmask 0xffffffff
Код: Выделить всё
Mikrotik# /ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 X ;;; default configuration
192.168.88.1/24 192.168.88.0 192.168.88.255 ether1
1 192.168.115.61/20 192.168.112.0 192.168.127.255 ether2
2 10.10.10.1/24 10.10.10.0 10.10.1.255 wlan1
3 I 10.10.10.3/24 10.10.10.0 10.10.10.255 ether1
4 D 10.10.1.11/32 10.10.1.1 0.0.0.0 pptp-vpn_serv
Код: Выделить всё
FreeBSD#netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.80.1 UGS 0 2005 vr1
10.10.1.11 10.10.1.1 UH 1 3 ng0
10.10.9.0/24 link#1 UC 0 0 vr0
10.10.9.9 00:0e:2e:0d:22:ce UHLW 1 1740 vr0 740
10.10.9.21 00:1c:f0:bc:fa:22 UHLW 1 2 vr0 784
10.10.10.0/24 10.10.1.11 UGS 0 18 ng0
192.168.80.0/20 link#2 UC 0 0 vr1
192.168.80.1 00:04:96:1e:xx:xx UHLW 2 0 vr1 1200
127.0.0.1 127.0.0.1 UH 0 4 lo0
Код: Выделить всё
MikroTik# /ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY-STATE GATEWAY DISTANCE INTERFACE
0 A S ;;; added by setup
0.0.0.0/0 reachable 192.168.112.1 1 ether2
1 ADC 10.10.1.1/32 10.10.1.11 0 pptp-vpn_serv
2 A S 10.10.9.0/24 reachable 10.10.1.1 1 pptp-vpn_serv
3 ADC 10.10.10.0/24 10.10.10.1 0 wlan1
4 ADC 192.168.112.0/20 192.168.115.61 0 ether2