华为Gre 手动配置实例

华为Gre 手动配置实例_第1张图片
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

你可能感兴趣的:(华为,网络)