1 / 9

静态路由

静态路由. Stub Network. 192.168.10.0. SO. Network. A. B. B. 172.16.2.2. 172.16.2.1. 无开销,配置简单,需人工维护,适合简单拓扑结构的网络。. 静态路由的例子. Stub Network. 192.168.10.0. SO. Network. A. B. B. 172.16.2.2. 172.16.2.1. ip route 192.168.10.0 255.255.255.0 172.16.2.1. 这是一条单方向的路径,必须配置一条相反的路径。. 缺省路由.

duante
Download Presentation

静态路由

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 静态路由 Stub Network 192.168.10.0 SO Network A B B 172.16.2.2 172.16.2.1 • 无开销,配置简单,需人工维护,适合简单拓扑结构的网络。

  2. 静态路由的例子 Stub Network 192.168.10.0 SO Network A B B 172.16.2.2 172.16.2.1 ip route 192.168.10.0 255.255.255.0 172.16.2.1 • 这是一条单方向的路径,必须配置一条相反的路径。

  3. 缺省路由 Stub Network 192.168.10.0 SO Network A B B 172.16.2.2 172.16.2.1 ip route 0.0.0.0 0.0.0.0 172.16.2.2 • 使用缺省路由后,Stub Network可以到达路由器A以外的网络。

  4. //不用于动态地址分配的地址 • ip dhcp excluded-address 192.168.10.1 192.168.10.20 • //global是pool name, 由用户指定 • ip dhcp pool a7a • //动态分配的地址段 • network 192.168.10.0 255.255.255.0 • //为客户机配置dns服务器 • dns-server 192.168.10.2 192.168.10.3 • //为客户机配置网关 • default-router 192.168.10.1

  5. 定义访问控制列表。 • access-list 1 permit 192.168.10.0 0.0.0.255

  6. 实现外接口地址的复用及IP地址的动态转换。 • ip nat inside source list 1 interface fastethernet0/1 overlocad • inside source list 1 : 表示从inside 接口进入并符合acces-list 1 要求的数据包,它的源地址将被进行PAT转换。

  7. 实现外接口地址的复用及IP地址的动态转换。 • ip nat inside source list 1 interface fastethernet0/1 overlocad • interface fastethenet0/1:表示在f0/1接口上进行接口复用。 • overload:它的意思为过载,正因为配置了overload,才能实现接口复用

  8. 在接口上启用PAT. • (config)# interface fastethent0/0 • (config-if)#ip nat inside • (config)# interface fastethent0/1 • (config-if)# ip nat outside

More Related