Spoke1的配置脚本
# sysname Spoke1#interface GigabitEthernet1/0/0 ip address dhcp-alloc#interface LoopBack0 ip address 192.168.1.1 255.255.255.0 alias LoopBack0#interface Tunnel0 description spoke ip address 172.16.1.2 255.255.255.0 tunnel-protocol gre p2mp source GigabitEthernet1/0/0 ospf network-type broadcast ospf dr-priority 0 alias Spoke1 nhrp authentication sha1 %^%#$]8@BBRhtL)i)m4/LP,5l$;gMF$xjY)RXoXCca3V%^%# nhrp shortcut nhrp entry multicast dynamic nhrp entry 172.16.1.1 1.1.1.10 register preference 10#ospf 1 area 0.0.0.0 network 172.16.1.0 0.0.0.255 area 0.0.0.1 network 192.168.1.0 0.0.0.255#ip route-static 0.0.0.0 0.0.0.0 GigabitEthernet1/0/0#firewall zone untrust set priority 5 add interface GigabitEthernet1/0/0 add interface Tunnel0#security-policy rule name rule1 source-zone local source-zone untrust destination-zone local destination-zone untrust source-address 192.168.0.0 mask 255.255.0.0 action permit rule name rule2 source-zone local source-zone untrust destination-zone local destination-zone untrust service gre action permit#return