路由器OSPF动态路由配置命令.doc_第1页
路由器OSPF动态路由配置命令.doc_第2页
路由器OSPF动态路由配置命令.doc_第3页
路由器OSPF动态路由配置命令.doc_第4页
路由器OSPF动态路由配置命令.doc_第5页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

三层交换机(Csico3560)配置SwitchenSwitch#config tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname jaohuanji 修改名称jaohuanji(config)#vlan 10 创建VLANjaohuanji(config-vlan)#exitjaohuanji(config)#vlan 20 创建VLANjaohuanji(config-vlan)#exitjaohuanji(config)#int f0/10 进入端口配置模式jaohuanji(config-if)#switchport access vlan 10 将端口划分到VLAN中jaohuanji(config-if)#exitjaohuanji(config)#int f0/20 进入端口配置模式jaohuanji(config-if)#switchport access vlan 20 将端口划分到VLAN中jaohuanji(config)#Z%SYS-5-CONFIG_I: Configured from console by consolejaohuanji#show vlan 查看VLAN信息VLAN Name Status Ports- - - -1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/11, Fa0/12, Fa0/13 Fa0/14, Fa0/15, Fa0/16, Fa0/17 Fa0/18, Fa0/19, Fa0/21, Fa0/22 Fa0/23, Fa0/24, Gig0/1, Gig0/210 VLAN0010 active Fa0/1020 VLAN0020 active Fa0/201002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2- - - - - - - - - - -1 enet 100001 1500 - - - - - 0 010 enet 100010 1500 - - - - - 0 020 enet 100020 1500 - - - - - 0 01002 enet 101002 1500 - - - - - 0 0jaohuanji#config tEnter configuration commands, one per line. End with CNTL/Z.jaohuanji(config)#int vlan 10 进入VLAN10%LINK-5-CHANGED: Interface Vlan10, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to upjaohuanji(config-if)#ip address 192.168.1.1 255.255.255.0 配置VLAN10的虚拟接口IP地址jaohuanji(config-if)#no shut 开启端口jaohuanji(config-if)#exitjaohuanji(config)#int vlan 20 进入VLAN20%LINK-5-CHANGED: Interface Vlan20, changed state to upjaohuanji(config-if)#ip address 192.168.3.1 255.255.255.0 配置VLAN20的虚拟接口IP地址jaohuanji(config-if)#no shut 开启端口jaohuanji(config)#Z%SYS-5-CONFIG_I: Configured from console by consolejaohuanji#show ip route 查询路由表配置Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route jaohuanji#config tEnter configuration commands, one per line. End with CNTL/Z.jaohuanji(config)# router ospf 1 进入OSPF视图Jiaohuanji(config-router)#network 192.168.1.0 0.0.0.255 area 0 发布直连路由 直联网段 反掩码 所属骨干区域Jiaohuanji(config-router)#network 192.168.3.0 0.0.0.255 area 0 发布直连路由Jiaohuanji(config-router)#Z%SYS-5-CONFIG_I: Configured from console by consoleJiaohuanji#show ip route 查询路由表配置路由器1配置RouterenRouter#configConfiguring from terminal, memory, or network terminal? tEnter configuration commands, one per line. End with CNTL/Z.Router (config)#hostname R1 修改名称R1(config)#int f0/0 进入端口配置模式R1(config-if)#no shut 开启端口%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR1(config-if)#ip address 192.168.3.2 255.255.255.0 设置端口IPR1(config-if)#int serial 2/0 进入端口配置模式R1(config-if)#no shut 开启端口%LINK-5-CHANGED: Interface Serial2/0, changed state to downR1(config-if)#ip address 192.168.4.1 255.255.255.0 设置端口IPR1(config-if)#clock rate 64000 设置端口时钟R1(config)#Z%SYS-5-CONFIG_I: Configured from console by consoleR1#show ip route 查询路由表配置Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static routeGateway of last resort is not setC 192.168.3.0/24 is directly connected, FastEthernet0/0R1#config tEnter configuration commands, one per line. End with CNTL/Z.R1(config)#router ospf 1 进入OSPF视图R1(config-router)#network 192.168.3.0 0.0.0.255 area 0 发布直连路由R1(config-router)#network 192.168.4.0 0.0.0.255 area 0 发布直连路由R1(config-router)#Z%SYS-5-CONFIG_I: Configured from console by consoleR1#show ip route 查询路由表配置R2路由器配置RouterenRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R2 修改名称R2(config)#int f0/0 进入端口配置模式R2(config-if)#no shut 开启端口%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR2(config-if)#ip address 192.168.2.1 255.255.255.0 设置端口IPR2(config-if)#int serial 2/0 进入端口配置模式R2(config-if)#no shut 开启端口%LINK-5-CHANGED: Interface Serial2/0, changed state to upR2(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to upip adR2(config-if)#ip address 192.168.4.2 255.255.255.0 设置端口IPR2(config-if)#Z%SYS-5-CONFIG_I: Configured from console by consoleR2#show ip route 查询路由表配置Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static routeGateway of last resort is not setC 192.168.2.0/24 is directly connected, FastEthernet0/0C 192.168.4.0/24 is directly connected, Serial2/0R2#config tEnter configuration commands, one per line. End with CNTL/Z.R2(config)# router ospf 1 进入OSPF视图R2(config-router)#network 192.168.2.0 0.0.0.255 area 0 发布直连路由R2(config-router)#network 192.168.4.0 0.0.0.255 area 0 发布直连路由R2(config-router)#Z%SYS-5-CONFIG_I: Configured from console by consoleR2#show ip route 查询路由表配置Codes: C - connected, S - stati

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论