EIGRP基本配置

EIGRP相关配置

1、EIGRP存在三张表来作为路由更新
(1)EIGRP邻居表 --------------------------show ip eigrp neighbors
(2)EIGRP拓扑表 (学习到的可到达路径)---------show ip eigrp topology
(3)EIGRP路由表 (从路径中选出最优路由)-------- show ip route eigrp

2、Eigrp的配置命令
router eigrp x
//运行 EIGRP 的整个网络的AS 号必须一致,否则无法通信。
network network-address [wildcard-mask]
//如果是主类网络即标准A、B、C 类的网络,也可直接输入网络地址
no auto-summary

3、配置实验
在这里插入图片描述
R1配置:
interface Loopback0
ip address 1.1.1.1 255.255.255.255

!
interface FastEthernet0/0
ip address 192.168.10.1 255.255.255.252
duplex auto
speed auto
!

router eigrp 10
network 1.1.1.1 0.0.0.0
network 192.168.10.0 0.0.0.3
no auto-summary

R2配置
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.10.2 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 192.168.20.1 255.255.255.252
duplex auto
speed auto
!
router eigrp 10
network 2.2.2.2 0.0.0.0
network 192.168.10.0 0.0.0.3
network 192.168.20.0 0.0.0.3
no auto-summary

R3配置
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255

interface FastEthernet0/0
ip address 192.168.20.2 255.255.255.252
duplex auto
speed auto
!
!
router eigrp 10
network 3.3.3.3 0.0.0.0
network 192.168.20.0 0.0.0.3
no auto-summary

R1#sh ip eigrp neighbors
IP-EIGRP neighbors for process 10
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.10.2 Fa0/0 13 00:53:55 19 300 0 53

R1#sh ip eigrp topology
IP-EIGRP Topology Table for AS(10)/ID(100.65.40.1)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status

P 2.2.2.2/32, 1 successors, FD is 156160
via 192.168.10.2 (156160/128256), FastEthernet0/0
P 3.3.3.3/32, 1 successors, FD is 158720
via 192.168.10.2 (158720/156160), FastEthernet0/0
P 1.1.1.1/32, 1 successors, FD is 128256
via Connected, Loopback0
P 192.168.10.0/30, 1 successors, FD is 28160
via Connected, FastEthernet0/0
P 192.168.20.0/30, 1 successors, FD is 30720
via 192.168.10.2 (30720/28160), FastEthernet0/0

P(passive):网络处于收敛的稳定状态

R1#sh ip route eigrp

R1#sh ip route eigrp
2.0.0.0/32 is subnetted, 1 subnets
D 2.2.2.2 [90/156160] via 192.168.10.2, 00:00:48, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
D 3.3.3.3 [90/158720] via 192.168.10.2, 00:12:23, FastEthernet0/0
192.168.20.0/30 is subnetted, 1 subnets
D 192.168.20.0 [90/30720] via 192.168.10.2, 00:58:08, FastEthernet0/0
//如果是通过EIGRP 协议学到的路由,管理距离是90,用“D”表示。如果是通过重分布(redistribute)进入EIGRP 网络的路由(外部路由),管理距离是170,用“D EX”表示。

R1#ping 3.3.3.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/56/108 ms
R1#ping 192.168.20.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.20.2, timeout is 2 seconds:
!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
R1#

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
F0/0 10.0.0.1/30 OSPF F1/0 10.5.5.1/30 EIGRP1 F2/0 10.4.4.1/30 EIGRP2 EIGRP1 F0/0 10.6.6.1/30 EIGRP2 F1/0 10.5.5.2/30 EIGRP F2/0 单臂路由 192.168.0.254/24 192.168.2.254/24 192.168.3.254/24 S1 EIGRP2 F0/0 10.6.6.2/30 EIGRP1 F2/0 10.4.4.2/30 EIGRP 交换机地址规划表 设备名称 接口 连接设备 管理 IP S1 F0/1 EIGRP1 Vlan1:192.168.0.1/24 F0/2 S2 F0/3 S3 S2 F0/1 S3 Vlan2:192.168.2.2/24 F0/2 S1 F0/4 PC2 S3 F0/1 S2 Vlan3:192.168.3.2/24 F0/3 S1 F0/4 PC3 PC 地址规划表 设备名称 IP 地址及掩码 网关 连接设备 PC1 192.168.1.1/24 192.168.1.254 连接 OSPF2 PC2 192.168.2.1/24 192.168.2.254 连接 S2 PC3 192.168.3.1/24 192.168.3.254 连接 S3 2、在 OSPF、OSPF1、OSPF2 三台路由器上配置 OSPF 0 单区域路由,所有接口网络参与路由 更新,并为相应接口配置被动接口;配置默认路由重分布。 3、在 EIGRPEIGRP1、EIGRP2 三台路由器上配置 EIGRP 路由,所有接口网络参与路由更新, 并为相应接口配置被动接口。 4、在 EIGRP 路由器上配置相应静态路由,使得网络互通(OSPF 上已配置默认路由);配置 静态路由注入。 5、EIGRP1、S1 间配置单臂路由。 6、交换机 S1、S2、S3 基本配置:为各交换机配置网关及管理 VLAN IP 地址;VTP:S1 为 server, S2、S3 为 client,密码为 cisco,域名为 cisco,S1 上创建 vlan 2、3;S2、S3 上划分相应端口 到 vlan;配置 trunk 链路。 7、Internet、EIGRP配置 NAT:地址池为 1.1.1.3-1.1.1.10,子网掩码 255.255.255.0,只允 许 192.168.0.0/16 网段地址访问 internet。 8、Internet、EIGRP配置 PPP,chap 双向认证,密码为 cisco。结合以上要求给出操作命令
06-10
由于问题中涉及的网络拓扑比较复杂,因此无法在此给出完整的操作命令。以下是一些可供参考的命令和配置示例: 1. OSPF 配置示例: ``` router ospf 1 network 10.0.0.0 0.0.0.3 area 0 passive-interface default no passive-interface FastEthernet0/0 default-information originate redistribute eigrp 1 metric 1000 subnets ``` 2. EIGRP 配置示例: ``` router eigrp 1 network 10.0.0.0 passive-interface default no passive-interface FastEthernet1/0 no passive-interface FastEthernet2/0 redistribute static ``` 3. 静态路由配置示例: ``` ip route 0.0.0.0 0.0.0.0 192.168.1.254 ``` 4. 单臂路由配置示例: ``` interface FastEthernet0/0 ip address 10.6.6.1 255.255.255.252 no shutdown ! interface FastEthernet1/0 ip address 10.5.5.1 255.255.255.252 no shutdown ! interface FastEthernet2/0 no ip address no shutdown ! interface Vlan1 ip address 192.168.0.1 255.255.255.0 no shutdown ! router eigrp 2 passive-interface Vlan1 network 192.168.0.0 redistribute connected ``` 5. 交换机基本配置示例: ``` interface Vlan1 ip address 192.168.0.254 255.255.255.0 no shutdown ! interface Vlan2 ip address 192.168.2.1 255.255.255.0 no shutdown ! interface Vlan3 ip address 192.168.3.1 255.255.255.0 no shutdown ! vlan 2 name PC2_VLAN ! vlan 3 name PC3_VLAN ! interface FastEthernet0/1 switchport mode access switchport access vlan 2 ! interface FastEthernet0/2 switchport mode access switchport access vlan 3 ! interface FastEthernet0/3 switchport mode trunk switchport trunk allowed vlan 1,2,3 switchport nonegotiate ! vtp mode server vtp domain cisco vtp password cisco ``` 6. NAT 配置示例: ``` access-list 10 permit 192.168.0.0 0.0.255.255 ! ip nat pool NAT_POOL 1.1.1.3 1.1.1.10 netmask 255.255.255.0 ip nat inside source list 10 pool NAT_POOL overload ! interface FastEthernet0/0 ip nat outside ! interface Vlan1 ip nat inside ``` 7. PPP 配置示例: ``` username EIGRP password cisco ! interface Serial0/0/0 encapsulation ppp ppp authentication chap ppp chap hostname INTERNET ppp chap password cisco ```

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值