1.         路由协议的分类:routing protocol
EGP:外部网关路由协议,工作在AS(自治系统)之间
      BGP:边界网关路由协议
IGP:内部网关路由协议,工作在一个AS
     静态路由:默认路由
     动态路由:1)距离矢量路由协议:RIP   IGRPcisco私有)
               2)链路状态路由协议:OSPF  IS-IS
               3)混合路由协议:EIGRP
 
2.         实验:按照下图搭建环境:
CCNA笔记之第九节:静态路由_ccna
1)   配置两台计算机的ip地址、掩码和网关。
2)   配置各个接口:
R1(config)#int f0/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#int f0/1
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#no sh
R2(config)#int f0/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#int f0/1
R2(config-if)#ip add 192.168.2.1 255.255.255.0
R2(config-if)#no sh
3)   配置静态路由:
R1(config)#ip route 192.168.2.0 255.255.255.0 12.12.12.2
R2(config)#ip route 192.168.1.0 255.255.255.0 12.12.12.1
4)   查看路由表信息:
R1#sh ip rou
     12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, FastEthernet0/0
C    192.168.1.0/24 is directly connected, FastEthernet0/1
S    192.168.2.0/24 [1/0] via 12.12.12.2
R2#sh ip rou
     12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, FastEthernet0/0
S    192.168.1.0/24 [1/0] via 12.12.12.1
C    192.168.2.0/24 is directly connected, FastEthernet0/1
5)   下一跳可以写出接口:f0/0
6)   默认路由:
R1(config)#ip route 0.0.0.0 0.0.0.0 f0/0
R2(config)#ip route 0.0.0.0 0.0.0.0 f0/0
7)   路由表:
S*   0.0.0.0/0 is directly connected, FastEthernet0/0
 
 
 
----本文档由 联科教育 (http://www.iLync.cn)原创提供,有任何问题访问我们站点并咨询我们专家团队,谢谢!