以下是我用PacketTracer實現的一個簡單的綜合實驗,其中使用的技術包括,Dhcp,Nat,靜態路由,Dns。
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip nat inside
interface FastEthernet0/1
ip address 202.205.107.10 255.255.255.0
ip nat outside
ip nat inside source static tcp 192.168.1.2 80 202.205.107.10 80
// 靜態地址映射,只映射80端口
ip classless
ip route 0.0.0 .0 0.0.0.0 202.205.107.11 //靜態路由
ISP路由器配置:
interface FastEthernet0/0
ip address 202.205.106.11 255.255.255.0 /分部IP地址段
interface FastEthernet0/1
ip address 202.205.107.11 255.255.255.0 /總部IP地址段
interface Ethernet1/0
ip address 202.205.105.11 255.255.255.0 / DNS服務器地址段
DNS server配置:
將www.lvc.com的域名通過DNS服務器解析到202.205.107.10的IP地址上。
分部網關配置:
interface FastEthernet0/0
ip address 202.205.106.10 255.255.255.0
ip nat outside /配置NAT外部接口
interface FastEthernet0/1
ip address 10.10.10 .1 255.255.255.0
ip nat inside /配置NAT內部接口
//Nat配置
ip nat inside source list 100 interface FastEthernet0/0 overload /地址映射採取複用地址轉換
ip classless
ip route 0.0.0 .0 0.0.0.0 202.205.106.11 /靜態路由
access-list 100 permit ip 10.10.10 .0 0.0.0.255 any /允許10網段的數據發送出網關
//DHCP配置
ip dhcp excluded-address 10.10.10 .1 /排除網關IP地址不分配給客戶機
ip dhcp pool Mydhcp /定義一個Dhcp地址池
network 10.10.10 .0 255.255.255.0 /定義分配IP地址的網段
default-router 10.10.10 .1 /定義默認網關
dns-server 202.205.105.10 /定義分配DNS服務器地址
問題:所有的配置都配好後爲什麼Web服務器無法Ping通外面的IP地址?