显示交换机初始启动的状态
show version
show running-config
show interfaces 进入端口配置模式时候为interface,没有s
show interface xxx xxx为具体的端口
show run -整个配置的浓缩版
show interfaces ethenet 0/1
端口配置
interface type number
type包括serial,ethenet,token ring,fddi,hssi,loopback,dialer,null,async,bri,tunnel
number用来识别具体的单个端口
interface type slot/port 模块化端口表示法
exit 从当前端口配置模式退出
配置串口
configure term 进入全局配置模式
interface serial 0 指定某个端口
clock rate 64000 设置时钟频率(只在DCE端)
确定参数修改情况
show interface serial 0
开启或关闭端口
shutdown 人工关闭
no shutdown 人工打开
PS:废除一条命令的效果再其前面+no
解读端口状态
show interface serial 1
信息中
serial 1 is up,line protocol is up
载波监测 存活信息
正常:
operational...serial 1 is up,line protocol is up
DCE模拟同步信号(clock rate xxx)没有设置有可能:
Connection problem...serial 1 is up,line protocol is down
物理层连通没有,也许没有接线缆,也许线缆有问题
Interface problem...serial 1 is down,line protocol is down
管理性的shutdown把这个端口给关闭了
Disable...serial 1 is administratively down,line protocol is down
串口上用show controller命令
查看串口上面属于DCE还是DTE
show controller serial 0
如果显示dte,那么在另外一端就要设置clock rate xxx了