最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 正文

思科交换机2950常用配置及说明

来源:动视网 责编:小OO 时间:2025-09-22 23:41:55
文档

思科交换机2950常用配置及说明

基本操作2950(config)#intvlan12950(config-if)#ipaddress192.168.1.100255.255.255.0(VLAN1里面设置IP地址)2950(config)#ipdefault-gateway192.168.1.1(设置默认网关)2950(config)#ipname-server192.168.1.1(设置域名服务器)2950(config)#ipdomain-namewqs.com(设置域名)端口配置2950(config)#intf0/1
推荐度:
导读基本操作2950(config)#intvlan12950(config-if)#ipaddress192.168.1.100255.255.255.0(VLAN1里面设置IP地址)2950(config)#ipdefault-gateway192.168.1.1(设置默认网关)2950(config)#ipname-server192.168.1.1(设置域名服务器)2950(config)#ipdomain-namewqs.com(设置域名)端口配置2950(config)#intf0/1


基本操作

2950(config)#int vlan1

2950(config-if)#ip address 192.168.1.100 255.255.255.0 (VLAN1里面设置IP地址)

2950(config)#ip default-gateway 192.168.1.1 (设置默认网关)

2950(config)#ip name-server 192.168.1.1 (设置域名服务器)

2950(config)#ip domain-name wqs.com (设置域名)

端口配置

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 operation

2950(config-if)#description to_router1 (设置端口描述)

2950#show interfaces fastethernet1 [status] (查看端口配置结果和状态)

MAC地址表相关命令

2950(config)#mac-address-table aging-time 100 (设置超时时间为100S)

2950(config)#mac-address-table permanent 000.0c01.bbcc f0/3 (加入永久地址)

2950(config)#mac-address-table restricted static 0000.0c02.bbcc 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 (设置该接口为ACCESS模式)

2950(config-if)#switchport access vlan 2 (把

端口9分配给VLAN2)

2950(config-if)#int f0/8

2950(config-if)#switchport mode access

2950(config-if)#switchport access vlan 3

2950(config-if)#end

生成树协议的配置

生成树负载均衡实现方法(感谢黑客天使提醒)

1 使用STP端口权值实现。

2 使用STP路径值实现

2950(config)#int f0/11

2950(config-if)#spanning-tree vlan 2 port-priority 10 (将VLAN2的端口权值设为10)

2950(config-if)#spanning-tree vlan 2 cost 30 (设置VLAN2生成树路径值为30)

文档

思科交换机2950常用配置及说明

基本操作2950(config)#intvlan12950(config-if)#ipaddress192.168.1.100255.255.255.0(VLAN1里面设置IP地址)2950(config)#ipdefault-gateway192.168.1.1(设置默认网关)2950(config)#ipname-server192.168.1.1(设置域名服务器)2950(config)#ipdomain-namewqs.com(设置域名)端口配置2950(config)#intf0/1
推荐度:
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top