RIP
网络拓扑图
路由器配置
下面是路由器R1、R2和R3的配置示例:
R1 配置:
configure terminal
interface FastEthernet0/0
ip address 10.1.1.1 255.255.255.0
no shutdown
exit
interface FastEthernet0/1
ip address 172.16.10.1 255.255.255.0
no shutdown
exit
router rip
version 2
network 10.1.1.0
network 172.16.0.0
end
wr
R2 配置:
configure terminal
interface FastEthernet0/0
ip address 10.1.1.2 255.255.255.0
no shutdown
exit
router rip
version 2
network 10.1.1.0
end
wr
R3 配置:
configure terminal
interface FastEthernet0/0
ip address 172.16.10.2 255.255.255.0
no shutdown
exit
router rip
version 2
network 172.16.0.0
end
wr
配置结果
show ip interface brief
R2#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 10.1.1.2 YES manual up up
R1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 10.1.1.1 YES manual up up
FastEthernet0/1 172.16.10.1 YES manual up up
R3#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 172.16.10.2 YES manual up up
show ip route
show ip protocols
结果检验
问题记录
问题1:刚开始绘制拓扑图的时候随意发挥,每个网卡都配的不一样的子网,然后互相ping不通,虽然设置了rip协议,但是一开始就没有相互连上的网段,所以也无法进行交换。
OSRF
网络拓扑图和路由配置
配置
R1 配置:
configure terminal
interface FastEthernet0/0
ip address 172.16.10.1 255.255.0.0
no shutdown
exit
interface FastEthernet0/1
ip address 10.1.1.1 255.255.255.0
no shutdown
exit
router ospf 100
network 10.1.1.0 0.0.0.255 area 0
network 172.16.0.0 0.0.255.255 area 0
end
wr
R2 配置:
configure terminal
interface FastEthernet0/0
ip address 10.1.1.2 255.255.255.0
no shutdown
exit
router ospf 100
network 10.1.1.0 0.0.0.255 area 0
end
wr
R3 配置:
configure terminal
interface FastEthernet0/0
ip address 172.16.10.2 255.255.0.0
no shutdown
exit
router ospf 100
network 172.16.0.0 0.0.255.255 area 0
end
wr