思科帧中继简单配置P277

帧中继配置:

R1配置:

Router(config)#hostname R1

R1(config)#interface s0/0/0

R1(config-if)#encapsulation frame-relay ietf

R1(config-if)#ip add 192.168.1.1 255.255.255.0

R1(config-if)#no shutdown

R2配置:

Router(config)#hostname R2

R2(config)#interface s0/0/0

R2(config-if)#encapsulation frame-relay ietf

R2(config-if)#ip address 192.168.1.2 255.255.255.0

R2(config-if)#no shutdown

R3配置:

Router(config)#hostname R3

R3(config)#int s0/0/0

R3(config-if)#encapsulation frame-relay ietf

R3(config-if)#ip address 192.168.1.3  255.255.255.0

R3(config-if)#no shutdown

配置完后R1就可以ping通R2和R3,但是现在R2和R3是不相通的

要想R2和R3相通:

第1种方法:

在帧中继中Serial2和Serial3分别添加一条记录

之后R2和R3就可以ping通了

第二种方法(配置默认路由)

R2(config)#ip route 192.168.1.3 255.255.255.255 192.168.1.1

R3(config)#ip route 192.168.1.2 255.255.255.255 192.168.1.1

第三种方法:

R2#conf

Configuring from terminal, memory, or network [terminal]?

Enter configuration commands, one per line. End with CNTL/Z.

R2(config)#interface s0/2

R2(config-if)#frame-relay map ip 192.168.1.3 201 ietf

R2(config-if)#end

R2#

%SYS-5-CONFIG_I: Configured from console by console

R2#ping 192.168.1.3

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 9/10/11 ms

R3#ping 192.168.1.2

Type escape sequence to abort.

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

.....

Success rate is 0 percent (0/5)

R3(config)#interface s0/2

R3(config-if)#frame-relay map ip 192.168.1.2 301 ietf

R3(config-if)#end

R3#

%SYS-5-CONFIG_I: Configured from console by console

R3#ping 192.168.1.2

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 33/41/50 ms

注意:

R2(config-if)#frame-relay map ip 192.168.1.3 201 ietf

R3(config-if)#frame-relay map ip 192.168.1.2 301 ietf

这个也可以配置为:

R2(config-if)#frame-relay map ip 192.168.1.3 201 broadcast

R3(config-if)#frame-relay map ip 192.168.1.2 301 broadcast

 其中ietf表示使用封装帧格式,缺省使用的cisco格式,如果没有与其他厂商设备相连,肯定要用ietf格式,而且该映射不支持广播。

  而broadcast表示使用ciso格式,并且支持广播。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Router(config)#no ip domain-lo Router(config)#line con 0 Router(config-line)#logg sy Router(config-line)#exec-t 0 0 Router(config-line)#exi Router(config)#ho R1 R1(config)#int s1/0 R1(config-if)#encapsulation fr R1(config-if)#no fram inv R1(config-if)#ip add 12.1.1.1 255.255.255.0 R1(config-if)#no shut R1(config-if)#frame-relay map ip 12.1.1.2 102 broadcast R1(config-if)#exi R1(config)#exi R1# R1#show ip int bri Interface IP-Address OK? Method Status Protocol Ethernet0/0 unassigned YES unset administratively down down Ethernet0/1 unassigned YES unset administratively down down Ethernet0/2 unassigned YES unset administratively down down Ethernet0/3 unassigned YES unset administratively down down Serial1/0 12.1.1.1 YES manual up up Serial1/1 unassigned YES unset administratively down down Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down R1# Router#conf t Router(config)#no ip domain-lo Router(config)#line con 0 Router(config-line)#logg sy Router(config-line)#exec-t 0 0 Router(config-line)#exi Router(config)#ho R2 R2(config)#int s1/0 R2(config-if)#en fr R2(config-if)#no fram inv R2(config-if)#ip add 12.1.1.2 255.255.255.0 R2(config-if)#no shut R2(config-if)#exi R2(config)#i R2(config)#exi R2#show ip int bri Interface IP-Address OK? Method Status Protocol Ethernet0/0 unassigned YES unset administratively down down Ethernet0/1 unassigned YES unset administratively down down Ethernet0/2 unassigned YES unset administratively down down Ethernet0/3 unassigned YES unset administratively down down Serial1/0 12.1.1.2 YES manual up up Serial1/1 unassigned YES unset administratively down down Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down R2#conf t R2(config)#int s1/0 R2(config-if)#frame-relay map ip 12.1.1.1 201 broadcast R2(config-if)#exi R2(config)#exi R2#ping 12.1.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 12.1.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 16/44/80 ms R2#
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值