【正文】
(ABCD 為以太網(wǎng)S0 的IP地址,XXXX為子網(wǎng)掩碼) encap X25ABC(。ABCD為對方路由器(如:S0)的IP 地址,XXXX為對方路由器(如:S0)) x25 htc X(配置最高雙向通道數(shù)。如果ping S0端口正常,ping IP地址即對方路由器端口IP地址不通,則可能是以下幾種情況引起的:1),重新與郵局核對();2),重新配置正確;3);4)本機或?qū)Ψ铰酚膳渲缅e誤。出現(xiàn)這種情況,一般有以下幾種可能:1)線路情況不好,或網(wǎng)卡、RJ45插頭接觸不良;2)x25 htc最高雙向通道數(shù)X的取值范圍和x25nvc 虛電路數(shù)X超出郵電局實際提供的數(shù)字。 CISCO路由器初始配置簡介 很多初學路由器知識的網(wǎng)友對路由器的初始配置可能感到很陌生,本人在初學時也很困惑,因為一下出來很多提問不知如何是好,下面將最近剛調(diào)試的一臺CISCO3640的初始配置整理出來與各位網(wǎng)友交流,如有疏漏之處,還請大家指正。 ,比如CISCO_SETUP,下一步選定連接時用COM1,下一步選定第秒位數(shù)9600,數(shù)據(jù)位8,奇偶校驗無,停止位1,。?39。[]39。 mask is /24 Do you want to configure Serial0/0 interface? [yes]: y 您想配置serial0/0接口嗎?選Y Some supported encapsulations are ppp/hdlc/framerelay/lapb/x25/atmdxi/smds Choose encapsulation type [hdlc]: 選擇封裝方式(默認的封裝方式是HDLC,您可根據(jù)與您的路由器相連選用的封裝類型來決定用什么樣的封裝類型 No serial cable seen. Choose mode from (dce/dte) [dte]: (因為沒有連串口線所以會讓您選擇設備類型) Configure IP on this interface? [yes]: y (在接口上配置IP) Configure IP unnumbered on this interface? [no]: IP adressess for this interface: 配置該接口的IP地址() Subnet mask for this interface [] : 配置該接口的子網(wǎng)掩碼.(,) Class B network is , 30 subnet bits。 mask is /30 The following configuration mand script was created: (把您的配置顯示出來) hostname aaa enable secret 5 $ul/V$ enable password RouterA line vty 0 4 password ccc no snmpserver ! ip routing no bridge 1 ! interface FastEthernet0/0 mediatype 100BaseX fullduplex ip adressess ! interface Serial0/0 encapsulation hdlc ip adressess ! interface FastEthernet0/1 mediatype 100BaseX fullduplex ip adressess dialerlist 1 protocol ip permit dialerlist 1 protocol ipx permit ! end 以下提示您是否保存這次設置 [0] Go to the IOS mand prompt without saving this config. [1] Return back to the setup without saving this config. [2] Save this configuration to nvram and exit. Enter your selection [2]: 2 選擇2保存設置并存入NVRAM中 Building configuration... [OK] Use the enabled mode 39。 mand to modify this configuration. Press RETURN to get started! 路由器重新啟動 00:00:08: %LINK3UPDOWN: Interface Serial0/0, changed state to down 00:00:08: %LINK3UPDOWN: Interface FastEthernet0/0, changed state to up 00:00:08: %LINK3UPDOWN: Interface FastEthernet0/1, changed state to up 00:00:09: %LINEPROTO5UPDOWN: Line protocol on Interface Serial0/0, changed state to down 00:00:09: %LINEPROTO5UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down 00:00:09: %LINEPROTO5UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down 00:03:18: %IP5WEBINST_KILL: Terminating DNS process 00:03:24: %SYS5RESTART: System restarted Cisco Internetwork Operating System Software IOS (tm) 3600 Software (C3640IM), Version (2)T, RELEASE SOFTWARE (fc1) Copyright (c) 19862000 by cisco Systems, Inc. Compiled Tue 16May00 12:26 by ccai RouterA 進入用戶模式 RouterAen Password: RouterA 進入全局模式 RouterAshow runningconfigure 查看現(xiàn)在運行的配置 Building configuration... Current configuration: ! version service timestamps debug uptime service timestamps log uptime no service passwordencryption ! hostname RouterA ! enable secret 5 $ul/V$ enable password bbb ! memorysize iomem 25 ip subnetzero ! interface FastEthernet0/0 ip adressess speed auto fullduplex ! interface Serial0/0 ip adressess clockrate 2000000 ! interface FastEthernet0/1 ip adressess speed auto fullduplex ! ip classless no ip server ! dialerlist 1 protocol ip permit dialerlist 1 protocol ipx permit ! line con 0 transport input none line aux 0 line vty 0 4 password ccc login ! end 現(xiàn)在您就完成了了一個新路由器的基本配置,接下來就可以進行進一步的詳細配置了5 IP路由協(xié)議實驗設計1. 配置接口IP,保證直連接口之間能互相通信 RouterenableRouterconfigure terminalEnter configuration mands, one per line. End with CNTL/Z.Router(config)hostname R1R1(config)interface fastethernet 0/0R1(configif)no shutdown%LINK5CHANGED: Interface FastEthernet0/0, changed state to upR1(configif)interface fastethernet 0/R1(configsubif)encapsulation dot1Q 12R1(configsubif)ip address R1(configsubifexitR1(config)interface loopback 0R1(configif)ip address R1(configif)Routerconfigure terminalEnter configuration mands, one per line. End with CNTL/Z.Router(config)hostname R2R2(config)interface fastethernet 0/0R2(configif)no shutdownR2(configif)interface fastethernet 0/R2(configsubif)encapsulation dot1Q 12R%LINK5CHANGED: Interface FastEthernet0/0, changed state to upR2(configsubif)ip address R2(configif)interface fastethernet 0/R2(configsubif)encapsulation dot1Q 23R2(configsubif)ip address R2(configif)RouterenableRouterconfigure terminalEnter configuration mands, one per line. End with CNTL/Z.Router(config)hostname R3R3(config)R3(config)interface fastethernet 0/0R3(configif)no shutdownR3(configif)interface fastethernet 0/R3(configsubif)encapsulation dot1Q 23R3(configsubif)ip address R3(configsubif)interface loopback 0R3(configif)ip address R1ping Type escape sequence to abort.Sending 5, 100byte ICMP Echos to , timeout is 2 seconds:.!!!!Success rate is 80 percent (4/5), roundtrip min/avg/max = 32/35/40 msR1R2ping Type escape sequence to abort.Sending 5, 100byte ICMP Echos to , timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), roundtrip min/avg/max = 40/44/52 msinterface fastethernet 0/0no shutdowninterface fastethernet 0/encapsulation dot1Q 23ip address R1 、R2 、R3 、直連線路