cisco设备配置基本知识.docx
《cisco设备配置基本知识.docx》由会员分享,可在线阅读,更多相关《cisco设备配置基本知识.docx(4页珍藏版)》请在冰点文库上搜索。
cisco设备配置基本知识
cisco设备配置的步骤大家掌握了吗?
相信只要按照下面的操作,一定可以达到我们想要的实验结果,更重要的就是希望大家已经掌握了cisco的配置知识。
cisco设备配置——前提配置:
enconftnoipdomain-lookuplinecon0loggsynexec-time00exithostr1
cisco设备配置——VTP配置:
vtpdomaindomain_namevtpmodeserver/client/transparentvtppasswordpasswordvtppruningvtpversion2
查看VTP配置:
showvtpstatus
cisco设备配置——VLAN配置:
vlandatabase(特权模式)vlan2namecaiwubuexitvlan2(全局模式)
查看VLAN配置:
showvlanbrief
cisco设备配置——VLANTrunk配置:
swittrunkencapsulationisl/dot1q/negotiate(接口里面,封装类型)switmodetrunk
查看配置:
showintf0/1swit
以太网通道:
intrangf0/1-f0/10switmodetrunkchanlacp;pagpchannel-group1modeonexit
cisco设备配置——三层交换配置:
iproutingnoswt(改为路由接口)iphelper-add192.168.1.1(DHCP服务器地址)
cisco设备配置——PVST+配置:
1.spanvlan2,4-6pri4096(倍数0-32768)2.rootpri/secspanvlan2cost150(0-255)spanvlan2por*
查看配置:
showspanshowspanvlan*d
cisco设备配置——HSRP配置:
intvlan2ipadd192.168.1.1255.255.255.0stan2ip192.168.1.254(虚拟的IP地址)stan2pri150(0-255)stan2preestan2trackintf1/0100
查看HSRP:
showstanb
cisco设备配置——ACL配置:
标准:
acc1(1-99)per(preden)source(数据源地址)
intf0/0ipnatinsideintf1/0ipnatoutsideintf0/0ipacc1in
扩展:
acc101(100-199)per(pre/den)protocol(协议)源地址目标地址--
命名:
ipaccstan/exttest
per/denhost192.168.1.1
定时:
time-rangemytie
perwee8:
30to17:
30
acc.......time-rangemytie
查看:
showacc
cisco设备配置——NAT配置:
静态:
ipnatinssousta192.168.100.261.159.62.136
端口映射:
ipnatinssoustatcp192.168.100.28061.159.62.1318080extendable
动态:
acc1per192.168.1.00.0.0.255
ipnatpooltest061.159.62.13162.159.62.190netmask255.255.255.192ipnatinssoulist1pooltest0overloadPAT:
acc1per10.1.1.00.0.0.2551.ipnatpooltest161.159.62.13161.159.62.131netmask255.255.255.148ipnatinssoulist1pooltest1overload2.ipnatinssoulist1intf0/0overload
cisco设备配置——RIP配置:
routerripver2noau-network192.168.1.0-----
cisco设备配置——OSPF配置:
routerospf1router-id1.1.1.1network10.0.0.00.0.0.3area0
末梢区域:
area1stub
完全末梢区域:
area1stubno-su
ness:
area1nssa
完全ness:
area1nssano-su
路由重分发:
routerripredospf1metric10routerospf1redripsubnetsdef-inorig(默认)redstasubnets(静态)redconnsubnets(直连)
第4页共4页
免责声明:
图文来源于网络搜集,版权归原作者所以
若侵犯了您的合法权益,请作者与本上传人联系,我们将及时更正删除。