首页 > 学技术 > 技术网文 > 网络技术 > 正文

[精彩] 用ip unnumbered文本配置帧中继网络


来源 chinaunix.net 酷勤网整理

原问题:
引用:华为1600
用ip unnumbered方式
电信分配的网段是:61.131.78.0/27
DLCI:100
协议:帧中继:IETF
lmi类型:ansi
对方路由器地址:202.101.22.1(此地址偶随便写的)

1、配置以太网
#conf
#int e0
# ip address 61.131.78.1 255.255.255.224
#exit
#exit

2、配置串口与dlci
conf
int s0
ip unnumbered Ethernet0
encapsulation frame-relay IETF
frame-relay lmi-type ansi
frame-relay interface-dlci 100
frame-realy map ip 61.131.78.1 100#手册说是对方路由器地址
#但是电信局的人说用ip unnumbered方式,dte方不用知道对方路由器地址
exit


3、路由
ip route 0.0.0.0 0.0.0.0 s0
请问我这样配置有没有错?

show frame-relay status,链路层协议已经为up
偶对网络实在是一知半解,求高人指点一下。




答案:
引用:1、配置以太网 
#conf 
#int e0 
# ip address 61.131.78.1 255.255.255.224 
#exit 
#exit 

2、配置串口
#conf 
#int s0 
#no ip address 

3、封装帧中继格式
#encapsulation frame-relay IETF 

4、LMI类型
frame-relay lmi-type ansi #lmi-type只能配置在主接口上 
exit 
exit 

5、配置子接口 
int s 0.1 
ip unnumbered Ethernet0 
frame-relay interface-dlci 100 #设置本地dlci
#将dlci与地址映射,ip 202.101.22.1为对方路由器地址。 
frame-relay map ip 202.101.22.1 100 
exit 


6、配置路由 
ip route 0.0.0.0 0.0.0.0 202.101.22.1#到对方以太网的的路由 
ip route 202.101.22.1 255.255.255.255 s 0.1 #到对方路由器串口的接口路由





 cnadl 回复于:2005-07-14 11:07:38

华为的没有配过。

100如果是你的,就不要map到对方去,dlci是local属性。


 deeperpurple 回复于:2005-07-14 11:12:03

#int s0
#no ip address 
#encapsulation frame-relay IETF

#int s0.1 point-to-point
#ip unnumbered Ethernet0
#frame-relay lmi-type ansi 
#frame-relay interface-dlci 100


 mocou 回复于:2005-07-14 12:25:46

引用:原帖由 "cnadl" 发表:
华为的没有配过。

100如果是你的,就不要map到对方去,dlci是local属性。



frame-realy map ip 61.131.78.1 100
这个IP目前是用自己的以太网IP
如果去掉这一条也不行
本地是DTE,华为手册上说
#frame-relay interface-dlci 100
这个命令是用于DCE的,5555
如果不用这个,用不map,那dlci没用了?

引用:#int s0.1 point-to-point 

这一条在华为上没法用? :em10: 
直接
#int s 0.1
#?
找不到跟协议有关的命令 :em16:


 cnadl 回复于:2005-07-14 12:37:28

引用:原帖由 "mocou" 发表:

这一条在华为上没法用? :em10: 
直接
#int s 0.1
#?
找不到跟协议有关的命令 :em16:



把frame-relay ?的输出贴一下,还有int s0.1下面有哪些?


 mocou 回复于:2005-07-14 12:46:45

引用:(config-if-Serial0)#frame ?
    interface-dlci   Define a DLCI as part of a subinterface
    intf-type        Set frame-relay DTE/DCE
    inverse-arp      Enable/disable inverse ARP on a DLCI
    ip               Frame Relay Internet Protocol config commands
    lmi-n391dte      Set full status polling counter
    lmi-n392dce      LMI error threshold
    lmi-n392dte      LMI error threshold
    lmi-n393dce      Set LMI monitored event count
    lmi-n393dte      Set LMI monitored event count
    lmi-t391dte      Set link integrity verification polling timer
    lmi-t392dce      Set DCE polling verification timer
    lmi-type         set LMI protocol type
    local-dlci       Set local DLCI when LMI is not supported
    map              Map a protocol address to a DLCI address
    route            frame relay route for pvc switching



引用:(config-if-Serial0.1)#?
    autocommand                Automatically execute an EXEC command
    custom-group               Assign a custom queue list to an interface
    databits                   Data-charater-bits
    description                interface specific description
    exit                       Exit from config interface mode
    frame-relay                Set frame relay parameters
    help                       Description of the interactive help system
    if-internet                Set interface to connect to internet
    ip                         Interface Internet Protocol configure command
    ipx                        Novell IPX interface subcommands
    keepalive                  Enable keepalive
    modem-autoanswer           Modem in auto-answer mode
    mtu                        Maximum transmition unit
    nat                        Network Address Translator
    no                         Negate a Command or Set its default
    parity                     Parity mode
    peer                       Peer parameters for point-to-point interface
    priority-group             Assign a priority queue list to an interface
    shutdown                   Shutdown the selected interface
    stopbits                   Number of stop bits



问华为800,结果他们得在E0上启用arp proxy


 mocou 回复于:2005-07-14 14:06:26

引用:原帖由 "deeperpurple" 发表:
#int s0
#no ip address 
#encapsulation frame-relay IETF

#int s0.1 point-to-point
#ip unnumbered Ethernet0
#frame-relay lmi-type ansi 
#frame-relay interface-dlci 100




1、配置以太网 
#conf 
#int e0 
# ip address 61.131.78.1 255.255.255.224 
# ip arp #启用arp反向代理
#exit 
#exit 

2、配置串口与dlci 
conf 
int s0 
no ip address 
encapsulation frame-relay IETF 
frame-relay lmi-type ansi #lmi-type只能配置在主接口上
exit
exit

配置子接口
int s 0.1
ip unnumbered Ethernet0 
frame-relay interface-dlci 100 
frame-relay inverse-arp 
exit 


3、路由 
ip route 0.0.0.0 0.0.0.0 s0 


还是不能ping


 cnadl 回复于:2005-07-14 14:17:45

引用:原帖由 "mocou" 发表:



1、配置以太网 
#conf 
#int e0 
# ip address 61.131.78.1 255.255.255.224 
# ip arp #启用arp反向代理
#exit 
#exit 

2、配置串口与dlci 
conf 
int s0 
no ip address 
encapsulation frame-r..........



route s0.1 ?


 cnadl 回复于:2005-07-14 14:21:59

还有,对面的ip是多少,让不让ping?偶出去了,肾子还在,有问题找他好了。


 deeperpurple 回复于:2005-07-14 14:55:45

当使用ip unnumbered时,链路两端的IP地址应在同一个主网段之内 


 :shock:  :shock:  :shock:


 mocou 回复于:2005-07-14 15:29:36

引用:原帖由 "deeperpurple" 发表:

 :shock:  :shock:  :shock:



 :em03: 在深紫及yuhong,cnadl的指点下,终于能通了
谢谢各位

路由错了
ip route 0.0.0.0 0.0.0.0 s 0.1
再次感谢
 :em03:


 mocou 回复于:2005-07-14 17:11:17

传一个完整的,上面那种配置只能ping通对方,不能跨网段。
1、配置以太网 
#conf 
#int e0 
# ip address 61.131.78.1 255.255.255.224 
#exit 
#exit 

2、配置串口与dlci 
conf 
int s0 
no ip address 
encapsulation frame-relay IETF 
frame-relay lmi-type ansi #lmi-type只能配置在主接口上 
exit 
exit 

配置子接口 
int s 0.1 
ip unnumbered Ethernet0 
frame-relay interface-dlci 100 
frame-relay map ip 202.101.22.1 100 #ip 202.101.22.1为对方路由器地址。
exit 


3、路由 
ip route 0.0.0.0 0.0.0.0 202.101.22.1#到对方以太网的的路由
ip route 202.101.22.1 255.255.255.255 s 0.1 #到对方路由器串口的接口路由


 deeperpurple 回复于:2005-07-14 17:32:01

:em03:  :em03:  :em03: 

转身再把华为和电信的人投诉一把  :m01:


 mocou 回复于:2005-07-14 17:50:06

引用:原帖由 "deeperpurple" 发表:
:em03:  :em03:  :em03: 

转身再把华为和电信的人投诉一把  :m01:



嗯。应该的,电信的人按cisco的配置方式给我偶参数,没给偶他们的路由器地址,
华为的还行。 :em03:  :em03: 估计后来他们去查了




原文链接:http://bbs.chinaunix.net/viewthread.php?tid=577235
转载请注明作者名及原文出处



收藏本页到: