【正文】
apip 192.2O0.10.1 110101 broadcast ! Interface pointto-point ip address 192..3 255.255. x25 map ip 192.200. 110102 broadcast ! router rip network 192.2O0. network 192.20O. !. Frame Relay幀中繼是一種高性能的WAN協(xié)議,它運(yùn)行在OSI參考模型的物理層和 數(shù)據(jù)鏈路層。PSE是公共網(wǎng)絡(luò)的主干交換機(jī)。 Router# show controllers e1 e1 O/O is up. Applique type is Channelized E1- unbalanced Framing is CRC4, Line Code is HDB3 NO alarms detected. Data In current Interval(725 seconds elapsed): O Line Code Violations, 0 Path Code Violations O Slip Secs, O Fr Loss Sedc, 0 Line Err Secs, O Degraded Mins 0 Errored Secs, 0 Bursty Err Secs, O Severely Err Secs, 0 Unavail Secs total Data(last 24 hours)O Line Code Violations,O Path Code Violations。4.使用網(wǎng)絡(luò)地址翻譯(NAT)NAT(Network Address Translation)起到將內(nèi)部私有地址翻譯成外部合法的全局地址的功能,它使得不凡有合法P地址的用戶可以通過(guò)NAT訪問(wèn)到外部Internet.當(dāng)建立內(nèi)部網(wǎng)的時(shí)候,建議使用以下地址組用于主機(jī),這些地址是由Network Working Group(RFC 1918)保留用于私有網(wǎng)絡(luò)地址分配的. 3.router(config)# 在router#提示符下鍵入。接下來(lái),系統(tǒng)會(huì)對(duì)每個(gè)接口進(jìn)行參數(shù)的設(shè)置。 以下在Router /,將其路由到地址為 。所建的這兩個(gè)用戶的password必須相同。路由器設(shè)置如下: Router1: Interface Serial0 encapsulation x25 ip address 192.2O0. 255.255.255.O x25 address1 10l0l x25 htc 16 x25 nvc 2 x25 map ip 192.2O0.10.2 110102 broadcast x25 map ip 192.200. 10.3 110103 broadcast !Router2: Interface SerialO encapsulation x25 ip address 192.20O. 255.255. x25 address 110102 x25 htc 16 x25 nvc 2 x25 map ip l92.200.10.1 11O10l broadcast x25 map ip 192.200.10.3 11O103 broadcast !Router: Interface SerialO encapsulation x25 ip address 192.2O0. 255.255.255.0 x25 address 110103 x25 htcl6 x25 nvc 2 x25 map ip .10.1 11O1O1 broadcast x25 map lp .10.2 11O102 broadcast! 相關(guān)調(diào)試命令 clear x25-ve show Interfaces serial show x25 map show x25 routeshow x25 ve 在以下實(shí)例中路由器 router1和router2均通過(guò)svc與 router連接,但router1和router2不通過(guò)svc直接連接,此三個(gè)路由器的串口運(yùn)行RIP路由協(xié)議,使用了子接口的概念。它是路由器和幀中繼交換機(jī)之間信令標(biāo)準(zhǔn),提供幀中繼管理機(jī)制。T 5ESS switch type for the (ISDN PRI only)Primarydms100NT DMS100 switch type for the (ISDN PRI only)New ZealandBasicnznet3New Zealand Net3 switches 實(shí)現(xiàn)DDR(dialondemand routing)實(shí)例:設(shè)置如下:Routerl: hostname routerl user router2 password cisco ! isdn switch-type basic-net3 ! Interface bri O iP address encapsulation ppp dialer map lp 192.200.10.2 name router2 572 dialer load-threshold 8O ppp multilink dialergroup 1 ppp atlthentication chap ! dialer-list 1 protocol ip permit !Router2: hostname router2 user router1 password clsco ! isdn switch-type basic-net3 ! Interface bri O ip address 192.2O0.10.2 255.255.255.0 encapsulation ppp dialer map ip 192.2O0.10.1 name router1 571 dialer loadthreshold 8O ppp multilink dialergroup 1 ppp authentication chap ! dialer-list 1 protocol ip permit!Ciscl路由器同時(shí)支持回?fù)芄δ?,我們將路由器Router1作為Callback Server,Router2作為Callback Client。routerl#debug dialerRouter2ping 192.2O0.10.100:03:50:%LINK3UPDOWN:interface BRI0:1, changed state to Up00:03:50:BRIO:l:PPP callback Callback server Starting to router2 572OO:03:5O:BRIO:l:disconnecting Call 00:03:5O:%LINK3UPDOWN:Interface BRIO:l, changed state to down00:03:50:BRIO:l:disconnecting call00:O3:5O:BRIO:l:disconnecting CallO0:03:51:%LINK3UPDOWN: Interface BRIO:2, changed state to up00:O3:52:callback to router2 already startedOO:03:52:BRIO:2:disconnecting CallOO:O3:52:%LINK3UPDOWN: Interface BRIO:2, changed state to downOO:03:52:BR10:2:disconnecting call00:03:52:BRIO:2:disconnecting callOO:04:O5:: Callback timer expired00:04:05:BRI0:beginning callback to router2 57200:04:O5:BRIO: Attempting to dial 57200:04:O5:freeing callback to router2 57200:04:05:%LINK3UPDOWN:Interface BRIO:l, changed state to up0O:04:05: BRIO:l: NO Callback negotiated0O:04:05:%LINK3UPDOWN:Interface VirtualAccess1,change stateto up0O:04:05:dialer Protocol up for Vil0O:04:06:%LINEPROTO5UPDOWN:Line protocol on Interface BRIO:l, changed state to up00:04:06:%LINEPROTO5UPDOWN:Line protocol on Interface VirtualAccess 1, changed state to up00:04:11:%ISDN6CONNECT:Interface BRIO:1 is now connected to 572#routerl4.ISDN訪問(wèn)首都在線263網(wǎng)實(shí)例 本地局部網(wǎng)地址為1O.0.O.0/24,屬于保留地址,通過(guò)NAT地址翻譯功能,局域網(wǎng)用戶可以通過(guò)ISDN上 263網(wǎng)訪問(wèn)1nternet。2. 有關(guān)命令:端口設(shè)置:任務(wù)命令設(shè)置Frame Relay 封裝encapsulatin framerelay [letf]1設(shè)置Frame Relay LMI類型frame-relay lmi-type {ansi|cisco|q933a}2設(shè)置子接口interface interface-type Interface--number[multipoint|point-to-point]映射協(xié)議地址與DLCIframe-relay map protocol protocol-address dlci[broadcast]3設(shè)置FR DLCI編號(hào)frame-relay interface-dlcl dlci [broadcast]注:,則使用Internet工程任務(wù)組(IETF)規(guī)定的幀中繼封裝方式。子接口(Subinterface)是一個(gè)物理接口上的多個(gè)虛接口,可以用于在同一個(gè)物理接口上連接多個(gè)網(wǎng)。 LAPB(Link Access Procedure, Balanced)實(shí)現(xiàn),它定義了用于DTE/DCE連接的幀格式。Router 1:ip route Router 3:ip route ip route 同時(shí)由于路由器Router 3除了與路由器Router 2相連外,不再與其他路山話相連,所以也可以為它賦予一條默認(rèn)路由以代替以上的兩條靜態(tài)路由,ip route 。顯示結(jié)束后,系統(tǒng)會(huì)問(wèn)是否使用這個(gè)設(shè)置:Use this configuration?[yes/no]: yes如果回答 yes,系統(tǒng)就會(huì)把設(shè)置的結(jié)果存入路由器的 NVRAM 中,然后結(jié)束設(shè)置對(duì)話過(guò)程,使路由器開始正常的工作。 但路由器的第一次設(shè)置必須通過(guò)第一種方式進(jìn)行,此時(shí)終端的硬 件設(shè)置如下: 波特率:960O 數(shù)據(jù)位:8 停止位:1 奇偶校驗(yàn):無(wú). 命令狀態(tài)1.router> 路由器處于用戶命令狀態(tài),這時(shí)用戶可以看路由器的連接狀態(tài),訪問(wèn) 它網(wǎng)絡(luò)和主機(jī),但不能看到和更改路由器的設(shè)置內(nèi)容。3.使用可變長(zhǎng)的子網(wǎng)掩碼 通過(guò)使用可變長(zhǎng)的子網(wǎng)掩碼可以讓位于不同接口的同一網(wǎng)絡(luò)編號(hào)的網(wǎng)絡(luò)使用不同的掩碼,這樣可以節(jié)省IP地址,充分利用有效的IP地址空間。 Router#show interface serial 0 Serial 0 is up line protocol is up Hardware is MCI Serial Internet address is , subnet mask is MTU 15O0 bytes、 BW 1544 Kbit, DLY 2000O usec,rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set( 10 sec) Last Input 0:OO:07, output 0:00:00, output h