淡淡回忆 发表于 2018-7-14 09:10:52

cisco帧中继实验

https://www.iyunv.com/source/plugin/onexin_bigdata/file:///C:/Documents%20and%20Settings/Administrator/Local%20Settings/Temp/WindowsLiveWriter-429641856/supfiles255C35/clip_image002_thumb.jpg
  其中帧中继的设置:
https://www.iyunv.com/source/plugin/onexin_bigdata/file:///C:/Documents%20and%20Settings/Administrator/Local%20Settings/Temp/WindowsLiveWriter-429641856/supfiles255C35/clip_image004_thumb.jpg
  其中设置端口的dlci号和名字(以后会用到,名字是随意设置的)
  Serial 1 的设置也是这样但是dlci和名字不一样
  其中第一个路由器的配置如下:
https://www.iyunv.com/source/plugin/onexin_bigdata/file:///C:/Documents%20and%20Settings/Administrator/Local%20Settings/Temp/WindowsLiveWriter-429641856/supfiles255C35/clip_image006_thumb.jpg
https://www.iyunv.com/source/plugin/onexin_bigdata/file:///C:/Documents%20and%20Settings/Administrator/Local%20Settings/Temp/WindowsLiveWriter-429641856/supfiles255C35/clip_image008_thumb.jpg
  封装为帧中继并做静态地址映射,即手工设置的(其中的ip地址为自己本接口的地址 dlci号为对方的)
  第二个路由器的设置:
https://www.iyunv.com/source/plugin/onexin_bigdata/file:///C:/Documents%20and%20Settings/Administrator/Local%20Settings/Temp/WindowsLiveWriter-429641856/supfiles255C35/clip_image010_thumb.jpg
https://www.iyunv.com/source/plugin/onexin_bigdata/file:///C:/Documents%20and%20Settings/Administrator/Local%20Settings/Temp/WindowsLiveWriter-429641856/supfiles255C35/clip_image012_thumb.jpg
  这样两台路由器的设置就完成了
  测试:
  r1#show frame-relay map (查看映射表)
  Serial2/0 (up): ip 192.168.1.2 dlci 100, static, broadcast, CISCO, status defined, active
  此时可以互ping 对方了
  这个实验用的是手工配置的静态地址映射
  下面这个实验是利用IARP(反向地址解析)动态获得地址映射
  还是如上的拓扑图和地址和dlci号。
  首先先删除上面的配置:
  r1(config-if)#no frame-relay map ip 192.168.1.2
  r1(config-if)#frame-relay interface-dlci 100( 指定本地的dlci号是多少)
  r2(config-if)#no frame-relay map ip 192.168.1.1
  r2(config-if)#frame-relay interface-dlci 200
  r1#show frame-relay map
  Serial2/0 (up): ip 192.168.1.2 dlci 100, dynamic, broadcast, CISCO, status defined, active
  帧中继的子接口分为点到点子接口和多点子接口。点到点子接口有自己独立的dlci号和独立的网络地址,可以与其他物理接口或子接口建立虚电路连接(并且映射是动态映射)。多点子接口是用来与多个物理接口或多个子接口建立多个pvc的单个接都。所有参与的接口在同一个子网内。(映射是静态映射)
  我们先做点到点子接口的实验吧
https://www.iyunv.com/source/plugin/onexin_bigdata/file:///C:/Documents%20and%20Settings/Administrator/Local%20Settings/Temp/WindowsLiveWriter-429641856/supfiles255C35/clip_image014_thumb.jpg
  其中帧中继的配置是:
https://www.iyunv.com/source/plugin/onexin_bigdata/file:///C:/Documents%20and%20Settings/Administrator/Local%20Settings/Temp/WindowsLiveWriter-429641856/supfiles255C35/clip_image016_thumb.jpg
  路由器2的配置:
  hostname r1
  !
  interface Serial2/0
  no ip address
  encapsulation frame-relay
  !
  interface Serial2/0.1 point-to-point
  ip address 192.168.1.1 255.255.255.0
  frame-relay interface-dlci 100
  !
  interface Serial2/0.2 point-to-point
  ip address 192.168.2.1 255.255.255.0
  frame-relay interface-dlci 400
  !
  line con 0
  exec-timeout 0 0
  password ghn
  logging synchronous
  login
  line vty 0 4
  password ghn
  logging synchronous
  login
  !
  !路由器3的配置:
  hostname r2
  no ip domain-lookup
  interface Serial2/0
  ip address 192.168.1.2 255.255.255.0
  encapsulation frame-relay
  frame-relay interface-dlci 200
  line con 0
  exec-timeout 0 0
  password ghn
  logging synchronous
  login
  line vty 0 4
  password ghn
  logging synchronous
  login
  路由器4的配置:
  hostname r3
  no ip domain-lookup
  interface Serial2/0
  no ip address
  encapsulation frame-relay
  !
  interface Serial2/0.1 point-to-point
  ip address 192.168.2.2 255.255.255.0
  frame-relay interface-dlci 300
  line con 0
  exec-timeout 0 0
  password ghn
  logging synchronous
  login
  line vty 0 4
  password ghn
  logging synchronous
  login
  R1的地址映射:
  r1# show frame-relay ma
  r1# show frame-relay map
  Serial2/0.1 (up): point-to-point dlci, dlci 100, broadcast, status defined, active
  Serial2/0.2 (up): point-to-point dlci, dlci 400, broadcast, status defined, active
  多点子接口实验:
https://www.iyunv.com/source/plugin/onexin_bigdata/file:///C:/Documents%20and%20Settings/Administrator/Local%20Settings/Temp/WindowsLiveWriter-429641856/supfiles255C35/clip_image018_thumb.jpg
  帧中继的配置:
https://www.iyunv.com/source/plugin/onexin_bigdata/file:///C:/Documents%20and%20Settings/Administrator/Local%20Settings/Temp/WindowsLiveWriter-429641856/supfiles255C35/clip_image020_thumb.jpg
  R5的配置:
  hostname r1
  no ip domain-lookup
  interface Serial2/0
  ip address 192.168.1.1 255.255.255.0
  encapsulation frame-relay
  frame-relay map ip 192.168.1.2 100 broadcast
  frame-relay map ip 192.168.1.3 200 broadcast
  e con 0
  exec-timeout 0 0
  password ghn
  logging synchronous
  login
  line vty 0 4
  password ghn
  logging synchronous
  login
  R6的配置:
  hostname r2
  no ip domain-lookup
  interface Serial2/0
  no ip address
  encapsulation frame-relay
  !
  interface Serial2/0.1 multipoint
  ip address 192.168.1.2 255.255.255.0
  frame-relay map ip 192.168.1.1 300 broadcast
  line con 0
  exec-timeout 0 0
  password ghn
  logging synchronous
  login
  line vty 0 4
  password ghn
  logging synchronous
  login
  R7的配置:
  hostname r3
  no ip domain-lookup
  interface Serial2/0
  no ip address
  encapsulation frame-relay
  !
  interface Serial2/0.1 multipoint
  ip address 192.168.1.3 255.255.255.0
  frame-relay map ip 192.168.1.1 400 broadcast
  line con 0
  exec-timeout 0 0
  password ghn
  login
  line vty 0 4
  password ghn
  logging synchronous
  login
  r1#show frame-relay ma
  r1#show frame-relay map
  Serial2/0 (up): ip 192.168.1.2 dlci 100, static, broadcast, CISCO, status defined, active
  Serial2/0 (up): ip 192.168.1.3 dlci 200, static, broadcast, CISCO, status defined, active
页: [1]
查看完整版本: cisco帧中继实验