学习内容:
1.动态路由ELGRP
学习时间:
- 周一至周五上 9 点—晚上6点
学习产出:
拓扑图:
SWA:
Switch>en
Switch#conf t
Switch(config)#hostname SWA (改名SWA)
SWA(config)#ip routing (开启三层交换机)
SWA(config)#int f0/1
SWA(config-if)#no sw
SWA(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
SWA(config-if)#ip add 192.168.10.254 255.255.255.0
SWA(config-if)#no shut
SWA(config-if)#int f0/2
SWA(config-if)#no sw
SWA(config-if)#no sw%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
SWA(config-if)#ip add 192.168.20.254 255.255.255.0
SWA(config-if)#no shut (开启这个端口)
SWA(config-if)#int f0/24
SWA(config-if)#
SWA(config-if)#no sw
SWA(config-if)#ip add 192.168.1.1 255.255.255.0
SWA(config)#router eigrp 100 (动态路由ELGRP)
SWA(config-router)#network 192.168.1.0
SWA(config-router)#network 192.168.10.0
SWA(config-router)#network 192.168.20.0
SWA(config-router)#end
SWA#
%SYS-5-CONFIG_I: Configured from console by console
write
Building configuration…
[OK]
SWA#
R1:
Router>
Router>en
Router#conf t
Router(config)#hostname R1
R1(config)#int g0/0
R1(config-if)#ip add 192.168.1.2 255.255.255.0
R1(config-if)#no shut (开端口)
R1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state t
R1(config-if)#int s0/0/0
R1(config-if)#clock rate 64000 (配置其时钟频率64000)
R1(config-if)#ip add 192.168.2.1 255.255.255.0
R1(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
R1(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
R1(config-if)#
R1(config-if)#exi
R1(config)#router eigrp 100
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.2.0
R1(config-router)#end
R1#
%SYS-5-CONFIG_I: Configured from console by console
write
Building configuration…
[OK]
R1#
R2:
Router>
Router>en
Router#conf t
Router(config)#hostname R2
R2(config)#int s0/0/0
R2(config-if)#ip add 192.168.2.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
R2(config-if)#int g0/0
R2(config-if)#no shu
R2(config-if)# ip add 192.168.30.254 255.255.255.0
R2(config-if)#exi
R2(config)#router eigrp 100
R2(config-router)#network 192.168.2.0
R2(config-router)#network 192.168.30.0
R2(config-router)#end
R2#
%SYS-5-CONFIG_I: Configured from console by console
write
Building configuration…
[OK]
PC1:
PC2:
PC3:
实验检测: