このブログを検索

2021/04/05

GRE tunnel

 

  
RT2


interface Loopback0
 ip address 22.22.22.22 255.255.255.255
end
!
interface Tunnel1
 ip address 7.7.7.1 255.255.255.252
 tunnel source 10.10.0.1
 tunnel destination 10.20.0.1
end


ip route 10.20.0.0 255.255.255.0 10.10.0.2
ip route 33.33.33.33 255.255.255.255 Tunnel1
RT3


interface Loopback0
 ip address 33.33.33.33 255.255.255.255
!
interface Tunnel1
 ip address 7.7.7.2 255.255.255.252
 tunnel source 10.20.0.1
 tunnel destination 10.10.0.1
end

ip route 10.10.0.0 255.255.255.0 10.20.0.2
ip route 22.22.22.22 255.255.255.255 Tunnel1