自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

路由器配置成幀中繼交換機

網(wǎng)絡(luò) 路由交換
或許你一定在想如何將路由器模擬成幀中交換機,沒錯,這并不是不能實現(xiàn),而且你現(xiàn)在一定可以實現(xiàn),不如趕快來看看吧,不要在煞費苦心的研究了。
路由器配置成幀中繼交換機

Router(config)#frame-relay switching把路由器模擬成幀中繼交換機

Router(config)#inter s1/1

Router(config-if)#clock rate 128000

Router(config-if)#encapsulation frame-relay 配置接口封裝幀中繼

接口上啟用的默認(rèn)幀中繼封裝為Cisco封裝,如果連接到非思科路由器,要使用itef參數(shù)

Router(config-if)#no shu

Router(config)#inter s1/2

Router(config-if)#clo rate 128000

Router(config-if)#encapsulation fr

Router(config-if)#no shu

changed state to upnointer s1/3

Router(config-if)#clo rate 128000

Router(config-if)#encapsulation fr

Router(config-if)#no shu

Router(config)#inter s1/1

Router(config-if)#frame-relay lmi-type cisco 配置LMI類型

Router(config-if)#frame-relay intf-type dce 配置接口為幀中繼的DCE

Router(config-if)#inter s1/2

Router(config-if)#frame-relay lmi-type cisco

Router(config-if)#frame-relay intf-type dce

Router(config-if)#inter s1/3

Router(config-if)#frame-relay lmi-type cisco

Router(config-if)#frame-relay intf-type dce

配置路由器兩個接口之間的pvc

Router(config)#inter s1/1

Router(config-if)#frame-relay route 103 inter s1/2 301

Router(config-if)#frame-relay route 104 inter s1/3 401

Router(config-if)#exit

Router(config)#inter s1/2

Router(config-if)#frame-relay route 301 inter s1/1 103

Router(config-if)#frame-relay route 304 inter s1/3 403

Router(config-if)#exit

Router(config)#inter s1/3

Router(config-if)#frame-relay route 401 inter s1/1 104

Router(config-if)#frame-relay route 403 inter s1/2 304

Router(config-if)#

Router#show frame-relay route

Input IntfInput DlciOutput Intf Output Dlci Status

Serial1/1 103 Serial1/2 301 active

Serial1/1 104 Serial1/3 401 active

Serial1/2 301 Serial1/1 103 active

Serial1/2 304 Serial1/3 403 active

Serial1/3 401 Serial1/1 104 active

Serial1/3 403 Serial1/2 304 active

表明路由器R2上配置3條PVC 狀態(tài)都是活動的

R1的配置

Router(config)#inter s1/1

Router(config-if)#ip address 172.16.134.1 255.255.255.0

Router(config-if)#encapsulation fr 接口封裝幀中繼

Router(config-if)#frame-relay lmi-type cisco

Router(config)#inter fa0/0

Router(config-if)#ip add

Router(config-if)#ip address 192.168.1.1 255.255.255.0

Router(config-if)#no shu

如果采用Cisco路由器的IOS是11.2及以后的版本,路由器可以自動協(xié)商LMI是類型

所以可以不配

Router(config)#router rip

Router(config-router)#ver 2

Router(config-router)#no auto-summary

Router(config-router)#network 172.16.134.0

Router(config-router)#network 192.168.1.0

Router(config-router)#exit

R3和R4同R1

ping測試

Router#ping 172.16.134.1 source 192.168.4.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.16.134.1, timeout is 2 seconds:

Packet sent with a source address of 192.168.4.1

Success rate is 100 percent (5/5), round-trip min/avg/max = 120/155/200 ms

查看幀中繼的映射

 

路由器配置成幀中繼交換機

Router#show frame-relay map

Serial1/1 (up): ip 172.16.134.3 dlci 103(0x67,0x1870), dynamic,

broadcast,, status defined, active

Serial1/1 (up): ip 172.16.134.4 dlci 104(0x68,0x1880), dynamic,

broadcast,, status defined, active

以上輸出顯示了逆向ARP的作用結(jié)果 表明路由器R1每個封裝幀中繼的接口都包含2條處于活動狀態(tài)的DLCI,每條都顯示了遠(yuǎn)程Ip地址與本地的DLCI的映射關(guān)系

broadcast“參數(shù)允許在PVC上傳輸廣播或組播流量 “dynamic 表明動態(tài)映射

每臺路由器都不能ping通自己的串行接口的ip地址,但是可以ping通遠(yuǎn)程封裝幀中繼的串行接口的ip地址 是因為自己的幀中繼映射表中沒有自己的接口ip地址和DLCI的映射條目。 逆向ARP做動態(tài)映射解決不了該問題,只能通過靜態(tài)映射解決

Router#show ip route rip

R192.168.4.0/24 [120/1] via 172.16.134.4, 00:00:07, Serial1/1

R192.168.3.0/24 [120/1] via 172.16.134.3, 00:00:27, Serial1/1

Router#show ip route rip

R192.168.4.0/24 [120/1] via 172.16.134.4, 00:00:00, Serial1/2

R192.168.1.0/24 [120/1] via 172.16.134.1, 00:00:05, Serial1/2

Router#show ip route rip

R192.168.1.0/24 [120/1] via 172.16.134.1, 00:00:18, Serial1/3

R192.168.3.0/24 [120/1] via 172.16.134.3, 00:00:27, Serial1/3

在本實驗中,幀中繼交換機在路由器R2上采用了PVC全互連的拓?fù)浣Y(jié)構(gòu)

但是在實際應(yīng)用中,為了節(jié)省費用,一般采用(中心--分支)的拓?fù)浣Y(jié)構(gòu)

即只有分支到中心的PVC,假如R1是中心路由 R2和R3是分支路由

在R2上是配置如下

Router(config)#inter s1/2

Router(config-if)#no frame-relay route 304 interface s1/3 403

Router(config-if)#inter s1/3

Router(config-if)#no frame-relay route 403 interface s1/2 304

在R3和R4上

Router#show frame-relay map

Serial1/2 (up): ip 172.16.134.1 dlci 301(0x12D,0x48D0), dynamic,

broadcast,, status defined, active

Router#show frame-relay map

Serial1/3 (up): ip 172.16.134.1 dlci 401(0x191,0x6410), dynamic,

broadcast,, status defined, active

可以看到R3和R4上只有一條到中心站點路由器R1的映射

R4和R3的網(wǎng)絡(luò)不可達(dá)

R1

配置幀中繼的靜態(tài)映射

Router(config)#inter s1/1

Router(config-if)#no frame-relay inverse-arp

關(guān)閉逆向ARP ,默認(rèn)是開啟的

Router(config-if)#frame-relay map ip 172.16.134.3 103 broadcast

配置幀中繼靜態(tài)映射

Router(config-if)#frame-relay map ip 172.16.134.4 104 broadcast

Router(config-if)#frame-relay map ip 172.16.134.1 104 broadcast

配置自己接口的ip地址的映射,目的是允許ping路由器該接口的ip地址

R3

Router(config)#inter s1/2

Router(config-if)#no frame-relay inverse-arp

Router(config-if)#frame-relay map ip 172.16.134.1 301 broadcast

Router(config-if)#frame-relay map ip 172.16.134.4 304 broadcast

Router(config-if)#frame-relay map ip 172.16.134.3 301 broadcast

R4

Router(config)#inter s1/3

Router(config-if)#no frame-relay inverse-arp

Router(config-if)#frame-relay map ip 172.16.134.1 401 broadcast

Router(config-if)#frame-relay map ip 172.16.134.3 403 broadcast

Router(config-if)#frame-relay map ip 172.16.134.4 401 broadcast

R1#show frame-relay map

Serial1/1 (up): ip 172.16.134.1 dlci 104(0x68,0x1880), static,

broadcast,

CISCO, status defined, active

Serial1/1 (up): ip 172.16.134.3 dlci 103(0x67,0x1870), static,

broadcast,

CISCO, status defined, active

Serial1/1 (up): ip 172.16.134.4 dlci 104(0x68,0x1880), static,

broadcast,

CISCO, status defined, active

R3#show frame-relay map

Serial1/2 (up): ip 172.16.134.1 dlci 301(0x12D,0x48D0), static,

broadcast,

CISCO, status defined, active

Serial1/2 (up): ip 172.16.134.3 dlci 301(0x12D,0x48D0), static,

broadcast,

CISCO, status defined, active

Serial1/2 (up): ip 172.16.134.4 dlci 301(0x12D,0x48D0), static,

broadcast,

CISCO, status defined, active

R4#show frame-relay map

Serial1/3 (up): ip 172.16.134.1 dlci 401(0x191,0x6410), static,

broadcast,

CISCO, status defined, active

Serial1/3 (up): ip 172.16.134.3 dlci 401(0x191,0x6410), static,

broadcast,

CISCO, status defined, active

Serial1/3 (up): ip 172.16.134.4 dlci 401(0x191,0x6410), static,

broadcast,

CISCO, status defined, active

封裝幀中繼每個接口都采用了靜態(tài)映射

R1#show ip route rip

R192.168.4.0/24 [120/1] via 172.16.134.4, 00:00:26, Serial1/1

R192.168.3.0/24 [120/1] via 172.16.134.3, 00:00:07, Serial1/1

R1#show ip interface s1/1

Serial1/1 is up, line protocol is up

Internet address is 172.16.134.1/24

Broadcast address is 255.255.255.255

Split horizon is disabled接口封裝幀中繼后,水平分割被自動關(guān)閉

R1(R1(config)#inter s1/1

R1(config-if)#ip split-horizon 開啟水平分割

R1#clear ip route * 清除路由表

R1#show ip route rip

R192.168.4.0/24 [120/1] via 172.16.134.4, 00:00:07, Serial1/1

R192.168.3.0/24 [120/1] via 172.16.134.3, 00:00:11, Serial1/1

重新獲得

R3#show ip route rip

R192.168.1.0/24 [120/1] via 172.16.134.1, 00:00:15, Serial1/2

R4#show ip route rip

R192.168.1.0/24 [120/1] via 172.16.134.1, 00:00:06, Serial1/3

R3沒有了R4的路由

R4沒有了R3的路由

責(zé)任編輯:遺忘者 來源: 比特網(wǎng)
相關(guān)推薦

2011-08-16 11:37:22

幀中繼

2010-01-05 15:45:42

配置幀中繼交換機

2011-08-16 13:55:03

交換機Cisco

2011-03-31 09:09:00

2011-03-24 14:05:14

Nagios監(jiān)控

2017-06-01 14:33:04

交換機路由器網(wǎng)絡(luò)設(shè)備

2010-01-12 09:03:39

華為路由器交換機

2011-07-21 13:46:09

Cisco ACE

2009-12-03 11:43:30

路由器交換機區(qū)別

2009-12-03 13:24:46

路由器交換機區(qū)別

2009-11-26 09:56:39

Cisco路由器配置命交換機配置命令

2022-09-23 10:02:35

網(wǎng)絡(luò)硬件路由器

2009-12-23 16:01:38

路由器交換機

2022-09-22 17:00:46

路由器

2022-09-22 19:19:52

網(wǎng)絡(luò)硬件路由器交換機

2022-09-22 19:23:11

網(wǎng)絡(luò)硬件路由器交換機

2013-05-22 13:55:24

交換機故障路由器路由器故障排除

2014-07-04 09:23:26

路由器交換機

2011-08-08 10:47:07

路由器交換機

2010-08-12 09:17:05

華為路由器
點贊
收藏

51CTO技術(shù)棧公眾號