文档库 最新最全的文档下载
当前位置:文档库 › IPv6的EIGRP配置实例

IPv6的EIGRP配置实例

IPv6的EIGRP配置实例
IPv6的EIGRP配置实例

IPv6的EIGRP配置实例

实验目的:测试纯IPv6下的EIGRP配置

实验环境:思科pt5.3中的2811路由器

实验拓扑:

实验配置详细步骤:

配置router2

Router>enable

Router#config terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname r1

r1(config)#ipv6 router eigrp 100

r1(config-rtr)#router-id 10.10.10.1

r1(config-rtr)#no shutdown //一定要启用,否则使用show ipv6 eigtp neigbor时会提示eigrp notrunning。

r1(config-rtr)#int fa0/0

r1(config-if)#ipv6 address 2001:1111::1/64

r1(config-if)#ipv6 eigrp 100

r1(config-if)#no shutdown

r1(config)#int fa0/1

r1(config-if)#ipv6 address 2010:2222::1/64

r1(config-if)#ipv6 eigrp 100

r1(config-if)#no shutdown

配置router3

Router>enable

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#ipv6 router eigrp 100

Router(config-rtr)#router-id 10.10.10.1

Router(config-rtr)#no shutdown

Router(config-rtr)#int fa0/0

Router(config-if)#no ip address

Router(config-if)#ipv6 address 2010:1111::2/64

Router(config-if)#ipv6 eigrp 100

Router(config-if)#no shutdown

Router(config)#int fa0/1

Router(config-if)#no ip address

Router(config-if)#ipv6 address 2010:3333::1/64

Router(config-if)#ipv6 eigrp 100

Router(config-if)#no shutdown

实验检查部分

检查路由表

Router#show ipv6 route

IPv6 Routing Table - 7 entries

Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP

U - Per-user Static route, M - MIPv6

I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary

O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2

ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2

D - EIGRP, EX - EIGRP external

D 2001:1111::/64 [90/30720]

via FE80::201:C7FF:FE13:B601, FastEthernet0/0

C 2010:1111::/64 [0/0]

via ::, FastEthernet0/0

L 2010:1111::2/128 [0/0]

via ::, FastEthernet0/0

D 2010:2222::/64 [90/30720]

via FE80::201:C7FF:FE13:B601, FastEthernet0/0

C 2010:3333::/64 [0/0]

via ::, FastEthernet0/1

L 2010:3333::1/128 [0/0]

via ::, FastEthernet0/1

L FF00::/8 [0/0]

via ::, Null0

EIGRP的邻居状态

Router#show ipv6 eigrp neighbors

IPv6-EIGRP neighbors for process 100

H Address Interface Hold Uptime SRTT RTO Q Seq

(sec) (ms) Cnt Num

0 FE80::201:C7FF:FE13:B601Fa0/0 10 00:03:55 40 1000 0 5

EIGRP的拓扑

Router#show ipv6 eigrp topology all-links

IPv6-EIGRP Topology Table for AS 100/ID(10.10.10.1)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

r - Reply status

P 2010:1111::/64, 1 successors, FD is 28160

via Connected, FastEthernet0/0

P 2010:2222::/64, 1 successors, FD is 30720

via FE80::201:C7FF:FE13:B601 (30720/28160), FastEthernet0/0 P 2001:1111::/64, 1 successors, FD is 30720

via FE80::201:C7FF:FE13:B601 (30720/28160), FastEthernet0/0 P 2010:3333::/64, 1 successors, FD is 28160

via Connected, FastEthernet0/1

CISCO核心 Vlan 配置实例

CISCO Vlan配置实例 如何配置三层交换机创建VLAN 以下的介绍都是基于Cisco交换机的VLAN。Cisco的VLAN实现通常是以端口为中心的。与节点相连的端口将确定它所驻留的VLAN。将端口分配给VLAN的方式有两种,分别是静态的和动态的。形成静态VLAN的过程是将端口强制性地分配给VLAN的过程。即我们先在VTP (VLAN Trunking Protocol)Server上建立VLAN,然后将每个端口分配给相应的VLAN的过程。这是我们创建VLAN最常用的方法。动态VLAN形成很简单,由端口决定自己属于哪个VLAN。即我们先建立一个VMPS(VLAN Membership Policy Server)VLAN管理策略服务器,里面包含一个文本文件,文件中存有与VLAN映射的MAC地址表。交换机根据这个映射表决定将端口分配给何种VLAN。这种方法有很大的优势,但是创建数据库是一项非常艰苦而且非常繁琐的工作。下面以实例说明如何在一个典型的快速以太局域网中实现VLAN。所谓典型的局域网就是指由一台具备三层交换功能的核心交换机接几台分支交换机(不一定具备三层交换能力)。我们假设核心交换机名称为:COM;分支交换机分别为:PAR1、PAR2、PAR3……,分别通过Port 1的光线模块与核心交换机相连;并且假设VLAN名称分别为COUNTER、MARKET、MANAGING…… 设置VTP DOMAIN VTP DOMAIN 称为管理域。交换VTP更新信息的所有交换机必须配置为相同的管理域。如果所有的交换机都以中继线相连,那么只要在核心交换机上设置一个管理域,网络上所有的交换机都加入该域,这样管理域里所有的交换机就能够了解彼此的VLAN列表。COM#vlan database 进入VLAN配置模式 COM(vlan)#vtp domain COM 设置VTP管理域名称COM COM(vlan)#vtp server 设置交换机为服务器模式 PAR1#vlan database 进入VLAN配置模式 PAR1(vlan)#vtp domain COM 设置VTP管理域名称COM PAR1(vlan)#vtp Client 设置交换机为客户端模式 PAR2#vlan database 进入VLAN配置模式 PAR2(vlan)#vtp domain COM 设置VTP管理域名称COM PAR2(vlan)#vtp Client 设置交换机为客户端模式 PAR3#vlan database 进入VLAN配置模式 PAR3(vlan)#vtp domain COM 设置VTP管理域名称COM PAR3(vlan)#vtp Client 设置交换机为客户端模式 注意:这里设置交换机为Server模式是指允许在本交换机上创建、修改、删除VLAN及其他一些对整个VTP域的配置参数,同步本VTP域中其他交换机传递来的最新的VLAN信息;Client 模式是指本交换机不能创建、删除、修改VLAN配置,也不能在NVRAM中存储VLAN配置,但可以同步由本VTP域中其他交换机传递来的VLAN信息。 配置中继为了保证管理域能够覆盖所有的分支交换机,必须配置中继。Cisco交换机能够支持任何介质作为中继线,为了实现中继可使用其特有的ISL标签。ISL(Inter-Switch Link)是一个在交换机之间、交换机与路由器之间及交换机与服务器之间传递多个VLAN信息及VLAN数据流的协议,通过在交换机直接相连的端口配置ISL封装,即可跨越交换机进行整个网络的VLAN分配和进行配置。 在核心交换机端配置如下: COM(config)#interface gigabitEthernet 2/1 COM(config-if)#switchport

Cisco路由器静态路由配置实例

Cisco路由器静态路由配置实例 初学路由器的配置,下面就用Boson NetSim for CCNP 6.1模拟软件进行配置…这篇文章主要是对路由表进行静态路由配置… 拓扑结构图如下: 下面开始: 1.对Router1进行配置,配置命令如下: Router>enable进入特权模式 Router#configure terminal 进入配置模式 Enter configuration commands, one per line. End with CNTL/Z. Router(config)#interface ethernet0 进入E0端口模式

Router(config-if)#ip address 192.168.1.1 255.255.255.0 配置IP地址Router(config-if)#no shutdown 激活该端口 %LINK-3-UPDOWN: Interface Ethernet0, changed state to up Router(config-if)#exit 返回上一级 Router(config)#interface serial0 进入S0 端口模式 Router(config-if)#ip address 192.168.2.1 255.255.255.0 Router(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up %LINK-3-UPDOWN: Interface Serial0, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down Router(config-if)#clock rate 6400 注意这里是设置时钟..如有不明白,可以打”?”.但是系统给的参数是 64000 .而我们要配置成 6400 ..可能是模拟软件的一个小BUG 吧!现在是在模拟软件中,如果是真实环境,我们要参照说 明书..按照说明书来配置参数…. Router(config-if)#exit Router(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2 配置路由表

EIGRP协议word版本

E I G R P协议

EIGRP EIGRP简单实例 EIGRP:Enhanced Interior Gateway Routing Protocol 即增强网关内部路由线路协议。也翻译为加强型内部网关路由协议。 EIGRP是Cisco公司的私有 协议。Cisco公司是该协议的发明者和唯一具备该协议解释和修改权的厂商。EIGRP结合了链路状态和距离矢量型路由选择协议的Cisco专用协议,采用弥 散修正算法(DUAL)来实现快速收敛,可以不发送定期的路由更新信息以减少带宽的占用,支持Appletalk、IP、Novell和NetWare等多种网络层协议。EIGRP路由协议简介 是Cisco的私有路由协议,它综合了距离矢量和链路状态2者的优点,它的特点包括: 1.快速收敛 链路状态包(Link-State Packet,LSP)的转发是不依靠路由计算的,所以大型网络可以较为快速的进行收敛.它只宣告链路和链路状态,而不宣告路由,所以即使链路发生了变化,不会引起该链路的路由被宣告.但是链路状态路由协议使用的是Dijkstra算法,该算法比较复杂,并且较占CPU和内存资源和 其他路由协议单独计算路由相比,链路状态路由协议采用种扩散计算(diffusingcomputations ),通过多个路由器并行的记性路由计算,这样就可以在无环路产生的情况下快速的收敛.

2.减少带宽占用 EIGRP不作周期性的更新,它只在路由的路径和度发生变化以后做部分更新.当路径信息改变以后,DUAL只发送那条路由信息改变了的更新,而不是发 送整个路由表.和更新传输到一个区域内的所有路由器上的链路状态路由协 议相比,DUAL只发送更新给需要该更新信息的路由器。在WAN低速链路 上,EIGRP可能会占用大量带宽,默认只占用链路带宽50%,之后发布的IOS允许使用命令ip bandwidth-percent eigrp来修改这一默认值 . 3.支持多种网络层协议 EIGRP通过使用“协议相关模块”(即protocol- dependentmodule),可以支持IPX,ApplleTalk,IP,IPv6和NovellNetware等协议. 4.无缝连接数据链路层协议和拓扑结构 EIGRP不要求对OSI参考模型的层2协议做特别的配置.不像OSPF,OSPF 对不同的层2协议要做不同配置,比如以太网和帧中继,EIGRP能够有效的工作在LAN和WAN中,而且EIGRP保证网络不会产生环路(loop-free);而且配置起来很简单;支持VLSM;它使用多播和单播,不使用广播,这样做节约了带宽;它使用和IGRP一样的度的算法,但是是32位长的;它可以做非等价的路径的负载平衡. 编辑本段EIGRP的四个组件

RIPv2配置实例

RIPv2配置实例 1.用户需求: 某企业总部计划和它的2个分公司联网。计划采用2条数字链路连接总部和分公司,并要求总部和分公司的IP网络段不能相同,并且划分广播域隔离广播;不采用三层交换设备;两个分公司联网后能够互相访问;总部和分公司联网后路由器能够自动学习。 2.方案分析与解决: 不采用三层交换技术,但要求采用数字链路,可以考虑用路由器。 3.网络拓扑: 4.规划网络地址: PC1:192.168.3.2 255.255.255.0 192.168.3.1 PC2:192.168.3.3 255.255.255.0 192.168.3.1 PC3:192.168.4.2 255.255.255.0 192.168.4.1 PC4:192.168.5.2 255.255.255.0 192.168.5.1 总部路由器A:F0/0:192.168.3.1 255.255.255.0 S1/0:192.168.1.1 255.255.255.0 S1/1:192.168.2.1 255.255.255.0 分公司路由器B:F0/0:192.168.4.1 255.255.255.0 S1/0:192.168.1.2 255.255.255.0 分公司路由器C:F0/0:192.168.5.1 255.255.255.0 S1/1:192.168.2.2 255.255.255.0 5.路由器配置: 总部A: Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname routerA

eigrp命令

EIGRP命令列表 ---------------- ◆{Router(config)#router eigrp [AS号]} 开启EIGRP路由协议 ◆{Router(config-router)#network [子网号]} 配置EIGRP子网 ◆{Router(config-router)#network [子网号] [掩码]} 配置EIGRP无类子网 ◆{no auto-summary} 关闭有类自动汇总 ◆{ip summary-address [AS号] [IP地址] [掩码]} 手动配置汇总 ◆{eigrp stub} 配置一个末梢路由 ◆{variance} 配置一个不平衡的均衡负载 ◆{ip hello-interval eigrp [AS号] [时间/s]} 改变Hello包发送频率 ◆{ip hold-time eigrp [AS号] [时间/s]} 改变Hold-Time长度 ◆{bandwidth} 改变一个接口上的带宽,最大化带宽将限制它自身的通路 ◆{ip bandwidth-percent eigrp [AS号]} 改变EIGRP通路使用的带宽。默认为50% ◆{Router(config)#interface s0 Router(config-if)#ip summary-address eigrp [AS号] [IP地址] [掩码]} 手工配置汇总 ◆{Router(config-router)#eigrp stub [receive-only | connected | redistributed | static | summary]} 配置末梢路由 ◆{Router(config-route)#variance multiplier} 配置不等开销负载均衡 ◆{Rout er(config-if)#ip hello-interval eigrp [AS号] [时间]} 配置Hello计时器 ◆{Router(config-if)#ip hold-time eigrp [AS号] [时间]} 配置Hold计时器 ◆{Router(config-if)#ip authentication mode eigrp [AS号] md5} 起用EIGRP的MD5认证 ◆{Router(config-if)#ip anthentication key-chain eigrp [AS号] [chain-name]} 配置MD5密匙 ◆{Router(config)#key chain [chain-name] Router(config-if)#key [key-id] Router(config-keychain-key)#key-string [key]}

EEM配置实例

配置EEM监测内存使用率: Router(config)#event manager applet MEM Router(config-applet)#event snmp oid 1.3.6.1.4.1.9.9.48.1.1.1.6.1 get-type exact entry-op lt entry-val 30623072 poll-interval 90 Router(config-applet)#action 01.0 cli command "enable" Router(config-applet)#action 02.0 cli command "conf t" Router(config-applet)#action 03.0 cli command "router eigrp 100" Router(config-applet)#exit 说明:EEM当前监测内存的使用情况,如果空闲大小低于30623072,则事件被触发,采集间 隔为90秒一次,如果事件触发后,执行的第一个动作为在命令行下输入命令enable,执行的 第二个动作为在命令行下输入命令conf t,执行的第三个动作为在命令行下输入命令router eigrp 100,其实结果就是在事件发生后,自动启用一个EIGRP进程,AS号为100;结合之前 可以得知,内存总大小为30623072,所以内存空闲空间肯定会小于30623072,那么该EEM policy配置后,事件肯定是被触发的。其中动作标签为01.0格式。 event manager applet dump-procs event syslog pattern "CPUALERT5MIN" action 001 cli command "enable" action 002 cli command "show proc cpu sorted 5min" action 003 set lines 0 action 004 foreach line "$_cli_result" "\n" action 005 if$lines gt 11 action 006 break action 007 end action 008 append output $line action 009 increment lines action 010 end action 011 mail to engineer@https://www.wendangku.net/doc/6710251323.html, from EEM@https://www.wendangku.net/doc/6710251323.html, server 198.2.5.10 subject "CPUALERT5MIN" body "$output" ======================================================================= event manager applet dump-procs event syslog pattern "CPURISINGTHRESHOLD" action 001 cli command "enable" action 002 cli command "show proc cpu sorted 5min" action 003 set lines 0 action 004 foreach line "$_cli_result" "\n"

EIGRP协议

EIGRP EIGRP简单实例 EIGRP:Enhanced Interior Gateway Routing Protocol 即增强网关内部路由线路协议。也翻译为加强型内部网关路由协议。 EIGRP是Cisco公司的私有协议。Cisco公司是该协议的发明者和唯一具备该协议解释和修改权的厂商。 EIGRP结合了链路状态和距离矢量型路由选择协议的Cisco专用协议,采用弥散修正算法(DUAL)来实现快速收敛,可以不发送定期的路由更新信息以减少带宽的占用,支持Appletalk、IP、Novell和NetWare等多种网络层协议。 EIGRP路由协议简介 是Cisco的私有路由协议,它综合了距离矢量和链路状态2者的优点,它的特点包括: 1.快速收敛 链路状态包(Link-State Packet,LSP)的转发是不依靠路由计算的,所以大型网络可以较为快速的进行收敛.它只宣告链路和链路状态,而不宣告路由,所以即使链路发生了变化,不会引起该链路的路由被宣告.但是链路状态路由协议使用的是Dijkstra算法,该算法比较复杂,并且较占CPU和内存资源和其他路由协议单独计算路由相比,链路状态路由协议采用种扩散计算

(diffusingcomputations ),通过多个路由器并行的记性路由计算,这样就可以在无环路产生的情况下快速的收敛. 2.减少带宽占用 EIGRP不作周期性的更新,它只在路由的路径和度发生变化以后做部分更新.当路径信息改变以后,DUAL只发送那条路由信息改变了的更新,而不是发送整个路由表.和更新传输到一个区域内的所有路由器上的链路状态路由协议相比,DUAL只发送更新给需要该更新信息的路由器。在WAN低速链路上,EIGRP可能会占用大量带宽,默认只占用链路带宽50%,之后发布的IOS允许使用命令ip bandwidth-percent eigrp来修改这一默认值 . 3.支持多种网络层协议 EIGRP通过使用“协议相关模块”(即 protocol-dependentmodule),可以支持 IPX,ApplleTalk,IP,IPv6和NovellNetware等协议. 4.无缝连接数据链路层协议和拓扑结构 EIGRP不要求对OSI参考模型的层2协议做特别的配置.不像OSPF,OSPF对不同的层2协议要做不同配置,比如以太网和帧中继,EIGRP能够有效的工作在LAN和WAN中,而且EIGRP保证网络不会产生环路(loop-free);而且配置起来很简单;支持VLSM;它

voip配置范例 cisco

实验拓扑 (phone A & phone B)-fxs-local router-----------(serial link,voip link)------- remote router-fxo-PBX--phone C 配置实例: 1、基本配置: 远端: Remote_Router#sh running-config Building configuration... hostname Remote_Router ..................................................... interface Ethernet0 ip address 192.168.1.2 255.255.255.0 no ip directed-broadcast ! router eigrp 100 network 192.168.1.0 no auto-summary ! ip classless no ip http server ! ! ! voice-port 1/1 ! voice-port 1/2 ! voice-port 1/3 !

dial-peer voice 10 pots destination-pattern 2203 port 1/1 ! end 本端: Local_Router#sh running-config Building configuration... .................................................... hostname Local_Router interface Ethernet0/0 ip address 192.168.1.1 255.255.255.0 half-duplex no clns route-cache ! router eigrp 100 network 192.168.1.0 no auto-summary voice-port 1/0/0 ! voice-port 1/0/1 ! voice-port 1/1/0 ! voice-port 1/1/1 ! dial-peer voice 10 pots destination-pattern 2201 port 1/0/0 ! dial-peer voice 20 pots destination-pattern 2202 port 1/0/1 ! dial-peer voice 30 voip destination-pattern 2203 session target ipv4:192.168.1.2 end

IPv6的EIGRP配置实例

IPv6的EIGRP配置实例 实验目的:测试纯IPv6下的EIGRP配置 实验环境:思科pt5.3中的2811路由器 实验拓扑: 实验配置详细步骤: 配置router2 Router>enable Router#config terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname r1 r1(config)#ipv6 router eigrp 100 r1(config-rtr)#router-id 10.10.10.1 r1(config-rtr)#no shutdown //一定要启用,否则使用show ipv6 eigtp neigbor时会提示eigrp notrunning。 r1(config-rtr)#int fa0/0 r1(config-if)#ipv6 address 2001:1111::1/64 r1(config-if)#ipv6 eigrp 100 r1(config-if)#no shutdown r1(config)#int fa0/1 r1(config-if)#ipv6 address 2010:2222::1/64 r1(config-if)#ipv6 eigrp 100 r1(config-if)#no shutdown 配置router3 Router>enable Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#ipv6 router eigrp 100 Router(config-rtr)#router-id 10.10.10.1 Router(config-rtr)#no shutdown

EIGRP手动汇总精确控制路由条目

在EIGRP环境中使用手动汇总一、实验拓扑 二、实验环境基本配置 R1 R1>en R1#conf t R1(config)#int e 1/0 R1(config-if)#ip add 12.1.1.1 255.255.255.0 R1(config-if)#no sh R1(config-if)#int lo 0 R1(config-if)#ip add 10.1.0.1 255.255.255.0 R1(config-if)#int lo 1

R1(config-if)#ip add 10.1.1.1 255.255.255.0 R1(config-if)#int lo 2 R1(config-if)#ip add 10.1.2.1 255.255.255.0 R1(config-if)#int lo 3 R1(config-if)#ip add 10.1.3.1 255.255.255.0 R1(config-if)#router ei 50 R1(config-router)#net 12.1.1.0 0.0.0.255 R1(config-router)#net 10.0.0.0 R1(config-router)# R2 R2>en R2#conf t R2(config)#int e 1/0 R2(config-if)#ip add 12.1.1.2 255.255.255.0 R2(config-if)#no sh R2(config-if)#int e 1/1 R2(config-if)#no sh R2(config-if)#int e 1/2 R2(config-if)#ip add 24.1.1.2 255.255.255.0 R2(config-if)#router ei 50 R2(config-router)#net 12.1.1.0 0.0.0.255 R2(config-router)#net 23.1.1.0 0.0.0.255 R2(config-router)#net 24.1.1.0 0.0.0.255 R2(config-router)# R3 R3>en

EIGRP特性Variance参数与不等价负载均衡配置实例

配置过程如下: ----PC1的配置------- PC1(config)#no ip routing PC1(config)#ip default-gateway 10.1.1.1 PC1(config)#interface e0/0 PC1(config-if)#ip address 10.1.1.100 255.255.255.0 PC1(config-if)#no shutdown PC1(config-if)#end PC1# ----PC2的配置------- PC2#configure terminal PC2(config)#no ip routing PC2(config)#ip default-gateway 192.168.1.2 PC2(config)#interface e0/0 PC2(config-if)#ip address 192.168.1.100 255.255.255.0 PC2(config-if)#no shutdown PC2(config-if)#end ----R1的配置------- R1#configure terminal R1(config)#interface f0/0 R1(config-if)#ip address 10.1.1.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#interface s1/0 R1(config-if)#ip address 12.12.12.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#interface s1/1 R1(config-if)#ip address 21.21.21.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#router eigrp 100

神州数码路由器实例配置

本地局域网互联(路由协议配置) 任务一 实验目的: 1 掌握路由协议的配置方法; 2 理解路由协议的工作过程和使用环境; 3 掌握利用路由器连接本地局域网的方法;试验设备: 1.DCR-1700或者DCR-2600 路由器一台 2. DCRS-3926S交换机一台 3. PC机,网线,CONSOLE 线 实验拓扑: 实验步骤: 1.Router#delete this file will be erased,are you sure?(y/n)y no such file Router#write Saving current configuration... OK! Router#reboot Do you want to reboot the router(y/n)?y Please wait.. //恢复出厂设置 2.Router#show ip route //查看IP路由表 Codes: C - connected, S - static, R - RIP, B - BGP, BC - BGP connected D - DEIGRP, DEX - external DEIGRP, O - OSPF, OIA - OSPF inter area ON1 - OSPF NSSA external type 1, ON2 - OSPF NSSA external type 2 OE1 - OSPF external type 1, OE2 - OSPF external type 2 DHCP - DHCP type VRF ID: 0 //没有路由表项 3.Router#config Router_config#interface f

ospf配置实例

ospf配置实例 注明:R1的S0连接R2的S0端口,R1的S1连接R3的S1 R1(S0):192.168.2.1 255.255.255.0 R1(S1):192.168.3.1 255.255.255.0 R2(S0): 192.168.2.2 255.255.255.0 R3(S1):192.168.3.3 255.255.255.0 R2(f0/0):192.168.1.1 255.255.255.0 R3(f0/0):192.168.4.1 255.255.255.0 PC2:192.168.1.2 255.255.255.0 192.168.1.1 PC3:192.168.4.2 255.255.255.0 192.168.4.1 具体配置如下 Press Enter to Start Router> Router> Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R1 R1(config)#int s0 R1(config-if)#ip addr 192.168.2.1 255.255.255.0 R1(config-if)#no shut %LINK-3-UPDOWN: Interface Serial0, changed state to up %LINK-3-UPDOWN: Interface Serial0, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down R1(config-if)#clock rate 64000 R1(config-if)#exit R1(config)#int s1 R1(config-if)#ip addr 192.168.3.1 255.255.255.0 R1(config-if)#no shut %LINK-3-UPDOWN: Interface Serial1, changed state to up %LINK-3-UPDOWN: Interface Serial1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down R1(config-if)#clock rate 125000 R1(config-if)#exit R1(config)# %LINK-3-UPDOWN: Interface Serial0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up %LINK-3-UPDOWN: Interface Serial1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to up R1(config)# R1(config)#router ospf 100 R1(config-router)#network 192.168.2.0 0.0.0.255 area 0 R1(config-router)#network 192.168.3.0 0.0.0.255 area 0 R1(config-router)#end R1#wr R1#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

BGP配置实验案例(很好)

拓扑: 实验目的: 理解BGP同步 理解BGP水平分割 理解BGP权重/MED/本地优先级控制 理解下一跳对BGP路由的影响 试验设备: Dynamips 3620 IOS 12.2 From:https://www.wendangku.net/doc/6710251323.html, 附件: 模拟器拓扑配置文件 各路由器初始配置 试验过程: a#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 6 subnets B 172.16.4.0 [20/0] via 172.16.1.2, 00:10:32 C 172.16.5.0 is directly connected, Serial1/1 B 172.16.6.0 [20/0] via 172.16.1.2, 00:14:06 C 172.16.1.0 is directly connected, Serial1/0 B 172.16.2.0 [20/0] via 172.16.1.2, 00:14:06 B 172.16.3.0 [20/0] via 172.16.1.2, 00:10:32 10.0.0.0/24 is subnetted, 1 subnets C 10.10.1.0 is directly connected, Loopback0 B 192.168.1.0/24 [20/0] via 172.16.5.2, 00:05:02 B 192.168.2.0/24 [20/0] via 172.16.1.2, 00:02:19 此时所有路由器都关闭了BGP同步,所以A路由器可以学到其他AS中任意的IBGP路由,例如192.168.2.0,如若没有关闭同步(此时的配置肯定不会同步,因为DE之间跟没有IGP 路由 来连通192.168。1.0/24以及192.168.2.0/24,也就是说D路由器根本无法知道192.168.2.0/24该如何通过IGP到达),那么D路由器必须等待igp与ibgp的同步,否则它 不会将192.168.2.0/24装入路由表,更不可能把该路由通过EBGP发出去。当D关闭同步后,看A的输出: a#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 6 subnets B 172.16.4.0 [20/0] via 172.16.1.2, 00:15:29 C 172.16.5.0 is directly connected, Serial1/1 B 172.16.6.0 [20/0] via 172.16.1.2, 00:19:03 C 172.16.1.0 is directly connected, Serial1/0 B 172.16.2.0 [20/0] via 172.16.1.2, 00:19:03 B 172.16.3.0 [20/0] via 172.16.1.2, 00:15:29

EIGRP协议学习笔记

EIGRP 介绍:EIGRP是思科私有协议,它属于增强型内部网关路由协议(高级矢量协议),它有时也被描述成一个具有链路状态协议行为特性的距离矢量协议。无类/IGP/混合/路由协议,支持VLMS(子网) / CIDR (支持超网) 支持认证(MD5加密),EIGRP协议使用了一个称为扩散计算(diffusing computations)的方法----在多台路由器之间通过一个并行的方式执行路由的计算从而在保持无环路的拓扑时可以随时获取较快的收敛,部分更新/增量更新。支持多个网络层协议组件(PDM)-------------(IP,IPv6,IPX等)不同网络层协议生成的EIGRP表是不一样的依赖PDM子模块实现的。以组播地址发送更新(组播地址224.0.0.10)也支持单播。支持接口的手工汇总,支持等价负载均衡和非等价负载均衡。EIGRP的管距:内部90 外部170 手工汇总5 三张表: 邻居表:所有的邻居 拓扑表:所有的路由条目 路由表:运行算法,选出最优路由条目 EIGRP协议包含以下4个部件 1,依赖于协议的模块 2,可靠传输协议(RTP) 3,邻居发现和恢复模块 4,扩散更新算法(DUAL) 依赖于协议的模块:EIGRP协议实现了IP协议,IPX协议和AppleTalk协议的模块,它可以担负起某一特定协议的路由选择任务,例如,IPX EIGRP 模块可以负责在IPX网络上与其他IPX EIGRP进程进行路由信息交换的任务,并且把这些信息传给DUAL。另外,IPX模块也接收和发送SAP信息 可靠传输协议(RTP):用来管理EIGRP报文的发送和接收,可靠的发送是指发送是有保障的而且报文是有序的发送。有保障的发送是依赖cisco公司私有的算法来实现的,这个私有的算法称为“可靠组播(reliable multicast)它使用保留的D类地址224.0.0.10。每个接收可靠组播报文的邻居都会发送一个单播的确认报文。有序的发送是通过在每个报文中包含两个序列号来实现的。每个报文都包含一个由发送该报文的路由器分配的序列号,这个序列号在每台路由器发送一个新的报文时递增1,另外,发送路由器会把最近从目的路由器收到的报文的序列号放在该报文中。在一些实例中,RTP也可以使用不可靠的发送,不需要确认,而且在使用不可靠发送的报文中不包含序列号。 EIGRP协议使用多种类型的报文,所有这些报文都通过IP报文头部的协议号88来标识。 1,hello报文(hello):用于邻居的发现和恢复的过程,hello报文使用组播方式发送,而且使用不可靠的发送方式。 2,确认报文(acknowledgments, ACKs)是不包含数据的hello报文,ACKs报文总是使用单播方式和不可靠的发送方式。 3,更新报文(update):用于传递路由更新信息,只在必要的时候传递必要的信息。这些报文是使用可靠的发送方式。 4,查询(query)和答复(reply)报文:用来管理它的扩散计算的,查询报文可以使用组播方式或者单播方式发送,而回复报文总是单播方式发送的。查询和回复报文都使用可靠的发送方式。 5,请求报文(request):最初是打算提花给路由服务器使用的报文类型。但是这个应用从来没有实现过。

路由器基本配置及实例

基本输入命令: Router>enable \\进入特权模式 Router#configure terminal \\进入全局模式 Router(config)#hostname R3 \\设置主机名 R3(config)#enable secret 123 \\设置特权加密密码(第2级密码) R3(config)#line console 0 \\进入CONSOLE管理端口R3(config-line)#password 123 \\设置CONSOLE密码 R3(config-line)#login \\启用密码 R3(config-line)#exit \\退回全局模式 R3(config)#line vty 0 4 \\进入VTY管理端口R3(config-line)password cisco \\设置VTY密码 R3(config-line)login \\启用密码 R3(config-line)#exit \\退回全局模式 R3(config)#interface fastEthernet 0/0 \\进入端口配置R3(config-if)#ip address 192.168.1.1 255.255.255.0 \\设置端口IP 地址 R3(config-if)#no shutdown \\打开端口 R3(config-if)#exit R3(config)#no ip domain lookup \\关闭域名查询功能(默认开启) R3(config)#line console 0 R3(config-line)#exec-timeout 0 \\关闭CONSOLE 口超时 R3(config-line)#logging synchronous \\启用日志同步R3(config)#exit R3#show running-config \\在特权模式下查看配置文件 R3#copy running-config startup-config \\退到特权模式下 保存配置 Destination filename [startup-config]? Building configuration... [OK] 实例:

相关文档