双出口+NAT的实现.docxVIP

  • 1
  • 0
  • 约3.31千字
  • 约 3页
  • 2023-08-11 发布于上海
  • 举报
双出口+NAT 的实现 环境描述:使用设备为 Cisco2621XM + NE-1E模块,该配置拥有两个 FastEthernet 以及一个 Ethernet 端口。 现使用 Ethernet 1/0 端口连接内部局域网,模拟内部拥有 与 两组客户机情况下基于原地址的策略路由。 Fastethernet 0/0 模拟第一个 ISP 接入端口,Fastethernet 0/1 模拟第二个 ISP 接入端口,地址分别为 Fastethernet 0/0 的 ip 地 址 对 端 ISP 地 址 Fastethernet 0/1 的 ip 地址 对端 ISP 地址 通过策略路由后对不同原地址数据流量进行分流,使得不同原地址主机通过不同 ISP 接口访问 Internet, 并为不同原地址主机同不同 NAT 地址进行转换。 具体配置: version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Router !! ip subnet-zero !! call rsvp-sync ! interface FastEthernet0/0 --------------------假设该端口为 ISP 1 接入端口ip address 分配地址 ip nat outside --------指定为 NAT Outside 端口 duplex auto speed auto ! interface FastEthernet0/1 --------------------假设该端口为 ISP 2 接入端口ip address 分配地址 ip nat outside --------指定为 NAT Outside 端口 duplex auto speed auto ! interface Ethernet1/0 假设该端口为内部网络端口 ip address 54 分配地址 ip nat inside --------指定为 NAT Inside 端口 ip policy route-map t0 --------在该端口上使用 route-map t0 进行策略控制 half-duplex ! ip nat inside source list 1 interface FastEthernet0/0 overload ------Nat 转换,指定原地址为 的主机使用 Fastethernet 0/0 的地址进行转换 ip nat inside source list 2 interface FastEthernet0/1 overload ------Nat 转换,指定原地址为 的主机使用 Fastethernet 0/1 的地址进行转换 ip classless ip route ------静态路由,对 Internet 的访问通过 (ISP2)链路 ip route ------静态路由,对 Internet 的访问通过 (ISP1) 链路 ip http server 静太路由不起很大的作用,因为存在策略路由,主要是 set int 要求有显示的去往目的的路由 access-list 1 permit access-list 1 permit 55 访问控制列表 1,用于过滤原地址,允许 网段主机流量通过 access-list 2 permit 55 访问控制列表 2,用于过滤原地址,允许 网段主机流量通过 如果做 set int 备份,则 acl1,acl2 应该允许所有的,进行 nat route-map t0 permit 10 ----定义 route-map t0,permit 序列为 10 match ip address 1 ----检查原地址,允许 网段地址set interface FastEthernet0/0 ----指定出口为 Fastethetnet 0/0 (set interface FastEthernet0/1) 我认为可以做备份 ! route-map t0 permit 20 ----定义 route-map t0,permit 序列为 20 match ip address 2 ----检查原地址,允许 网段地址set interface FastEthernet0/1 ----指定出口为 Fastethetnet 0/1 ! (set interface FastEthernet0/0) 我认为可做备份 ! dial-peer cor custom ! lin

文档评论(0)

1亿VIP精品文档

相关文档