ELGRP

本文详细介绍了如何配置Cisco设备,使用EIGRP(EnhancedInteriorGatewayRoutingProtocol)动态路由协议建立网络连接。通过为交换机SWA和路由器R1、R2设置接口IP地址、开启路由功能以及配置EIGRP网络段,实现了192.168.1.0,192.168.10.0,和192.168.20.0子网的互联。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

学习内容:

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:
在这里插入图片描述
实验检测:
在这里插入图片描述
在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值