网络拓扑:
NAT-GRE
原创
©著作权归作者所有:来自51CTO博客作者foryouslg的原创作品,如需转载,请与作者联系,否则将追究法律责任
网络环境:
Router3:f0/0:10.10.10.1-------PC:10.10.10.10 f0/1:12.1.1.1--------router2:12.1.1.2
Router4:f0/0:20.20.20.1-------PC:20.20.20.20 f0/1:23.1.1.3--------router2:23.1.1.2
Router2: f0/0:12.1.1.2 f0/1:23.1.1.2
PC3: 10.10.10.10 gateway:10.10.10.1
PC4: 20.20.20.20 gateway:20.20.20.1
Router2:
Router#sho run
Building configuration...
Current configuration : 530 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
interface Loopback0
ip address 11.11.11.11 255.255.255.0(模拟公网环境)
!
interface FastEthernet0/0
ip address 12.1.1.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 23.1.1.2 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
!
line con 0
line vty 0 4
login
!
!
!
End
Router3:
Router#sho run
Building configuration...
Current configuration : 829 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
interface Tunnel1
ip address 123.1.1.1 255.255.255.0
tunnel source FastEthernet0/0
tunnel destination 23.1.1.3
!
!
interface FastEthernet0/0
ip address 12.1.1.1 255.255.255.0
ip nat outside
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.10.10.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router rip
version 2
network 10.0.0.0
network 123.0.0.0
!
ip nat inside source list 1 interface FastEthernet0/0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
!
!
access-list 1 permit 10.10.10.0 0.0.0.255
!
!
line con 0
line vty 0 4
login
!
!
!
End
Router4:
Router#sho run
Building configuration...
Current configuration : 829 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
interface Tunnel1
ip address 123.1.1.2 255.255.255.0
tunnel source FastEthernet0/0
tunnel destination 12.1.1.1
!
!
interface FastEthernet0/0
ip address 23.1.1.3 255.255.255.0
ip nat outside
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 20.20.20.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router rip
version 2
network 20.0.0.0
network 123.0.0.0
!
ip nat inside source list 1 interface FastEthernet0/0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
!
!
access-list 1 permit 20.20.20.0 0.0.0.255
!
line con 0
line vty 0 4
login
!
!
!
End
上一篇:工程DHCP配置
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
异地局域网如何互通?(GRE篇)安全策略 GRE隧道 异地局域网互通 华为防火墙 华三防火墙
-
mstp+vrrp+ospf+nat
mstp+vrrp+ospf+nat
优先级 ci Standard -
GRE+NAT
gre+nat
ci Standard Time -
GRE+STATIC+NAT
GRE+STATIC+NAT
ci Standard Time -
IPSec OVER GRE 穿越 NAT
H3C IPSec OVER GRE穿越NAT。
VPN H3C L2TP 客户模式 L2TP -
配置IPsec on GRE Tunnel with IOS Firewall and NAT
配置详细配置见附件
职场 security 休闲 -
GRE ××× (point-to-point GRE )
GRE VPN
职场 VPN 休闲 GRE GRE VPN