处理 SSI 文件时出错
网络技术
 基础知识   IP与IPv6   NAT   组网技术   综合布线   网管指南   网络协议   网络安全   网络配置   故障排除   解决方法
 综合技术   路由配置
您现在的位置: IT文谷 >> 网络技术 >> NAT >> 文章正文
cisco路由一个以太口做nat的方法cisco路由一个以太口做nat的方法2006-4-9 1:29:29cisco路由一个以太口做nat的方法2006-4-9 1:29:29cisco路由一个以太口做nat的方法
cisco路由一个以太口做nat的方法
cisco路由一个以太口做nat的方法cisco路由一个以太口做nat的方法2006-4-9 1:29:29cisco路由一个以太口做nat的方法2006-4-9 1:29:29cisco路由一个以太口做nat的方法
处理 SSI 文件时出错
cisco路由一个以太口做nat的方法cisco路由一个以太口做nat的方法2006-4-9 1:29:29cisco路由一个以太口做nat的方法2006-4-9 1:29:29cisco路由一个以太口做nat的方法

这是一个例子:
interface Loopback0
ip address 10.0.1.1 255.255.255.252
ip nat outside
!--- Creates a virtual interface called Loopback 0 and assigns an
!--- IP address of 10.0.1.1 to it. Defines interface Loopback 0 as
!--- NAT outside.
!
!
interface Ethernet0
ip address 192.168.1.2 255.255.255.0 secondary
ip address 10.0.0.2 255.255.255.0
ip Nat inside
!--- Assigns a primary IP address of 10.0.0.2 and a secondary IP
!--- address of 192.168.1.2 to Ethernet 0. Defines interface Ethernet 0
!--- as NAT inside. The 192.168.1.2 address will be used to communicate
!--- through the CM to the CMTS and the Internet. The 10.0.0.2 address
!--- will be used to communicate with the local hosts.
ip policy route-map Nat-loop
!--- Assigns route-map "Nat-loop" to Ethernet 0 for policy routing.
!
ip Nat pool external 192.168.2.2 192.168.2.3 prefix-length 29
ip Nat inside source list 10 pool external overload
ip Nat inside source static 10.0.0.12 192.168.2.1
!--- NAT is defined: packets matching access-list 10 will be
!--- translated to an address from the pool called "external".
!--- A static NAT translation is defined for 10.0.0.12 to be
!--- translated to 192.168.2.1 (this is for host 2 which needs
!--- to be accessed from the Internet).

ip classless
!
!
ip route 0.0.0.0 0.0.0.0 192.168.1.1
ip route 192.168.2.0 255.255.255.0 Ethernet0
!--- Static default route set as 192.168.1.1, also a static
!--- route for network 192.168.2.0/24 directly attached to
!--- Ethernet 0
!
!
access-list 10 permit 10.0.0.0 0.0.0.255
!--- Access-list 10 defined for use by NAT statement above.

access-list 102 permit ip any 192.168.2.0 0.0.0.255
access-list 102 permit ip 10.0.0.0 0.0.0.255 any
!--- Access-list 102 defined and used by route-map "Nat-loop"
!--- which is used for policy routing.
!
Access-list 177 permit icmp any any
!--- Access-list 177 used for debug.
!
route-map Nat-loop permit 10
match ip address 102
set ip next-hop 10.0.1.2
!--- Creates route-map "Nat-loop" used for policy routing.
!--- Route map states that any packets matching access-list 102 will
!--- have the next hop set to 10.0.1.2 and be routed "out" the
!--- loopback interface. All other packets will be routed normally.
!
end
NAT-router#

另一种方法:

interface Virtual-Template1
ip add xxx xxx
ip nat inside
interface Virtual-Template2
ip add xxx xxx
ip nat outside

cisco路由一个以太口做nat的方法cisco路由一个以太口做nat的方法2006-4-9 1:29:29cisco路由一个以太口做nat的方法2006-4-9 1:29:29cisco路由一个以太口做nat的方法
处理 SSI 文件时出错
  • 上一篇文章:

  • 下一篇文章: 没有了
  • 进入论坛讨论

    相关文章
    【软考】网络组建基础必备-网线的制作
    【软考】同步与异步的概念
    【软考】工作组与域之区别
    【软考】计算机网络 体系层次结构的划分
    【软考】主干网
    【软考】9种常见的INTERNET接入方式
    【软考】三种流行防火墙配置方案分析与对比
    【软考】快速计算子网掩码和主机块
    【软考】对TCP和UDP的理解
    【软考】从交换机原理看网络广播风暴的几种原因
    【软考】防火墙知识普及
    【软考】OSI网络结构的七层模型
    热门文章最新推荐

    版权与免责声明:
    ① 本网转载其他媒体稿件是为传播更多的信息,此类稿件不代表本网观点,版权归原作者所有,本网不承担此类稿件侵权行为的连带责任。
    ② 本站原创文章,转载时请注明出自文谷及作者姓名
    ③在本网BBS上发表言论者,文责自负。
    ④如您因版权等问题需要与本网联络,请在30日内联系 。
    cisco路由一个以太口做nat的方法cisco路由一个以太口做nat的方法2006-4-9 1:29:29cisco路由一个以太口做nat的方法2006-4-9 1:29:29cisco路由一个以太口做nat的方法
    cisco路由一个以太口做nat的方法cisco路由一个以太口做nat的方法2006-4-9 1:29:29cisco路由一个以太口做nat的方法2006-4-9 1:29:29cisco路由一个以太口做nat的方法

    全站热点
    最新推荐
    处理 SSI 文件时出错
    处理 SSI 文件时出错