ENBM

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

ENBM
进入特权模式switch.>enable
进入全局配置模式switch. # config terminal
进入接口配置模式switch. (config) # interface fo/x
进入line模式switch. (config) # line console o
设置交换机的主机名sw (config) # hostname 主机名
设置交换机明文密码sw (config) # enable password 口令
设置交换机密文密码sw (config) # enable secret 密码
设置交换机控制台密码sw (config) # line console 0
sw(config-line) # password 口令
sw(config-line) # login
退一步exit
退回到特权模式end
设置交换机IP地址sw(config) # interface vlan 1
sw(config-if) #ip address IP地址掩码
sw(config-if) #no shutdown 接口开启
设置交换机网关sw(config) #ip default-gateway IP地址
保存配置sw#write
Sw#copy running-config startup-config
恢复出厂默认值sw#erase startup-config
Sw#reload
查看交换机配置sw# show running-config
查看mac地址表sw# show mac-address-table
查看vlan信息sw# show vlan
查看邻居cisco设备信息sw# show cdp neighbors
关闭shutdown
开启no shutdown
创建vlan sw#vlan database
Sw(vlan)# vlan vlan-id name vlan-name
删除vlan sw#vlan database
Sw(vlan)# no vlan vlan-id
将端口添加到vlan sw(config) # interface fo/x
sw(config-if)#switchport access vlan vlan-id
将端口从某vlan中删除sw(config)# interface fo/x
sw(config-if)#no switchport access vlan vlan-id
批量添加端口到某个vlan sw(config) # interface range fo/x - Y
sw(config-if-range)# switchport access vlan vlan-id 配置某个接口为中继模式sw(config) # interface fo/x
sw(config-if)#switchport mode trunk 永久为中继模式
sw(config-if)#switchport mode access 永久为接口模式查看路由器端口信息R#show interface fo/x
查看某个端口信息(交换机)sw(config) #show interface fo/x switchport
从trunk中删除某个vlan sw(config) # interface fo/x
sw(config-if)#switchport trunk allowed vlan remove vlan-ID 在trunk中添加某个vlan sw(config) # interface fo/x
sw(config-if)#switchport trunk allowed vlan add vlan-id
配置默认路由Router(config)#ip route 0.0.0.0 0.0.0.0 下一跳地址
配置静态路由Router(config)#ip route目标网段掩码下一跳地址
配置路由器接口IP地址Router(config)#ip address IP地址掩码
Router(config)#no shutdown
配置路由器子接口Router(config)# interface 子接口
Router(config-subif)#encapsulation dotlq vlan-id
Router(config-subif)#ip address IP地址子网掩码
配置ripV1路由协议Router(config)#router rip
Router(config-router)#network 主网络号
配置ripV2路由协议Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#no auto-summary
Router(config-router)#network 主网络号
设置VTY密码Router(config)#line vty 0 4
Router(config-line)#login
Router(config-line)#password 口令
下载路由器中的IOS Route#copy flash tftp
上传IOS到路由器中Route#copy tftp flash。

相关文档
最新文档