下载此文档

网络工程师-路由器交换机相关配置精华大全.doc


文档分类:IT计算机 | 页数:约24页 举报非法文档有奖
1/24
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/24 下载此文档
文档列表 文档介绍
网工路由交换相关配置
思科2950交换机相关配置
基本操作
2950(config)#int vlan1
2950(config-if)#ip address (VLAN1里面设置IP地址)
2950(config)#ip default-gateway (设置默认网关)
2950(config)#ip name-server (设置域名服务器)
2950(config)#ip domain-name (设置域名)
端口配置
2950(config)#int f0/1 (进入接口)
2950(config-if)#speed 100 (设置该接口速率为100Mb/s)
2950(config-if)#duplex ?
auto Enable AUTO duplex configuration
full Force full duplex operation
half Force half-duplex operation2950(config-if)#description to_router1
2950(config-if)#description to_router1 (设置端口描述)
2950#show interfaces 1 [status] (查看端口配置结果和状态)
MAC地址表相关命令
2950(config)#mac-address-table aging-time 100 (设置超时时间为100S)
2950(config)#mac-address-table permanent . f0/3 (加入永久地址)
2950(config)#mac-address-table restricted static . f0/6 f0/7 (加入静态地址)
2950#show mac-address-table (查看整个MAC地址表)
2950#clear mac-address-table restricted static (清除限制性MAC址表)
VTP的配置
2950#vlan database (进入VLAN配置模式)
2950(vlan)#vtp ? (查看VTP的子命令)
domain Set the name of the VTP administrative domain.
client Set the device to client mode.
server Set the device to server mode.
transparent Set the device to transparent mode.
password Set the password for the VTP administrative domain.
2950(vlan)#vtp domain server (设置本交换机为SEVER模式)
2950(vlan)#vtp domain wqs (设置域名)
2950(vlan)#vtp pruning (启动修剪模式)
2950#show vtp status (查看VTP设置信息)
配置VLAN TRUNK端口
2950(config)#int f0/11 (进入F端口)
2950(config-if)#switchport mode trunk (设置该端口为TRUNK模式)
2950(config-if)#switchport trunk encapsulation {dot1q | isl | negotiate }(设置TRUNK封装)
创建VLAN
2950#vlan database (进入VLAN配置模式)
2950(vlan)#vlan 2 (创建VLAN 2)
VLAN 2 added:
Name:VLAN0002 (系统默认名)
2950(vlan)#vlan 3 name wg_bisheng (创建VLAN 3,名为网工必胜)
VLAN 3 added:
Name:wg_bisheng
2950(config)#int f0/9 (进入接口配置模式)
2950(config-if)#switchport mode access (ESS模式)
2950(config-if)#switchport access vlan 2 (把端口9分配给VLAN2)
2950(config-if)#int f0/8
2950(config-if)#switchport mode access
2950

网络工程师-路由器交换机相关配置精华大全 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数24
  • 收藏数0 收藏
  • 顶次数0
  • 上传人sxlw2015
  • 文件大小165 KB
  • 时间2018-06-23