cisco 2821配置NAT上网

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

NAT实验

PC0:IP :192.168.0.2 /24 网关:192.168.0.1

PC1:IP:192.168.2.2/24 网关:192.168.2. Router 2 F0/0:192.168.0.1/24 S0/0 192.168.1.1/24 Router 3 F0/0:192.168.2.1/24 S0/0 192.168.1.2/24 ROUTER 2配置

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Router

interface FastEthernet0/0

ip address 192.168.0.1 255.255.255.0

ip nat inside

duplex auto

speed auto

!

!

interface Serial0/0/0

ip address 192.168.1.1 255.255.255.0

ip nat outside

!

ip nat pool xu 192.168.1.10 192.168.1.20 netmask 255.255.255.0 ip nat inside source list 2 pool xu overload

ip classless

ip route 0.0.0.0 0.0.0.0 192.168.1.2

!

access-list 2 permit 192.168.0.0 0.0.0.255

line con 0

line vty 0 4

login

end

router 3配置

interface FastEthernet0/0

ip address 192.168.2.1 255.255.255.0

duplex auto

speed auto

!

interface Serial0/0/0

ip address 192.168.1.2 255.255.255.0

clock rate 64000

ip classless

line con 0

line vty 0 4

login

end

相关文档
最新文档