八宝书库 > 文学其他电子书 > 路由器基本知识及应用实例(DOC格式) >

第6部分

路由器基本知识及应用实例(DOC格式)-第6部分

小说: 路由器基本知识及应用实例(DOC格式) 字数: 每页4000字

按键盘上方向键 ← 或 → 可快速上下翻页,按键盘上的 Enter 键可回到本书目录页,按键盘上方向键 ↑ 可回到本页顶部!
————未阅读完?加入书签已便下次继续阅读!



route…target import 100:1 ! Configure an additional import route…target for vrf2
import map vrf2_import ! Configure import route…map for vrf2

interface lo0
ip address 10。13。0。13 255。255。255。255

interface atm9/0/0 ! Backbone link to another Provider router

interface atm9/0/0。1 tag…switching
ip unnumbered loopback0
no ip directed…broadcast
tag…switching atm vpi 2…5
tag…switching ip
interface atm5/0
no ip address
no ip directed…broadcast
atm clock INTERNAL
no atm ilmi…keepalive
interface Ethernet1/0
ip address 3。3。3。5 255。255。0。0
no ip directed…broadcast
no ip mroute…cache
no keepalive
interface Ethernet5/0/1 ! Set up Ethernet interface as VRF link to a CE router
ip vrf forwarding vrf1
ip address 10。20。0。13 255。255。255。0

interface hssi 10/1/0
hssi internal…clock
encaps fr
frame…relay intf…type dce
frame…relay lmi…type ansi

interface hssi 10/1/0。16 point…to…point
ip vrf forwarding vrf2
ip address 10。20。1。13 255。255。255。0
frame…relay interface…dlci 16 ! Set up Frame Relay PVC subinterface as link to another
! ! CE router
router bgp 1 ! Configure BGP sessions
no synchronization
no bgp default ipv4…activate ! Deactivate default IPv4 advertisements
neighbor 10。15。0。15 remote…as 1 ! Define IBGP session with another PE
neighbor 10。15。0。15 update…source lo0

address…family vpnv4 unicast ! Activate PE exchange of VPNv4 NLRI
neighbor 10。15。0。15 activate
exit…address…family

address…family ipv4 unicast vrf vrf1 ! Define BGP PE…CE session for vrf1
redistribute static
redistribute connected
neighbor 10。20。0。60 remote…as 65535
neighbor 10。20。0。60 activate
no auto…summary
exit…address…family

address…family ipv4 unicast vrf vrf2 ! Define BGP PE…CE session for vrf2
redistribute static
redistribute connected
neighbor 10。20。1。11 remote…as 65535
neighbor 10。20。1。11 update…source h10/1/0。16
neighbor 10。20。1。11 activate
no auto…summary
exit…address…family

! Define a VRF static route
ip route vrf vrf1 12。0。0。0 255。0。0。0 e5/0/1 10。20。0。60

route…map vrf2_import permit 10 ! Define import route…map for vrf2。

2。2。4 日常维护
2。2。4。1 密码的恢复
恢复密码的请按如下步骤进行:
1。 用控制线连接终端机(或PC)和路由器的控制口。 
使用下面配置: 
o 9600 baud rate 
o No parity 
o 8 data bits 
o 1 stop bit 
o No flow control 

2。 如果还可以访问路由器; 用 show version 察看系统配置信息,并记录配置寄存器的地址,一般情况下,该地址为 0x2102 或 0x102。 
3。 如果不能够访问寄存器(因为没有登陆口令),则可以先假设配置寄存器的地址是0x2102,即使不对,也不会有什么问题。 
4。 按电源键关闭路由器,然后再打开。
5。 打开路由器电源60秒内,在仿真终端上使用Break Sequence 的组合键(ctrl…break),使路由器进入ROMMON。 
6。 在rommon 1》提示符后键入confreg 0x2142 使路由器从Flash启动,跳过 startup…configuration(密码就存在这里)
7。 在rommon 2》 提示符后渐入reset。 
8。 当系统询问:〃Would you like to enter the initial configuration dialog?'yes/no'〃, 键入 no 。
9。 在Router》提示符后键入enable。 
10。 键入configure memory 或者copy startup…config running…config ,将NVRAM 的内容拷贝到内存中。
特别注意: 不要键入 copy running…config startup…config 或者 write 命令,这会将路由器的配置清除。 
11。 键入 configure terminal 重新配置口令。 
12。 键入 enable secret  配置 enable secret 口令;例如: 
hostname(config)#enable secret cisco

13。 对应该正常开启的端口使用no shutdown 命令。 
14。 键入config…register 0x2102 (这个地址应该是在第二步中记录的地址) 
15。 使用Ctrl…z 或键入 end 离开配置模式 
16。 键入 write memory 或 copy running…config startup…config,保存配置。 
密码恢复过程示例 
Router》enable
Password:
Password:
Password:
% Bad secrets

Router》show version
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600…I…M); Version 12。3(3a); RELEASE SOFTWARE (fc2)
Copyright (c) 1986…2003 by cisco Systems; Inc。
piled Wed 15…Oct…03 02:21 by phanguye
Image text…base: 0x80008088; data…base: 0x80C524F8

ROM: System Bootstrap; Version 11。3(2)XA4; RELEASE SOFTWARE (fc1)

Router uptime is 3 minutes
System returned to ROM by abort at PC 0x802D0B60
System image file is 〃flash:c2600…i…mz。123…3a。bin〃〃

cisco 2611 (MPC860) processor (revision 0x202) with 26624K/6144K bytes of memory。
Processor board ID JAB031202NK (3878188963)
M860 processor: part number 0; mask 49
Bridging software。
X。25 software; Version 3。0。0。
Basic Rate ISDN software; Version 1。1。
2 Ethernet/IEEE 802。3 interface(s)
2 Serial(sync/async) network interface(s)
1 ISDN Basic Rate interface(s)
32K bytes of non…volatile configuration memory。
8192K bytes of processor board System flash partition 1 (Read/Write)
8192K bytes of processor board System flash partition 2 (Read/Write)

Configuration register is 0x2102

Router》



!……The router was just powercycled and during bootup a


!……break sequence was sent to the router。




*** System received an abort due to Break Key ***

signal= 0x3; code= 0x500; context= 0x813ac158
PC = 0x802d0b60; Vector = 0x500; SP = 0x80006030
rommon 1 》 confreg 0x2142

You must reset or power cycle for new config to take effect

rommon 2 》 reset

System Bootstrap; Version 11。3(2)XA4; RELEASE SOFTWARE (fc1)
Copyright (c) 1999 by cisco Systems; Inc。
TAC:Home:SW:IOS:Specials for info
C2600 platform with 32768 Kbytes of main memory


program load plete; entry point: 0x80008000; size: 0x6fdb4c

Self depressing the image : ###############################
##############################################################
##############################################################
##############################################################
############################### 'OK'


 Restricted Rights Legend

Use; duplication; or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the mercial puter Software Restricted
Rights clause at FAR sec。 52。227…19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and puter
Software clause at DFARS sec。 252。227…7013。

 cisco Systems; Inc。
 170 West Tasman Drive
 San Jose; California 95134…1706

Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600…I…M); Version 12。3(3a); RELEASE SOFTWARE (fc2)
Copyright (c) 1986…2003 by cisco Systems; Inc。
piled wed 15…Oct…03 02:21 by phanguye
Image text…base: 0x80008088; data…base: 0x80C524F8

cisco 2611 (MPC860) processor (revision 0x202) with 26624K/6144K bytes of memory。
Processor board ID JAB031202NK (3878188963)
M860 processor: part number 0; mask 49
Bridging software。
X。25 software; Version 3。0。0。
Basic Rate ISDN software; Version 1。1。
2 Ethernet/IEEE 802。3 interface(s)
2 Serial(sync/async) network interface(s)
1 ISDN Basic Rate interface(s)
32K bytes of non…volatile configuration memory。
8192K bytes of processor board System flash partition 1 (Read/Write)
8192K bytes of processor board System flash partition 2 (Read/Write)


 ……System Configuration Dialog ………

Would you like to enter the initial configuration dialog? 'yes/no': n

Press RETURN to get started!

00:00:19: %LINK…3…UPDOWN: Interface BRI0/0; changed state to up
00:00:19: %LINK…3…UPDOWN: Interface Ethernet0/0; changed state to up
00:00:19: %LINK…3…UPDOWN: Interface Ethernet0/1; changed state to up
00:00:19: %LINK…3…UPDOWN: Interface Serial0/0; changed state to down
00:00:19: %LINK…3…UPDOWN: Interface Serial0/1; changed state to down
00:00:20: %LINEPROTO…5…UPDOWN: Line protocol on Interface BRI0/0; changed state to down
00:00:20: %LINEPROTO…5…UPDOWN: Line protocol on Interface Ethernet0/0; changed state to up
Router》
00:00:20: %LINEPROTO…5…UPDOWN: Line protocol on Interface Ethernet0/1; changed state to up
00:00:20: %LINEPROTO…5…UPDOWN: Line protocol on Interface Serial0/0; changed state to down
00:00:20: %LINEPROTO…5…UPDOWN: Line protocol on Interface Serial0/1; changed state to down
00:00:50: %SYS…5…RESTART: System restarted ……
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600…IS…M); Version 12。3(3a); RELEASE SOFTWARE (fc2)
Copyright (c) 1986…2003 by cisco Systems; Inc。
piled wed 15…Oct…0302:21 by phanguye
00:00:50: %LINK…5…CHANGED: Interface BRI0/0; changed state to administratively down
00:00:52: %LINK…5…CHANGED: Interface Ethernet0/0; changed state to administratively down
00:00:52: %LINK…5…CHANGED: Interface Serial0/0; changed state to administratively down
00:00:52: %LINK…5…CHANGED: Interface Ethernet0/1; changed state to administratively down
00:00:52: %LINK…5…CHANGED: Interface Serial0/1; changed state to administratively down
00:00:53: %LINEPROTO…5…UPDOWN: Line protocol on Interface Ethernet0/0; changed state to down
00:00:53: %LINEPROTO…5…UPDOWN: Line protocol on Interface Ethernet0/1; changed state to down
Router》
Router》enable
Router#copy startup…config running…config
Destination filename 'running…config'?
1324 bytes copied in 2。35 secs (662 bytes/sec)
Router#
00:01:24: %LINEPROTO…5…UPDOWN: Line protocol on Interface BRI0/0:1; changed state to down
00:01:24: %LINEPROTO…5…UPDOWN: Line protocol on Interface BRI0/0:2; changed state to down
Router#configure terminal
Enter configuration mands; one per line。 End with CNTL/Z。
Router(config)#enable secret cisco

Router(config)#^Z
00:01:54: %SYS…5…CONFIG_I: Configured from console by console
Router#show ip interface brief

Interface      IP…Address        OK?     Method     Status                   Protocol
Ethernet0/0    10。200。40。37      YES     TFTP       administratively down    down
Serial0/0      unassigned        YES     TFTP       administratively down    down
BRI0/0         193。251。121。157   YES     unset      administratively down    down
BRI0/0:1       unassigned        YES     unset      administratively down    down
BRI0/0:2       unassigned        YES     unset      administratively down    down
Ethernet0/1    unassigned        YES     TFTP       administratively down    down
Serial0/1      unassigned        YES     TFTP       administratively down    down
Loopback0      193。251。121。157   YES     TFTP       up                       up
Router#configure terminal
Enter configuration mands; one per line。 End with CNTL/Z。
Router(config)#interface Ethernet0/0
Router(config…if)#no shutdown
Router(config…if)#
00:02:14: %LINK…3…UPDOWN: Interface Ethernet0/0; changed state to up
0

返回目录 上一页 下一页 回到顶部 0 0

你可能喜欢的