三九宝宝网宝宝百科宝宝知识

思科路由交换的配置步骤以及步骤中命令详解

03月05日 编辑 39baobao.com

[华为单臂路由的配置方法步骤图]首先利用华为模拟器eNSP来设计逻辑网络拓朴图,有一台路由器AR1220,一台二层交换机S3700,二台PC主机。其之间用线缆连接并作好标注。在华为模拟器eNSP中打开终端配置交换机S370...+阅读

思科Cisco交换机、路由器设置命令Lzshihj_tz2f_3550 交换机口令设置:switch>enable ;进入特权模式switch#config terminal ;进入全局配置模式switch(config)#hostname;设置交换机的主机名switch(config)#enable secret xxx ;设置特权加密口令为 xxxswitch(config)#enable password xxx ;设置特权非密口令为 xxxswitch(config)#line console 0 ;进控制台口(Rs232)初始化switch(config-line)#line vty 0 4 ;进入虚拟终端virtual ttyswitch(config-line)#login ;允许登录switch(config-line)#password xx ;设置登录口令xxswitch#exit ;返回命令交换机VLAN设置:switch#vlan database ;进入VLAN设置switch(vlan)#vlan 2 ;建VLAN 2switch(vlan)#no vlan 2 ;删vlan 2switch(config)#int f0/1 ;进入端口1switch(config-if)#switchport access vlan 2 ;当前端口1加入VLAN 2switch(config-if)#switchport mode trunk ;设置为干线switch(config-if)#switchport trunk allowed vlan 1,2;设置允许的vlanswitch(config-if)#switchport trunk encap dot1q ;设置vlan中继switch(config)#vtp domain;设置发vtp域名switch(config)#vtp passwordswitch(config)#vtp mode serverswitch(config)#vtp mode client 交换机设置IP地址:switch(config)#interface vlan 1 ;进入vlan 1switch(config-if)#ip address;添加远程登录IPswitch(config)#ip default-gateway;添加默认网关 switch#dir flash: ;查看内存 交换机显示命令:switch#write ;写入保存 switch#show vtpswitch#show run ;查看当前配置信息switch#show vlan ;看VLANswitch#show interface ;显示所有端口信息 switch#show int f0/0 ;显示端口0的信息 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^路由器显示命令:router#show run ;显示接口7a64e58685e5aeb931333330346637router#show interface ;显示接口router#show ip route ;显示路由router#show cdp nei ;看邻居router#reload ;重新起动设置口令:router>enable ;进入特权模式router#config terminal ;进入全局配置模式router(config)#hostname;设置交换机的主机名router(config)#enable secret xxx ;设置特权加密口令为 xxxrouter(config)#enable password xxx ;设置特权非密口令为 xxxrouter(config)#line console 0 ;进控制台口(Rs232)初始化router(config-line)#line vty 0 4 ;进入虚拟终端virtual ttyrouter(config-line)#login ;允许登录router(config-line)#password xx ;设置登录口令xxrouter(config)# (Ctrl+z) ;返回特权模式router#exit ;返回命令 配置IP地址:router(config)#int s0/0 ;进行串Serail接口router(config-if)#no shutdown ;起动接口router(config-if)#clock rate 64000 ;设置时钟router(config-if)#ip address 10.1.1.1 255.255.0.0 ;设置IP地址和子网掩码router(config-if)#ip add 10.1.1.2 255.255.0.0 second;router(config-if)#int f0/0.1 ;进入子接口router(config-subif.1)#ip address;router(config-subif.1)#encapsulation dot1q;router(config)#config-register 0x2142 ;跳过配置文件router(config)#config-register 0x2102 ;正常使用配置文件router#reload ;重新引导 复制操作:router#copy running-config startup-config ;存配置router#copy running-config tftp ;上载router#copy startup-config tftprouter#copy tftp flash: ;特权模式下升级IOSrouter#copy tftp startup-config ;下载配置文件到nvramROM状态:Ctrl+Break ;进入ROM监控状态 rommon>confreg 0x2142 ;跳过配置,26 36 45xxrommon>confreg 0x2102 ;使用配置,恢复工作状态rommon>reset ;重新引导,等效于重开机rommon>copy xmodem:flash:;从console升级IOS rommon>IP_ADDRESS=10.65.1.2 ;设置路由器IPrommon>IP_SUBNET_MASK=255.255.0.0 ;设置路由器掩码rommon>TFTP_SERVER=10.65.1.1 ;指定TFTP服务器IPrommon>TFTP_FILE=c2600.bin ;所要下载的文件rommon>tftpdnld ;ROM监控状态下升级IOSrommon>dir flash: ;查看闪存中的内容rommon>boot ;引导IOS静态路由:ip route例:router(config)#ip route 10.1.0.0 255.255.0.0 10.2.1.1router(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2 动态路由:router(config)#ip routing ;启动路由router(config)#router rip ;启动RIP路由协议。

router(config-router)#network;配置范围,有的支持all。router(config-router)#negihbor;点对点 帧中继用。帧中继命令:router(config)# frame-relay switching ;使能帧中继交换router(config-s0)# encapsulation frame-relay ;使能帧中继router(config-s0)# frame-relay intf-type DCE ;DCE端(需要配虚电路)router(config-s0)# frame-relay local-dlci 20 ;配置虚电路号基本访问控制列表:router(config)#access-listpermit|denyrouter(config)#interface;default: deny anyrouter(config-if)#ip access-groupin|out ;default: out例:RB(config)#access-list 4 ...

如何才能学好路由交换?

报考 一个认证 比如 思科认证 华为 认证 这样就入门快了

学习内容

1.防火墙(正确的配置和日常应用)

2.系统安全(针对服务器的安全加固和WEB代码的安全加固以及各种应用服务器的组建,例如WEB MAIL FTP等等)

3.安全审核(入侵检测。日志追踪)

4.软考网络工程师,思科CCNA课程 华为认证等(网络基础知识。局域网常见故障排除和组建)

5.经验积累。

1、了解基本的网络和组网以及相关设备的使用;

2、windwos的服务器设置和网络基本配置;

能够静下心学习好上边的东西以后自己就会有发展和学习的方向了。这些都是基础东西,还没有涉及到系统内部结构、网络编程、漏洞研发等。。。学习东西不要浮躁!

《局域网一点通》

《网络安全从入门到精通》,其他相关资料自己在网上搜索。

怎么开始学习交换机和路由器配置

1、首先要了解整个网络拓扑和布线的原理,要配置这个必须有相关理论作基础,七层网络模型、路由器交换机的型号及其工作层面、级联数量、数据交换速率、还有是否支持特定的功能等等。

2、再看你要配置什么品牌的路由器和交换机,因为像一些常见品牌如思科、华为、锐杰等,它们的配置命令都是不一样的,虽然思想一样但是代码不一样,因为为了避免知识产权什么之类的原因。

3、如果要自学,上对应品牌的官方网站,一般都有配置手册的下载或者在线教程,上面可以了解具体的配置代码。最好自己有一定的实验环境,来多加练习,这本身就是个熟练的过程。

4、如思科、华为等大品牌在一些主要城市都会有培训班,因为本身网络工程师都会有考试并以此获取资格证,例如思科的CCNA、CCNP、CCIE等级别。如果可能的话,可以上一个初级培训班,一般价格在1000左右。

出来就基本可以胜任配置工作了。

思科交换路由实例配置!望高手解答!

主要步骤 第一步,交换机上配置VLAN 第二步,路由器R1上配置单臂路由 使VLAN2 PING通VLAN3(10.1.1.2 PING通10.2.2.2) 第三步,R

1、R

2、R3配置OSPF路由协议 使R1 与R3相互PING通 VLAN2和VLAN3能够与MAIL服务器和WWW服务器相互PING通 第四步,配置扩展访问列表,允许VLAN2的成员可以访问R3下的 MAIL服务器,不可以访问WEB服务器 第五步,在R1上的VLAN 2接口上应用扩展访问列表, 测试VLAN2的成员可以访问R3下的MAIL服务器, 不可以访问WEB服务器,测试VLAN3的成员没有访问限制 交换机上VLAN配置 Switch>en Switch#conf t Switch(config)#switchport f0/2 Switch(config-if)#switch mode access Switch(config-if)#swihch access vlan 2 //端口2划分到VLAN 2,VLAN 2会自动被创建 Switch(config-if)#exit Switch(config)#switchport f0/3 Switch(config-if)#switch mode access Switch(config-if)#swihch access vlan 3 //端口3划分到VLAN 3,VLAN 3会自动被创建 Switch(config-if)#exit Switch(config)#switchport f0/1 Switch(config-if)#switch mode trunk //端口1配置成干道 Switch(config-if)#end Switch# 交换机VLAN配置完毕 路由器R1上配置 Route>en Route#conf t Route(config)#hostname R1 R1(config)#int fa0/0 R1(config-if)#ino ip address R1(config-if)#no shutdown R1(config-if)#int fa0/0.2 //配置子接口,这里子接口号可以用其他数字 R1(config-subif)#Ienca dot1q 2 //dot1q封装,VLAN 2成员 R1(config-subif)#ip address 10.1.1.1 255.255.255.0 //VLAN2网关地址 R1(config-subif)#exit R1(config)#int fa0/0.3 R1(config-subif)#Ienca dot1q 3 R1(config-subif)#ip address 10.2.2.1 255.255.255.0 R1(config-subif)#exit R1(config)# 单臂路由配置完毕 R1(config)#int s0 R1(config-if)#ip address 172.16.1.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#clock rate 4000000 //同步串口DCE端配置速率为4兆,对端不配 R1(config-if)#exit R1(config)# 串口地址配置完毕 配置OSPF路由协议 R1(config)#router ospf 1 R1(config-router)#network 10.1.1.0 0.0.0.255 area 0 R1(config-router)#network 10.2.2.0 0.0.0.255 area 0 R1(config-router)#network 172.16.1.0 0.0.0.255 area 0 R1(config-router)#exit R1(config)# OSPF路由协议配置完毕 配置扩展访问列表 R1(config)#acc 110 permit tcp 10.1.1.0 0.0.0.255 host 202.101.2.2 eq 110 //允许访问MAIL服务器接收邮件端口 R1(config)#acc 110 permit tcp 10.1.1.0 0.0.0.255 202.101.2.2 eq 25 //允许访问MAIL服务器发送邮件端口 R1(config)#acc 110 deny tcp 10.1.1.0 0.0.0.255 202.101.2.1 eq 80 //拒绝访问服务器80端口 扩展访问列表配置完毕 在VALN2接口上应用扩展访问列表 R1(config)#int fa0/0.2 R1(config-subif)#ip access-group 110 in R1(config-subif)#end R1# 路由器R2上配置 Route>en Route#conf t Route(config)#hostname R2 R2(config)#int s0 R2(config-if)#ip address 172.16.1.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#int s1 R2(config-if)#ip address 192.168.1.1 255.255.255.0 R2(config-if)#iclock rate 4000000 //同步串口DCE端配置速率为4兆,对端不配 R2(config-if)#no shutdown R2(config-if)#exit R2(config)# 串口地址配置完毕 配置OSPF路由协议 R2(config)#router ospf 1 R2(config-router)#network 172.16.1.0 0.0.0.255 area 0 R2(config-router)#network 192.168.1.0 0.0.0.255 area 0 R2(config-router)#end R2# OSPF路由协议配置完毕 路由器R3上配置 Route>en Route#conf t Route(config)#hostname R3 R3(config)#int s1 R3(config-if)#ip address 192.168.1.2 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit 串口地址配置完毕 配置OSPF路由协议 R3(config)#router ospf 1 R3config-router)#network 202.101.2.0 0.0.0.255 area 0 R3config-router)#network 192.168.1.0 0.0.0.255 area 0 R3config-router)#end R3# OSPF路由协议配置完毕 全部配置完成 做测试工作 结束

以下为关联文档:

华为交换机ospf的配置方法步骤华为交换机ospf配置方法1、系统视图下启动OSPF进程请根据需求,在相应的华为路由器、华为交换机上进行以下配置。步骤 1执行命令system-view,进入系统视图。步骤 2 执行命...

请教华为路由器交换机配置命令我是用的思科的设备做的配置,与华为的原理一样,做参考。思科c2900交换机配置:switch>en switch#vlan database 创建vlan数据库 switch(vlan)#vlan 2 创建vlan2 switch(vlan)#ex...

思科路由器配置这个利用了Cisco路由器静态路由优先级高于动态路由的特点。(假设metric=1优先级最高) 1、 在路由器4.1上增加一条静态路由:ip route 192.168.3.2/32 0.0.0.0 metric 1(黑洞路由),...

思科路由器的配置1.配置以太网络接口的IP地址 Router>enable '进入特权模式 Password: '特权用户口令 Router# configure terminal '进入配置模式 Enter configuration commands� one per line...

思科路由器的详解CDP CISCO discovery protocol CISCO发现协议 并不是说能登陆邻居 而是如果邻居是CISCO的设备 可以查看信息 如型号,端口等信息 一般在#下打 sh cdp neighbor 就可以显示邻居...

思科路由器配置命令见详细要求config)#line con 0 config-line)#logging syn //命令同步,防止被输出信息打断 config-line)#exit 关于重置系统,在全局配置模式,修改寄存器的值,然后重启(relood) config)#config...

求教在3层交换机间实现 VLAN间路由功能的路由器配置命令详细正您好:在3层交换机间实现 VLAN间路由功能的路由器配置命令如下router interface fastethernet 0/0no ip addressno shutdown int fastehternet 0/0.1encapsultation dot1q 1ip...

华为产品清空交换机和路由器配置的步骤和命令楼主你所说的清空指的是恢复出厂的设置吧 一般路由 器华为adsl2+无线路由器的密码该怎么办? 按住reset (复位)按钮5 秒钟以上,恢复无线路由器的出厂设置。参考用户手册对路由器...

思科路由器中vlan的配置请大侠指教思科路由器中vlan的配置请大侠指教,掌握VLAN划分及路由器的配置:需要通过单臂路由才能是不同的vlan之间通信,具体配置就是进入子接口中封装802.1Q协议配置vlan的IP地址并且no s...

推荐阅读
图文推荐