思科命令。

思科

>是用户模式(相当于华为的用户视图)

#是特权模式(相当于华为的系统视图)

(config-if)是接口模式

router>enable (进入特权模式,需要密码)

router#config terminal (进入全局配置模式)

router#reload (重启设备)

router#write (保存配置)

router#exit (返回上级相当于华为的quit)

router#show version (查看版本)

router#show ip interface briefshow interface f0/0(接口名) (查看设备接口信息)

router#show mac-address-table (查看mac地址表)

router#show ip route (查看路由表)

router#show running-config (查看RAM中的临时配置)

router#show startup-config (查看NVRAM中的永久配置)

router(config)#hostname xxx (修改设备主机名)

router(config)#enable password xxx (设置特权口令)

router(config)#no ip domain lookup (不允许路由器缺省使用DNS解析命令)

router(config)#Service password-encryptio (对所有在路由器上输入的口令进行暗文加密)

配置telnet服务

router(config)#line vty 0 4 (进入设置telnet服务模式)

router(config-line)#password xxx (设置 telnet 的密码)

router(config-line)#login (使能可以登陆)

配置console服务

router(config)#line console 0 (进入console的服务模式)

router(config-line)#password xxx (要设置 console 的密码)

router(config-line)#login (使能可以登陆)

划分vlan

router(config)#vlan 10 (创建vlan10)

// 进入接口

router(config)# int G1/0/1 (进入接口)

router(config)# switchport access vlan 10 (将该接口划分到vlan10)

VTP

VTP即VLAN中继协议,也被称为虚拟局域网干道协议,是思科私有协议。VTP有3种模式:服务器模式(Server);客户机模式(Client);透明模式(Transparent)。

    !Server模式:提供、学习、转发VTP消息(包括VLAN ID和名字信息);

    可以添加、删除和更改VLAN VLAN信息写入NVRAM。

    ! Client模式:请求、学习、转发VTP消息;

    不可以添加、删除和更改VLAN VLAN信息不会写入NVRAM。

    !Transparent模式:不提供、不学习VTP消息;

    转发VTP消息;

    可以添加、删除和更改VLAN,只在本地有效VLAN信息写入NVRAM。

新交换机出厂时的默认配置是预配置为VLAN1,VTP 模式为服务器。

switch(config)#vtp domain (创建并命名vtp)

switch(config)# vtp mode server | client | transparent  (配置交换机的VTP模式) 

switch (config) # vtp password password  (配置VTP密码)

switch# show vtp status (查看VTP配置信息)

不同厂商光模块对接,cisco端口兼容

//进入光模块接口

transceiver permit pid all (打开端口模块兼容性)

// 身边暂时没有CISCO配套的光模块,这种情况下,可以通过临时关闭光模块检测的功能来实现未认证的光模块接入

cisco(int-conf)service unsupported-transceiver (解决Cisco设备光模块安全密钥机制,需要手打)

cisco(int-conf)no errdisable detect cause gbic-invalid (解决Cisco设备光模块安全密钥机制,需要手打)

cisco(int-conf)speed nonegotiate (取消协商)

需要保存,然后光模块重插

show interfaces transceiver detail 查看光纤是否启用

N5K设备整机替换

升级前如设备有配置,使用write erase清空配置后重启设备,或者手动删掉所有配置。

// 在copy到本地目录后升级版本:

Install all kickstart bootflash:/n6000-uk9-kickstart.6.0.2.N2.5.bin system bootflash:/n6000-uk9.6.0.2.N2.5.bin

// 如有license,需要升级

install license bootflash:MDSXXXXXXXXX.lic

// 查看是否升级成功

show license usage

// 加载配置文件

copy bootflash:config.txt running-config

// 保存现有配置

copy running-config startup-config

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值