ݷʱ : 2024/12/24 1:30:43һ µȫĶ
2016ϰ繤ʦ⣨硢⣩
Aͬ IP ַͬĶ˿ں BͬĿڵַͬĿ¼ Cͬ IP ַͬĿ¼ DͬͷͬĶ˿ں
2ͷʽԲã ʽһ̨öվ 4ÿ 1 ֣ 3 ֣
Windows Server 2003 ͼ 3-6 ʾ
1ͼ 3-6 豸ĺǣ 豸xĺǣ 2ͼ 3-6 1394 ʲô豸
ģ 15 ֣
25 / 28
2016ϰ繤ʦ⣨硢⣩
Ķ˵ش 1 2ֽӦĽڡ ˵ ij˾ 3 ֧˽ṹַͼ 4-1 ʾ
1ÿ 1 ֣ 11 ֣
˾뵽 202.111.1.0/29 ĹеַΣ NAPT ʵֹ˾ڲʻҪ У192.168.16.0/22 νֹʻ R1R2 R3 Ļȷ ɣ R1 ¡˽ṹô롣
R1 Ļü NAPT £
R1>enable Rl#config tenrunal
R1(config)#interface fastenthemet 0/0 R1(config-if)#ip address 192.168.0.1 255.255.255.252 R1(config-if)#no shutdown
Rl(config-if)#exit
R1(config)#interface fastenthemet 0/1
26 / 28
2016ϰ繤ʦ⣨硢⣩
R1(config-if)#ip address 192.168.0.9 255.255.255.252 R1(config-if)#no shutdown
R1(config-if)#exit R1(config)#interface fastenthernet 0/2
R1(config-if)#ip address 255.255.252.0 //ʹһַ
R1(config-if)#no shutdown R1(config-if)#exit
R1(config)#interface serial 0
R1(config-if)#ip address 202.111.1.1 255.255.255.248 R1(config-if)#no shutdown
R1(corffig)#ip nat pool ss 202.111.1.1 netmask R1(corffig)# interface fastenthernet 0/0-1 R1(config-if)#ip nat
R1(config-if)#interface serial 0 Rl(config-if)#ip nat R1(config-if)#exit
R1(config)#access-Iist l permit 192.168.0.0 Rl(config)#ip nat inside list pool
2ÿ 2 ֣ 4 ֣
R1R2 R3 ֮ OSPF ·Э飬 R1R2 R3 ¡ к ô
1 R1(config)#router ospf 1
27 / 28
2016ϰ繤ʦ⣨硢⣩
2 3 4 5 6 7 8 9
R1(config-router)#network 192.168.4.0 0.0.3.255 area 0 Rl(config-router)#network 192.168.0.0 0.0.0.3 area 0 Rl(config-router)#network 192.168.0.8 0.0.0.3 area 0 R2>enable R2#config terminal R2(config)#router ospf 2
R2(config-router)#netvrork 192.168.8.0 0.0.3.255 area 0 R2 (config-router)#network 192.168.12.0 0.0.3.255 area 0
1 0 R2 (config-router)#network 192.168.0.4 00.0.3 area 0 1 1 R3>enable 1 2 R3#config terminal 1 3 R3(config)#router ospf 3
1 4 R3(config-router)#netvrork 192168.0.8 00.0.3 area 0
1 5 R3(config-router)#network 192.168.0.4 0.0.0.3 area 0 1ɺ R1 R2 Ͼ ping ͨ R3 ľܵԭǣ ѡ𰸣
R3 δ·
Bе 7 к͵ 13 ô C 1 ô
DR1R2 δֱ·ɣ
2 OSPF طֲĬ·ɵǣ ѡ𰸣
ARl#default-informaton originate
B R1(config-if)#default-information originate CR1(config-router)#default-information originate DRl(config)#default-information originate
28 / 28