常用网络设备配置命令及配置实例.pdf
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《常用网络设备配置命令及配置实例.pdf》由会员分享,可在线阅读,更多相关《常用网络设备配置命令及配置实例.pdf(7页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、常用网络设备配置命令及配置实例常用网络设备配置命令及配置实例计算机命令:PCAlogin:root;使用 root 用户password:linux;口令是 linux#shutdown-hnow;关机#init0;关机#logout#login#ifconfig;显示 IP 地址#ifconfigeth0netmask;设置 IP 地址#ifconfigeht0netmaskdown;删除 IP 地址#routeadd0.0.0.0gw#routedel0.0.0.0gw#routeadddefaultgw;设置网关#routedeldefaultgw;删除网关#route;显示网关#pin
2、g#telnet;建立 telnet 之前先 ping 一下路由器显示命令:router#showrun;显示接口router#showinterface;显示接口router#showiproute;显示路由router#showcdpnei;瞧邻居router#reload;重新起动设置口令:routerenable;进进特权模式router#configterminal;进进全局配置模式router(config)#hostname;设置交换机的主机名router(config)#enablesecretxxx;设置特权加密口令为xxxrouter(config)#enablepassw
3、ordxxx;设置特权非密口令为xxxrouter(config)#lineconsole0;进操纵台口(Rs232)初始化router(config-line)#linevty04;进进虚拟终端 virtualttyrouter(config-line)#login;准许登录router(config-line)#passwordxx;设置登录口令 xxrouter(config)#(Ctrl+z);返回特权模式router#exit;返回命令配置 IP 地址:router(config)#ints0/0;进行串 Serail 接口router(config-if)#noshutdown;起
4、动接口router(config-if)#clockrate64000;设置时钟router(config-if)#ipaddress10.1.1.1255.255.0.0;设置 IP 地址和子网掩码router(config-if)#ipadd10.1.1.2255.255.0.0second;router(config-if)#intf0/0.1;进进子接口router(config-subif.1)#ipaddress;router(config-subif.1)#encapsulationdot1q;router(config)#config-register0 x2142;跃过配置文
5、件router(config)#config-register0 x2102;正常使用配置文件router#reload;重新引导复制操作:router#copyrunning-configstartup-config;存配置router#copyrunning-configtftp;上载router#copystartup-configtftprouter#copytftpflash:;特权模式下升级 IOSrouter#copytftpstartup-config;下载配置文件到 nvramROM 状态:Ctrl+Break;进进 ROM 监控状态rommonconfreg0 x2142;
6、跃过配置,263645xxrommonconfreg0 x2102;使用配置,恢复工作状态rommonreset;重新引导,等效于重开机rommoncopyxmodem:flash:;从 console 升级 IOSrommonIP_ADDRESS=10.65.1.2;设置路由器 IPrommonIP_SUBNET_MASK=255.255.0.0;设置路由器掩码rommonTFTP_SERVER=10.65.1.1;指定 TFTP 效劳器 IPrommonTFTP_FILE=c2600.bin;所要下载的文件rommontftpdnld;ROM 监控状态下升级 IOSrommondirfla
7、sh:;查瞧闪存中的内容rommonboot;引导 IOS静态路由:iproute 例:router(config)#iproute0.0.0.00.0.0.01.1.1.2动态路由:router(config)#iprouting;启动路由router(config)#routerrip;启动 RIP 路由协议。router(config-router)#network;配置范围,有的支持 all。router(config-router)#negihbor;点对点帧中继用。帧中继命令:router(config)#frame-relayswitching;使能帧中继交换router(con
8、fig-s0)#encapsulationframe-relay;使能帧中继router(config-s0)#frame-relayintf-typeDCE;DCE 端(需要配虚电路)router(config-s0)#frame-relaylocal-dlci20;配置虚电路号全然访咨询操纵列表:router(config)#access-listpermit|denyrouter(config)#interface交换机显示命令:switch#write;写进保持switch#showvtpswitch#showrun;查瞧当前配置信息switch#showvlan;瞧 VLANswit
9、ch#showinterface;显示所有端口信息switch#showintf0/0;显示端口 0 的信息交换机全然状态:switch:;ROM 状态,路由器是rommonhostname;用户模式hostname#;特权模式hostname(config)#;全局配置模式hostname(config-if)#;接口状态交换机口令设置:switchenable;进进特权模式switch#configterminal;进进全局配置模式switch(config)#hostname;设置交换机的主机名switch(config)#enablesecretxxx;设置特权加密口令为xxxswit
10、ch(config)#enablepasswordxxx;设置特权非密口令为xxxswitch(config)#lineconsole0;进操纵台口(Rs232)初始化switch(config-line)#linevty04;进进虚拟终端 virtualttyswitch(config-line)#login;准许登录switch(config-line)#passwordxx;设置登录口令 xxswitch#exit;返回命令交换机 VLAN 设置:switch#vlandatabase;进进 VLAN 设置switch(vlan)#vlan2;建 VLAN2switch(vlan)#no
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 常用 网络设备 配置 命令 实例
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内