- 1、本文档共12页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
交换机配置复习
交换机 1、基本设置 (1)使能口令设置: switch(config)# enable password 密码 switch(config)# enable secret 密码 (2)虚拟终端连接口令设置: switch(config)# line vty 0 4 switch(config-line)# password 密码 switch(config-line)# login 1、基本设置 (3)管理接口IP地址设置: switch(config)# int vlan 1 switch(config)# ip address A.B.C.D switch(config)# no shut (4)设置交换机网关: switch(config)# ip default-gateway A.B.C.D 2、端口类型与安全设置 (1)端口类型设置: switch(config)# int f0/1 Switch(config-if)#switchport mode access (接入端口) Switch(config-if)#switchport mode trunk (中继端口) (2)端口安全设置: Switch1(config-if)#switchport port-security mac-address sticky 2、端口类型与安全设置 (2)端口安全设置: Switch1(config-if)#switchport port-security maximum 1 Switch1(config-if)#switchport port-security violation shutdown 3、vlan设置 (1) vlan的创建与删除: Switch(config)#vlan 10 Switch(config)#name vlan10 Switch(config)#no vlan 10 Switch#show vlan Switch#show vtp brief (2)vlan的划分: 单个接口: Switch(config)#int f0/1 Switch(config-if)#switchport access vlan 10 多个接口: Switch(config)#int range fa0/2 - fa0/9 Switch(config-if-range)# switchport access vlan 10 (4)跨交换机vlan通信: ①设置中继接口: switch1(config)# int f0/1 switch1(config-if)#switchport mode trunk (中继端口) switch2(config)# int f0/1 switch2(config-if)#switchport mode trunk (中继端口) ②中继接口配置: Switch(config-if)#switchport trunk allowed vlan ? add add VLANs to the current list all all VLANs except all VLANs except the following none no VLANs remove remove VLANs from the current list Switch(config-if)#switchport trunk native vlan 1-1005 (3)多个交换机VTP管理: Switch(config)#vtp domain 域名 Switch(config)#vtp mode ? client Set the device to client mode. server Set the device to server mode. transparent Set the device to transparent mode. Switch(config)#vtp password 密码 Switch#show vtp status (4)单臂路由设置: 前提:路由器与交换机相连的接口不能设置IP地址,交换机与路由器相连的接口要设置为中继端口。 ①开启路由器端口: Router(config)#int f0/1
文档评论(0)