思科2950交换机相关配置
上一篇 / 下一篇 2007-03-21 08:36:59 / 个人分类:网管资料
Cz5a4LX$V Ru0思科2950交换机相关配置
*K5g0j_t*r B0基本操作寻梦社区门户5M$I]hN
寻梦社区门户 thE`'R }
2950(config)#int vlan1寻梦社区门户1n wP)C:M
2950(config-if)#ip address 192.168.1.100 255.255.255.0(VLAN1里面设置IP地址)
(I7z C,C_&v;D&| `K02950(config)#ip default-gateway 192.168.1.1 (设置默认网关)
@+rD e:{C$Q02950(config)#ip name-server 192.168.1.1 (设置域名服务器)
;R_ _W4["h+]p[02950(config)#ip domain-name wqs.com (设置域名)
q-f#l_5mb){f wa0 寻梦社区门户R-ysB&nB0f
U"xxWQ0端口配置寻梦社区门户/DB)nv'r*n(Z
:e0RMT'dxyo$@Y02950(config)#int f0/1 (进入接口)寻梦社区门户CfNo$|A*M
2950(config-if)#speed 100 (设置该接口速率为100Mb/s)
~{}A)A-jKt02950(config-if)#duplex ? 寻梦社区门户4Z8vLKW2skO
寻梦社区门户6`'P,SpF.Z+P/JM
auto Enable AUTO duplex configuration
GVbLos/Sqs0full Force full duplex operation寻梦社区门户7d|"_wV7FS
half Force half-duplex operation2950(config-if)#descrīption to_router1
(j$het$w8B z9j#W02950(config-if)#descrīption to_router1 (设置端口描述)寻梦社区门户J c5V T;A gh
2950#show interfaces fastethernet1 [status](查看端口配置结果和状态)
j `7E8Q$C2xYW-Z0 寻梦社区门户+},Zk|EWm#N+^ yK
MAC地址表相关命令
hde&[ K^0
8I:Ad/Wz#@|02950(config)#mac-address-table aging-time 100 (设置超时时间为100S)寻梦社区门户sFZW#C2U/SD
2950(config)#mac-address-table permanent 000.0c01.bbcc f0/3 (加入永久地址)寻梦社区门户-xN~?qfSQaC
2950(config)#mac-address-table restricted static 0000.0c02.bbcc f0/6 f0/7 (加入静态地址)
m#T%Dh?-P$mT8e02950#show mac-address-table (查看整个MAC地址表)
@j)hHB?!vx)W~E02950#clear mac-address-table restricted static (清除限制性MAC址表)
'F5B$P/o*Z2o:Y:p6X;I\b0 寻梦社区门户C)S.E7LN Wp
VTP的配置
4[9v#l;A2w,U0 寻梦社区门户yA(gg(DmB1S0Y
2950#vlan database (进入VLAN配置模式)寻梦社区门户J!P'|\v%H
2950(vlan)#vtp ? (查看VTP的子命令)
}7S'u'P'pnR8In+{2I.H0domain Set the name of the VTP administrative domain.寻梦社区门户dUD$vDp3bX
client Set the device to client mode.
$]0v7Z/F)d#\ i0server Set the device to server mode.
*G.jB9B)I\+B0transparent Set the device to transparent mode.寻梦社区门户!{]eMqA @~4M'nQ:w
password Set the password for the VTP administrative domain.
]!`h r{ S0j02950(vlan)#vtp domain server (设置本交换机为SEVER模式)
&N