EdgeRouter - GRE 터널 명령어 ================================== download at 2017-10-08T16:40:28Z `origin `_ Overview -------- -------------- 이 문서는 두개의 라우터 사이에서 GRE 터널을 설정하는 방법에 대하여 서술합니다. .. raw:: html
.. rubric::   :name: section .. rubric:: Router1 :name: router1 다음 명령어를 Router1에서 수행합니다: :: configure set interfaces tunnel tun0 encapsulation gre set interfaces tunnel tun0 local-ip 172.0.2.3 set interfaces tunnel tun0 remote-ip 172.0.2.20 set interfaces tunnel tun0 address 100.0.0.1/24 commit exit .. rubric::   :name: section-1 .. rubric:: Router2 :name: router2 다음 명령어를 Router2에서 수행합니다: :: configure set interfaces tunnel tun0 encapsulation gre set interfaces tunnel tun0 local-ip 172.0.2.20 set interfaces tunnel tun0 remote-ip 172.0.2.3 set interfaces tunnel tun0 address 100.0.0.2/24 commit exit   .. raw:: html
**방화벽 고려사항:** .. raw:: html
.. raw:: html
사용자는 gre 프로토콜을 WAN 로컬 방화벽에서 허용해야합니다. .. raw:: html
.. raw:: html
다음 명령어를 각 라우터에서 사용합니다. .. raw:: html
:: configure set firewall name WAN_LOCAL rule 100 action accept set firewall name WAN_LOCAL rule 100 description 'Allow GRE' set firewall name WAN_LOCAL rule 100 protocol gre commit save exit .. raw:: html
  .. raw:: html
.. raw:: html
  .. raw:: html
.. raw:: html
.. raw:: html .. raw:: html
.. raw:: html .. raw:: html .. raw:: html