
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.

本文提供了华为路由器GRE隧道的详细配置实例,包括R1、R2和R3三台设备的配置步骤。通过配置静态路由和OSPF路由,实现网络互通。配置中涉及DHCP服务、ACL规则、NAT转换及隧道源目的地址设定。

6937

被折叠的 条评论
为什么被折叠?



