学****目标
掌握CDP配置和使用方法
配置和使用方法
掌握模式口令配置方法
掌握接口参数配置方法
物理接口
Cisco路由器支持
两种类型的接口
逻辑接口
在特权模式下
前提模式:
命令:
configure terminal
功能:
进入全局配置模式
基本的配置步骤:
命令格式:
功能:
进入到接口配置模式
interface type slot
/port-adapter
/port
interface
type
number
Interface type
slot
/port
接口类型
端口、连接器或接口卡号
槽口号
端口号
端口适配器号
接口类型关键字和说明
关键字
接口类型
Bri
ISDN BRI接口。
Dialer
拨号接口。
以太网IEEE 。
100Mbps以太网接口。
Fddi
FDDI接口。
Loopback
环回接口。
Null
空接口。
port-channel
端口通道接口。
Serial
串行接口。
Tokenring
令牌环接口。
Tunnel
隧道接口。
命令:
interface ?
功能:
查看当前设备上已经
安装的接口的类型
命令:
interface type ?
功能:
查看指定type类型
接口的编号范围
命令:
no shutdown
功能:
激活一个接口
一般情况下,接口默认是被关闭的。
例重新激活以太网接口0/0。
Router(config)#interface 0/0
Router(config-if)#no shutdown
命令:
shutdown
功能:
关闭一个接口
Router(config)#interface loopback 0
环回接口的编号范围为0-2147483647。
例设置lookback接口0。
例删除loopback接口0。
Router(config)#no interface loopback 0
例显示loopback接口0状态。
Router#show interface loopback 0
(1)环回接口
Router(config)#interface null 0
例进入NULL接口配置。
例允许NULL接口发送ICMP的unreachable消息。
Router(config-if)#ip unreachables
例禁止NULL接口发送ICMP的unreachable消息
Router(config-if) #no ip unreachables
(2)空接口
NULL接口更多地用于网络数据流的过滤。
Router(config)#ip route null 0
例配置串口0的子接口。
Router(config)#interface serial
Router(config-subif)#ip address
(3)子接口
-配置接口描述
例为快速以太网接口0/0添加描述信息
Router(config)#interface 0/0
Router(config-if)#description link to primary work
在接口配置模式下
前提模式:
命令格式:
功能:
配置接口描述信息
为清除描述信息,使用该命令的no形式
no description
描述信息
description
string
ip路由交换技术2 来自淘豆网www.taodocs.com转载请标明出处.