基本互联网通过OSPF实现全网的互联互通
1、R1 OSPF配置
R1#sho run | s r ospf
router ospf 1
router-id 1.1.1.1
network 10.1.12.0 0.0.0.255 area 0
network 12.1.1.0 0.0.0.255 area 0
network 192.168.10.0 0.0.0.255 area 0
network 192.168.30.0 0.0.0.255 area 0
2、 R2 OSPF配置
R2#show running-config | section osp
router ospf 1
router-id 2.2.2.2
network 10.1.12.0 0.0.0.255 area 0
network 10.1.23.0 0.0.0.255 area 0
3、R3 OSPF配置
R3#show run | s ospf
router ospf 1
router-id 3.3.3.3
network 10.1.23.0 0.0.0.255 area 0
network 192.168.20.0 0.0.0.255 area
1、静态NAT
R1(config)#ip nat inside source static 192.168.10.1 10.1.12.1
2、动态NAT配置
R1(config)#ip nat pool office 10.1.12.3 10.1.12.5 netmask 255.255.255.0
配置ACL
进行ping触发NAT表项
PC1#ping 192.168.20.1
3、端口复用PAT技术
R1(config)#ip nat inside source list 10 interface ethernet 0/1 overload
查看NAT表项