تونل GRE بین سودار و MikroTik

soodar-mikrotik-gre

تنظیمات در سودار

ip route 2.1.1.0/24 tunnel10
!
interface ge2
 no ip address
!
interface ge3
 no ip address
!
interface lo
 no ip address
!
interface tunnel10
 tunnel source 200.1.2.1
 tunnel destination 200.1.2.2
 no shutdown
 ip address 10.0.12.1/24
exit
!
interface ge0
 no shutdown
 ip address 200.1.2.1/24
exit
!
interface ge1
 no shutdown
 ip address 1.1.1.1/24
exit
!
end

تنظیمات در روتر mikrorik


/interface gre
add local-address=200.1.2.2 name=tunnel21 remote-address=200.1.2.1

/ip address
add address=200.1.2.2/24 interface=ether1 network=200.1.2.0
add address=2.1.1.1/24 interface=ether2 network=2.1.1.0
add address=10.0.12.2/24 interface=tunnel21 network=10.0.12.0

/ip route
add dst-address=1.1.1.0/24 gateway=tunnel21