华为交换机配置步骤讲解.docx
- 文档编号:996922
- 上传时间:2022-10-15
- 格式:DOCX
- 页数:15
- 大小:24.02KB
华为交换机配置步骤讲解.docx
《华为交换机配置步骤讲解.docx》由会员分享,可在线阅读,更多相关《华为交换机配置步骤讲解.docx(15页珍藏版)》请在冰豆网上搜索。
华为交换机配置步骤讲解
BIOSLOADING...
CopyrighT(c)2008-2011HUAWEITECHCO,,LTD,(Ver248t^un262012,18:
54:
52)
pressctr1+btoenrerbootrommenu・*.0Auto-booting.,.
Decompressingimagefile.*・done
InirializefspTask
ppidevsysinitok
vrrpemddisable...
bfdemddisable*..
sepemddisable・*・
Hardsysteminitok
Begintostartthesystem,pleasewaiting
VOSVF5彳门亍工OK.
StarrupFileCheckOK
vosmonitorinit*..*,*..*.ok
cfminixadvan匚eok
patinitok
HAS2M1nitOK
vdsvfsirhthindokvRP_Rootbegin,,,
VRP_in111al1zeTaskbegin.・.
inittheDeviceLink
CFG(_planETrritbegin
CFM_Initbegin
CLi_cmdinitbegin■VRP_RegestAnLiNK€irdbegin
createtaskbegi门…….task1n1tbegin...
Recoverconfigurateon,,,ok!
PressENTERTogetstarted.
恢复出厂设置:
配置交换机的步骤:
1、设置管理VLAN及业务VLAN
Sys
Vlan1163//管理VLAN
Vlan1103//业务VLAN
设置交换机管理IP地址
ipaddress10.12031255.255.255.0
/////////////////////////////////////////////////////////////////////
management-vlan1571
interfacevlan1571
ipaddress10.120.211.1255.255.255.0
////////////////////////////////////////////
Switch#conterm
Switch(config)#interintervlan1166
Switch(config-if)#ipaddresss10.120.6.3255.255.255.0
Switch(config-if)#exit
Switch(config)#ipdefault-gateway10.120.6.254
幼儿园的交换机
vlan1103
arpdetectionenable
vlan1163
-
interfaceVIan-interface1163
ipaddress10.120_3-2255.255.255.0
#interfaceAuxl/0'/0ninterfaceEthernet1/0/1portaccessvlan1103loopback-detactionenablearprate-limitenablearprate-limit20
DHCP服务器210.36.64.80的设置:
新建作用域。
。
。
业务VLAN核心交换机端的设置:
1、
descriptionGuoJiaoChu.user1
ipaddress10.21.16.254255.255.255.0
dhcpselectrelay
dhcprelayserver-select210.36.64.80
2、
descriptionGuoJiaoChu.Mgr
ipaddress10.120.3.254255.255.255.0
3、
descriptionTO-[YouErYuan]
portlink-typetrunk
porttrunkallow-passvlan2241511//切记在该光口透传新增的业务VLAN1511interfaceGigabitEthernet5/0/14
descriptionTO-[GuoJiJiaoLiuCHu-2]
portlink-typetrunk
undoporttrunkallow-passvlan1
porttrunkallow-passvlan2to4094
//此处则因为透传了所有的VLAN而忽略了接入层交换机端的设置:
添加VLAN1103、VLAN1163
2、sysname
3、各交换机端口允许访问的VLAN将交换机级联口设置为trunk口:
interfaceEthernet0/0/24portlink-typetrunkporttrunkallow-passvlanall
将交换机端口口设置为access口:
///////////////////////////////////////////////////////
Switch#contermSwitch(config)#interEthernet0/0/1Switch(config-if)#switchportmodeaccessSwitch(config-if)#switchportaccessvlan1106
Switch#contermSwitch(config)#intergi1/0/1
Switch(config-if)#switchporttrunkencapsulationisl
//指定封装类型isl或dot1q
Switch(config-if)#switchportmodetrunk
Switch(config-if)#switchporttrunkallowvlan1166
校验以上设置:
Switch#showinterface…
Switch#showipinterface…
Switch#showrunning-configinterface•…
a、[ShangXueYuan.SW2]stpenable//启用STP
b、[ShuangXueYuan.SW4-Ethernet0/1]stpedged-portenable
〃将交换机的普通端口(级联口禁止设置为edged-port)设置为边缘端口,这样普通端口up或down时就不再把信息向整个网络广播。
c、[ShuangXueYuan.SW2]stpbpdu-protectiloon
//全局设置stpbpdu-protection后若某个边缘端口被接入交换机(该交换机是能发送STP的服务器)或有环路,则该端口会自动shutdown掉。
例如:
DownReason
BPDU-ProtectionBPDU-ProtectionBPDU-ProtectionBPDU-Protectiun
Ethernetl/0/2
Ethernet1/0/21
Ethernet1/0/23
Ethernet1/0/24
SysteinView:
returntoUserViewwithCtrl+Z.
_LiXueYuan,SW2]interEtherne11/0/2
.LiXueYuan.SW2-Ethernet1/0/2]undoshutdown'LiXueYuan*SW2-Ethernet1/0/2]interEthernet1/0/21.LiXueYuan,SW2-Ethernet1/0/21]lundoshutdown
d、[5po3.Sw02.4F-GigabitEthernet1/1/1]stproot-protection
〃只能在下行口设置,上行口不能做这样的设置。
4、认证方式为Scheme时的Telnet登录配置
使能设备的Telnet服务:
telnetserverenable//S5120
[Quidway]local-useradmin
[Quidway-luser-Iongway]passwordcipherabc123
[Quidway-luser-Iongway]service-typetelnetlevel3
//S5120设置VTY用户的命令级别:
authorization-attributelevel
[Quidway-luser-longway]quit
[Quidway]user-interfacevty04
[Quidway-ui-vty0-4]authentication-modescheme/password[Quidway-ui-vty0-4]setauthenticationpasswordcipherabc123
修改telnet用户登录后的用户级别:
?
?
?
?
?
?
[sw1]aaa
[sw1-aaa]local-useradminpasswordcipherabc123[sw1-aaa]local-useradminservice-typetelnet[sw1-aaa]quit
[sw1]user-interfacevty04[sw1-ui-vty0-4]authentication-modeaaa修改telnet用户登录后的用户级别:
[sw1-ui-vty0-4]userprivilegelevel3[sw1-ui-vty0-4]protocolinboundtelnet////////////////////////////////////////////////telnetserverenablelocal-useradminpasswordcipherabc123authorization-attributelevel3service-typetelnetservice-typetelnetlevel3quituser-interfacevty04authentication-modeschemesetauthenticationpasswordcipherabc123sup
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 华为 交换机 配置 步骤 讲解