...
Блок кода |
---|
interface Tunnel1 ip address 10.10.10.1 255.255.255.0 no ip redirects ip mtu 1472 ip nhrp authentication password<password> ip nhrp map multicast dynamic ip nhrp network-id 60 ip nhrp holdtime 360 ip nhrp registration no-unique ip nhrp registration timeout 60 ip tcp adjust-mss 1432 ip ospf network broadcast ip ospf priority 255 tunnel source Ethernet0/0 tunnel mode gre multipoint tunnel key 60 ! ! interface Ethernet0/0 ip address 192.0.2.2 255.255.255.0 ! ! router ospf 1 router-id 10.10.10.1 log-adjacency-changes auto-cost reference-bandwidth 10000 network 10.10.10.1 0.0.0.0 area 0 ! ip route 192.0.4.0 255.255.255.0 192.0.2.1 ip route 192.168.32.0 255.255.240.0 192.0.2.1 |
...
Блок кода |
---|
esr# show running-config router ospf log-adjacency-changes router ospf 1 router-id 10.10.10.3 area 0.0.0.0 enable exit enable exit interface gigabitethernet 1/0/1 ip firewall disable ip address 192.168.39.216/20 exit tunnel gre 1 key 60 ttl 30 mtu 1472 multipoint ip firewall disable local interface gigabitethernet 1/0/1 ip address 10.10.10.3/24 ip ospf instance 1 ip ospf ip tcp adjust-mss 1432 ip nhrp authentication password<password> ip nhrp holding-time 360 ip nhrp map 10.10.10.1 192.0.2.2 ip nhrp nhs 10.10.10.1/24 ip nhrp multicast nhs ip nhrp enable enable exit ip route 192.0.2.0/24 192.168.39.215 ip route 192.0.4.0/24 192.168.39.215 |
...
Блок кода |
---|
interface Tunnel1 ip address 10.10.10.2 255.255.255.0 no ip redirects ip mtu 1472 ip nhrp authentication password<password> ip nhrp map 10.10.10.1 192.0.2.2 ip nhrp map multicast 192.0.2.2 ip nhrp network-id 60 ip nhrp holdtime 360 ip nhrp nhs 10.10.10.1 ip nhrp registration no-unique ip nhrp registration timeout 60 ip tcp adjust-mss 1432 ip ospf network broadcast tunnel source Ethernet0/0 tunnel mode gre multipoint tunnel key 60 ! ! interface Ethernet0/0 ip address 192.0.4.2 255.255.255.0 ! ! router ospf 1 router-id 10.10.10.2 log-adjacency-changes auto-cost reference-bandwidth 10000 network 10.10.10.2 0.0.0.0 area 0 ! ! ip route 192.0.2.0 255.255.255.0 192.0.4.1 ip route 192.168.32.0 255.255.240.0 192.0.4.1 |
...
Блок кода |
---|
crypto isakmp policy 10 encr aes 192 authentication pre-share group 2 crypto isakmp key password address 0.0.0.0 0.0.0.0 ! ! crypto ipsec transform-set DMVPN-TR esp-aes 192 esp-sha-hmac mode transport ! crypto ipsec profile DMVPN set transform-set DMVPN-TR ! interface Loopback1 ip address 1.1.1.1 255.255.255.255 ! interface Tunnel0 bandwidth 10000 ip address 10.10.10.1 255.255.255.0 no ip redirects ip mtu 1472 ip nhrp authentication password<password> ip nhrp map multicast dynamic ip nhrp network-id 60 ip nhrp holdtime 360 ip tcp adjust-mss 1432 ip ospf network broadcast ip ospf cost 25 ip ospf priority 255 ip ospf mtu-ignore load-interval 30 tunnel source FastEthernet0/0 tunnel mode gre multipoint tunnel key 60 tunnel ttl 250 tunnel protection ipsec profile DMVPN shared ! interface FastEthernet0/0 ip address 192.0.2.2 255.255.255.0 duplex auto speed auto ! router ospf 1 router-id 10.10.10.1 log-adjacency-changes auto-cost reference-bandwidth 10000 network 1.1.1.1 0.0.0.0 area 0.0.0.0 network 10.10.10.0 0.0.0.255 area 0.0.0.0 distance 200 ! ip route 192.0.4.2 255.255.255.255 192.0.2.1 ip route 192.168.39.216 255.255.255.255 192.0.2.1 |
...
Блок кода |
---|
crypto isakmp policy 10 encr aes 192 authentication pre-share group 2 crypto isakmp key password address 0.0.0.0 ! ! crypto ipsec transform-set DMVPN-TR esp-aes 192 esp-sha-hmac mode transport ! crypto ipsec profile DMVPN set transform-set DMVPN-TR ! ! interface Loopback1 ip address 3.3.3.3 255.255.255.255 ! interface Tunnel0 bandwidth 10000 ip address 10.10.10.2 255.255.255.0 no ip redirects ip mtu 1472 ip nhrp authentication password<password> ip nhrp network-id 60 ip nhrp holdtime 360 ip nhrp nhs 10.10.10.1 nbma 192.0.2.2 multicast ip tcp adjust-mss 1432 ip ospf network broadcast ip ospf priority 2 tunnel source FastEthernet0/0 tunnel mode gre multipoint tunnel key 60 tunnel ttl 250 tunnel protection ipsec profile DMVPN shared ! interface FastEthernet0/0 ip address 192.0.4.2 255.255.255.0 duplex full ! router ospf 1 router-id 10.10.10.2 auto-cost reference-bandwidth 10000 network 3.3.3.3 0.0.0.0 area 0.0.0.0 network 10.10.10.0 0.0.0.255 area 0.0.0.0 ! ! ip route 192.0.2.2 255.255.255.255 192.0.4.1 ip route 192.168.39.216 255.255.255.255 192.0.4.1 |
...