H3C基本实验:帧中继续(子接口实验)
<r1>dis cu
#
version 5.20, Alpha 1011
#
sysname r1
#
interface Serial0/2/1
link-protocol fr
#
interface Serial0/2/1.1
fr map ip 10.1.1.2 102
fr dlci 102
ip address 10.1.1.1 255.255.255.0
#
interface Serial0/2/1.2
fr map ip 10.2.2.2 103
fr dlci 103
ip address 10.2.2.1 255.255.255.0
[r2]dis cu
#
version 5.20, Alpha 1011
#
sysname r2
#
interface Serial0/2/1
link-protocol fr
fr map ip 10.1.1.1 201
ip address 10.1.1.2 255.255.255.0
<r3>dis cu
#
version 5.20, Alpha 1011
#
sysname r3
#
interface Serial0/2/1
link-protocol fr
fr map ip 10.2.2.1 301
ip address 10.2.2.2 255.255.255.0
[fr-sw]dis cu
#
version 5.20, Alpha 1011
#
sysname fr-sw
#
interface Serial0/2/1
link-protocol fr
fr interface-type dce
fr dlci 102
fr dlci 103
#
interface Serial0/2/1.1
#
interface Serial0/2/1.2
#
interface Serial0/2/2
link-protocol fr
fr interface-type dce
fr dlci 201
-------------------------------
做完以上配置的花在r1上可以分别ping通r2和r3
但是在r2或者R3上是没有对方路由的
我们可以先在r3上ping r2看看
[r3]ping 10.1.1.2
PING 10.1.1.2: 56 data bytes, press CTRL_C to break
Request time out
不通
查看下dis ip routing-table
[r3]dis ip routing-table
Routing Tables: Public
Destinations : 5 Routes : 5
Destination/Mask Proto Pre Cost NextHop Interface
10.2.2.0/24 Direct 0 0 10.2.2.2 S0/2/1
10.2.2.1/32 Direct 0 0 10.2.2.1 S0/2/1
10.2.2.2/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
如果要ping通就还要做路由
分别在三台DTE路由设备上做rip
r1
#
rip 1
peer 10.1.1.2
peer 10.2.2.2
network 10.0.0.0
r2
#
rip 1
peer 10.1.1.1
network 10.0.0.0
r3
#
rip 1
peer 10.2.2.1
network 10.0.0.0
然后在r3上ping r2
[r3]ping 10.1.1.2
PING 10.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=254 time=10 ms
OK通了,查看下dis ip routing-table
[r3]dis ip routing-table
Routing Tables: Public
Destinations : 6 Routes : 6
Destination/Mask Proto Pre Cost NextHop Interface
10.1.1.0/24 RIP 100 1 10.2.2.1 S0/2/1
10.2.2.0/24 Direct 0 0 10.2.2.2 S0/2/1
10.2.2.1/32 Direct 0 0 10.2.2.1 S0/2/1
10.2.2.2/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
#
interface Serial0/2/3
link-protocol fr
fr interface-type dce
fr dlci 301
#
注意做rip的时候在network之后还要peer
因为rip是用广播或者组播方式通告的
但是在帧中继网络中是以单播发送
- 下一篇:h3c基本实验:帧中继
- 上一篇:H3C基本实验:ppp pap和chap验证