华为Gre 手动配置实例

华为Gre 手动配置实例
R1配置
sys
sysname HF
dhcp enable
acl 2000
rule 1 permit so 192.168.10.0 0.0.0.255
int g0/0/0
ip add 192.168.10.254 24
dhcp select int
int g0/0/1
ip add 12.0.0.1 24
nat outbound 2000

ip route-s 0.0.0.0 0 12.0.0.2

interface Tunnel0/0/1
tunnel-protocol gre
source 12.0.0.1
destination 23.0.0.3
ip add 192.168.13.1
keepalive period 1 retry-times 3

ip route-s 192.168.20.0 24 192.168.13.2 用静态路由

ospf 1 router-id 1.1.1.1 用ospf路由
a 0
network 192.168.13.0 0.0.0.255
network 192.168.10.0 0.0.0.255
各种路由都可以选一个就可

R2配置
sys
sysname SH
dhcp enable
acl 2000
rule 1 permit so 192.168.20.0 0.0.0.255
int g0/0/1
ip add 192.168.20.254 24
dhcp select int
int g0/0/0
ip add 23.0.0.3 24
nat outbound 2000

ip route-s 0.0.0.0 0 23.0.0.2

interface Tunnel0/0/1
tunnel-protocol gre
source 23.0.0.3
destination 12.0.0.1
ip add 192.168.13.2

ip route-s 192.168.10.0 24 192.168.13.1 用静态路由

ospf 1 router-id 3.3.3.3 用ospf路由
a 0
network 192.168.13.0 0.0.0.255
network 192.168.20.0 0.0.0.255
各种路由都可以选一个就可

R3配置
sys
sys ISP
int g0/0/1
ip add 23.0.0.2 24
int g0/0/0
ip add 12.0.0.2 24
int lo 2
ip add 2.2.2.2 24