| 网站首页 | 知识社区 | 网络基础知识 | 交换技术 | 路由技术 | VPN技术 | 组播技术 | 基础数据网 | 考试认证 | 无线网络 | 网络安全 | 服务器应用 | 宠物知识 | 
您现在的位置: BBFISH-专业技术知识网站 >> 交换技术 >> CEF >> 文章正文
专题栏目
更多内容
最新推荐 更多内容
相关文章
CEF负载分配详解(英文)
EBGP multipath load sh…
交换机Port-Security配置
端口镜像配置
基于CEF的多层交换
CEF的两种操作模式
CEF的两种主要组件
使用CEF必须满足的条件
CEF的优点
什么是CEF
更多内容

怎样配置和验证CEF           ★★★

怎样配置和验证CEF
作者:bbfish.net 文章来源:本站收集 点击数: 更新时间:2009-4-1 22:36:52
特别注意:Cisco catalyst交换机默认启用CEF,因此catalyst交换机执行第3层硬件转发。

 
配置CEF
ip cef (默认已经启用)
ip route-cache cef (只能在VLAN interface上配置)
验证CEF
show ip cef fa 0/1 detail (查询fa0/1的FIB表信息)
show adjacency fa 0/1 detail (查询fa0/1的邻接表信息) 

验证CEF命令
Switch#show ip cef [type mod/port | vlan_interface] [detail]
 Switch# show ip cef vlan 11 detail
IP CEF with switching (Table Version 11), flags=0x0
  10 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 0
  13 leaves, 12 nodes, 14248 bytes, 14 inserts, 1 invalidations
  0 load sharing elements, 0 bytes, 0 references
  universal per-destination load sharing algorithm, id 4B936A24
  2(0) CEF resets, 0 revisions of existing leaves
  Resolution Timer: Exponential (currently 1s, peak 1s)
  0 in-place/0 aborted modifications
  refcounts:  1061 leaf, 1052 node

  Table epoch: 0 (13 entries at this epoch)

172.16.11.0/24, version 6, epoch 0, attached, connected
0 packets, 0 bytes
  via Vlan11, 0 dependencies
    valid glean adjacency

 
验证三层交换命令
Switch#show interface {{type mod/port} | {port-channel number}}
| begin L3 
Switch#show interface fastethernet 3/3 | begin L3
  L3 in Switched: ucast: 0 pkt, 0 bytes - mcast: 12 pkt, 778 bytes mcast
  L3 out Switched: ucast: 0 pkt, 0 bytes - mcast: 0 pkt, 0 bytes
     4046399 packets input, 349370039 bytes, 0 no buffer
     Received 3795255 broadcasts, 2 runts, 0 giants, 0 throttles
     .....
Switch#


显示三层硬件交换统计
Switch#show interfaces {{type mod/port} | {port-channel number}} include switched
Switch#show interfaces gigabitethernet 9/5 | include switched
L2 Switched: ucast: 8199 pkt, 1362060 bytes - mcast: 6980 pkt, 371952 bytes
L3 in Switched: ucast: 3045 pkt, 742761 bytes - mcast: 0 pkt, 0 bytes mcast
L3 out Switched: ucast: 2975 pkt, 693411 bytes - mcast: 0 pkt, 0 bytes
 
 
验证邻接信息
Switch#show adjacency [{{type mod/port} |
{port-channel number}} | detail | internal | summary]
Switch#show adjacency gigabitethernet 9/5 detail
Protocol Interface                 Address
IP       GigabitEthernet9/5        172.20.53.206(11)
                                   504 packets, 6110 bytes
                                   00605C865B82
                                   000164F83FA50800
                                   ARP        03:49:31 


Debugging CEF操作
显示CEF的debug信息
Switch#debug ip cef {drops | access-list |
receive | events | prefix-ipc | table}
显示设计IPC的CEF debug信息
Switch#debug ip cef {ipc | interface-ipc}
执行扩展PING
Switch#ping ip
文章录入:admin    责任编辑:admin 
  • 上一篇文章:

  • 下一篇文章:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 |
    动易网络 本站为非营利公益性网站
    Copyright © 2007-2008 宝宝鱼(BBfish.net) All Rights Reserved
    声明:本站引用了因特网上的一些信息资源并对有明确来源的信息注明了出处,版权归原作者及原网站所有,如果您对本站信息资源版权的归属问题存有异议,请您致信bbfish.net(@)qq.com,我们会立即做出答复并将其删除。
    站长:bbfish.net
    信息产业部备案
    浙ICP备08005168号