租用电信光纤用E1模块配置PPP multilink使公司总部与分部连接起来
昨天去一家公司调试一台2811的路由器,还是先来做一个简单的介绍吧~他们这个企业有一个总部与二个分部,他们通过租用电信光纤来做到总部与另外两个分部互联起来。现在中国电信已经将光纤布到我们三个点的机房了,已经测试正常了。注意在这个案例里面我负责的是分布的调试。
下面我们来看看设备:
现在总部与分部2已经是连通了的,使用的是一个E1模块做的。现在总部要与分部1连接,在总部与分部路由器上面分别加了一块VWIC2-2MFT-T1/E1的一个模块。然后通过中国电信的光纤,让我们总部与分部连通。
下面我们来看看VWIC2-2MFT-T1/E1这个模块。
手机效果不好,大家将就一下吧~
我们可以看见,这个模块上面有两上T1/E1的接口。
上图是我已经将VWIC2-2MFT-T1/E1这个模块加到了分布的2811路由器上了。
我们现在已经把2811放在机架上了~
我们现在可以看见我们这个模块上面的两个E1口已经工作起来了。
这个光缆终端设备就是中国电信的光缆进来以后,通过它接了两根线出来到我们的8M光端机设
备上。
本新闻共2页,当前在第1页 1 2
然后由这个“8M光端机”再分出来几组信号,其实这一块我也是第一次接触,对于这些专业名词的理解只是我个人的~我觉得我的
表
关于同志近三年现实表现材料材料类招标技术评分表图表与交易pdf视力表打印pdf用图表说话 pdf
述有问题吧~也不知道形容的对不对。
好了到此为止,我们的一些设备大至就介绍到这里吧~下面我们来看看如何来配置这个E1口的卡呢,如何来起用它呢,
2811(config)#card type e1 0 0 //控制器工作于E1模式
*Oct 19 09:35:08.727: %CONTROLLER-5-UPDOWN: Controller E1 0/0/0, changed state to
up
2811(config)#controller e1 0/0/0 //通过这条命令进入我们E1这个模块上的第一个接口 2811(config-controller)#channel-group 0 timeslots 1-31 //
2811(config-controller)#
*Oct 19 09:36:40.943: %LINK-3-UPDOWN: Interface Serial0/0/0:0, changed state to up 这里给我们提示出来我们接口的名称。
*Oct 19 09:36:41.943: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0:0,
changed state to up
2811(config)#controller e1 0/0/1
2811(config-controller)#channel-group 0 timeslots 1-31
2811(config-controller)#no shut
2811(config-controller)#
*Oct 19 09:38:10.511: %LINK-3-UPDOWN: Interface Serial0/0/1:0, changed state to down *Oct 19 09:38:11.511: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1:0,
changed state to down
card type e1 0 0来指定控制器类型为E1(其中参数0是插槽号,0是模块号) channel-group 0 timeslots 1-31 (配置时隙1-31 为channel-group 0,即channel-group 0包含时隙1-31,它的带宽就为64K*31=1984K)
channel-group 1 timeslots 2,7-9,20(配置时隙2,7,8,9,20为channel-group 1,它的带宽就为64*5=320K,在这里7-9是指一个段,可以采用同样的命令配置多个channel-group,但需注意channel-group对应不同的数字,而且一个时隙不能包含在多个组当中)
以上就是我们启有E1接口的命令,其它的命令可以根据自己的需要进行设置。在这里我们只是将这个接口运行起来。
那么现在我们来看看如何将两边进行连通呢,现在要连通就很简单了,因为总部与分部1租用的光纤中国电信那边的人员已经调试通了,我们就只需在相应的接口上面配置IP地址就完了,但是他们现在提出来的要求是,要将两个E1口绑定在一起,形成一个4M的。他们给了一个IP地址给我,总部有一个IP地址。那么现在我们就使用模拟器来模拟这个实验看看,
现在我们来看看上面这个实验如何做, 模拟器的拓扑文件:
autostart = false [localhost]
port = 7200
udp = 10000
workingdir = ..\tmp\ [[7200]]
image = e:\ios\unzip-c7200-advsecurityk9-mz.124-11.T.bin
ram = 128
confreg = 0x2142 exec_area = 64
mmap = false
slot0 = PA-C7200-IO-FE slot1 = PA-4T
[[router R1]]
model = 7200
console = 2000
s1/0 = R2 s1/0
s1/1 = R2 s1/1
[[router R2]]
model = 7200
console = 2001
s1/0 = R1 s1/0
s1/1 = R1 s1/1 在这里要注意的是我们总部是R2的路由器,分部1的是R1的路由器。
我们现在把它的基本配置配置起来~ Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R1
R1(config)#no ip do lo
R1(config)#line con 0
R1(config-line)#logg syn
R1(config-line)#exec-timeout 0 0
R1(config-line)#exit
R1(config)#
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host R2
R2(config)#no ip do lo
R2(config)#line con 0
R2(config-line)#logg syn
R2(config-line)#exec-timeout 0 0
R2(config-line)#exit
R2(config)#
我们现在来将两个端口绑定成逻辑上的一个端口使用。
配置我们总部的路由器。
R2(config)#multilink virtual-template 1 //Multilink接口采用虚拟接口模板的配置信息
R2(config)#interface virtual-template 1 //创建虚拟接口模板 R2(config-if)#ip add 172.16.254.13 255.255.255.0 //给我们虚拟接口模板配置一个IP
地址。
R2(config-if)#ppp multilink //打开ppp multilink功能 R2(config-if)#exit
R2(config)#int s1/0
R2(config-if)#encapsulation ppp //封闭PPP
协议
离婚协议模板下载合伙人协议 下载渠道分销协议免费下载敬业协议下载授课协议下载
R2(config-if)#ppp multilink //打开ppp multilink功能 R2(config-if)#no shut //启用该接口 R2(config-if)#exit
R2(config)#
*Oct 20 12:49:21.139: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
R2(config)#
*Oct 20 12:49:21.143: %ENTITY_ALARM-6-INFO: CLEAR INFO Se1/0 Physical Port
Administrative State Down
R2(config)#int s1/1
R2(config-if)#encapsulation ppp //封闭PPP协议 R2(config-if)#ppp multilink //打开ppp multilink功能 R2(config-if)#no shut //启用该接口 R2(config-if)#exit
R2(config)#
*Oct 20 12:49:40.043: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up R2(config)#
*Oct 20 12:49:40.043: %ENTITY_ALARM-6-INFO: CLEAR INFO Se1/1 Physical Port
Administrative State Down
R2(config)#int lo0
R2(config-if)#ip add 192.168.1.1 255.255.255.0
R2(config-if)#exit
R2(config)#int lo1
R2(config-if)#ip add 192.168.2.1 255.255.255.0
R2(config-if)#exit
R2(config)#
配置分部1的路由器
R1(config)#multilink virtual-template 1
R1(config)#interface virtual-template 1
R1(config-if)#ip add 172.16.254.14 255.255.255.0
R1(config-if)#ppp multilink
R1(config-if)#exit
R1(config)#int s1/0
R1(config-if)#encapsulation ppp
R1(config-if)#ppp multilink
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#int s1/
*Oct 20 12:55:41.671: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up1 R1(config)#int s1/1
R1(config-if)#
*Oct 20 12:55:41.671: %ENTITY_ALARM-6-INFO: CLEAR INFO Se1/0 Physical Port Administrative State Down
*Oct 20 12:55:42.095: %LINK-3-UPDOWN: Interface Virtual-Access2, changed state to up R1(config-if)#en
*Oct 20 12:55:42.899: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0,
changed state to up
*Oct 20 12:55:43.111: %LINEPROTO-5-UPDOWN: Line protocol on Interface
Virtual-Access2, changed state to up
R1(config-if)#en ppp
R1(config-if)#ppp multilink
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#
*Oct 20 12:55:53.387: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up R1(config)#
*Oct 20 12:55:53.391: %ENTITY_ALARM-6-INFO: CLEAR INFO Se1/1 Physical Port
Administrative State Down
R1(config)#
*Oct 20 12:55:54.451: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1,
changed state to up
R1(config)#int lo0
R1(config-if)#ip add 192.168.3.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#int lo1
R1(config-if)#ip add 192.168.4.1 255.255.255.0
R1(config-if)#exit
R1(config)#
这里面的配置与上面我们总部的配置都是一样的,我们从上面的一些日志我们可以看到我们配置的端口绑定已经起来了,我们下面来查看一下呢,
R1#show ip int bri
Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES unset administratively down down Serial1/0 unassigned YES unset up up Serial1/1 unassigned YES unset up up Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down Virtual-Access1 unassigned YES unset down down Virtual-Template1 172.16.254.14 YES manual down down Virtual-Access2 172.16.254.14 YES TFTP up up Loopback0 192.168.3.1 YES manual up up Loopback1 192.168.4.1 YES manual up up R1#
测试一下
R1#ping 172.16.254.13 //这个是我们公司总部的路由器上面的IP地址 Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.254.13, timeout is 2 seconds: !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/36/72 ms R1#
我们可以看见,是不是将两个端口绑定成一个虚拟端口,然后通过这个虚拟端口的IP地址来进行通信,我们现在来查看一下它的接口信息。
R1#show ppp multilink
Virtual-Access2
Bundle name: R2
Remote Endpoint Discriminator: [1] R2 远端的路由器名
Local Endpoint Discriminator: [1] R1 本地的路由器名
Bundle up for 00:05:48, total bandwidth 3088, load 1/255 我们可以看见总带宽是
3088=1544k*2
Receive buffer limit 24384 bytes, frag timeout 1000 ms
0/0 fragments/bytes in reassembly list
0 lost fragments, 0 reordered
0/0 discarded fragments/bytes, 0 lost received
0xA received sequence, 0xA sent sequence
Member links: 2 (max not set, min not set)
Se1/0, since 00:05:49
Se1/1, since 00:05:37
No inactive multilink interfaces
R1#
我们来查看一下我们的虚拟接口信息:
R1#show interfaces virtual-access 2
Virtual-Access2 is up, line protocol is up //我们可以看见我们两个都是up的
Hardware is Virtual Access interface
Internet address is 172.16.254.14/24 //我们本地的IP地址
MTU 1500 bytes, BW 3088 Kbit, DLY 100000 usec, //在这里我们可以看见总带宽是3088k
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, LCP Open, multilink Open //我们可以查看到我们使用的是PPP 多链
路已经打开了
Open: IPCP
MLP Bundle vaccess, cloned from Virtual-Template1
Vaccess status 0x40, loopback not set
Keepalive set (10 sec)
DTR is pulsed for 5 seconds on reset
Last input 00:03:52, output never, output hang never
Last clearing of "show interface" counters 00:07:33
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
7 packets input, 548 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
7 packets output, 618 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
R1#
查看一下路由表:
R1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.16.254.0/24 is directly connected, Virtual-Access2 C 172.16.254.13/32 is directly connected, Virtual-Access2 //我们可以看见,我们
总部的IP地址显示在这里了
C 192.168.4.0/24 is directly connected, Loopback1 C 192.168.3.0/24 is directly connected, Loopback0 R1#
我们现在在两边来运行一个路由协议(EIGRP)
R1(config)#router eigrp 100
R1(config-router)#no au
R1(config-router)#net 192.168.3.0 0.0.0.255
R1(config-router)#net 192.168.4.0 0.0.0.255
R1(config-router)#net 172.16.254.0 0.0.0.255 R1(config-router)#exit
在R2里面配置一下路由协议(EIGRP)
R2(config)#router eigrp 100
R2(config-router)#no au
R2(config-router)#net 192.168.1.0 0.0.0.255
R2(config-router)#net 192.168.2.0 0.0.0.255
R2(config-router)#net 172.16.254.0 0.0.0.255 R2(config-router)#exit
R2(config)#
*Oct 20 13:12:01.943: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 172.16.254.14
(Virtual-Access2) is up: new adjacency
我们可以看见,它是通过我们的172.16.254.14 (Virtual-Access2)来建立邻居的。而不是通过我们的物理接口来建立邻居的。
现在再来查看一下路由表:
R1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.254.0/24 is directly connected, Virtual-Access2
C 172.16.254.13/32 is directly connected, Virtual-Access2
C 192.168.4.0/24 is directly connected, Loopback1
D 192.168.1.0/24 [90/3516928] via 172.16.254.13, 00:01:50, Virtual-Access2 D 192.168.2.0/24 [90/3516928] via 172.16.254.13, 00:01:50, Virtual-Access2 C 192.168.3.0/24 is directly connected, Loopback0
R1#
从上面我们可以看见这两个网段是通过我们的虚拟接口来建立起来的。
其实要将多个物理端口绑定成一个逻辑端口的话,方法还有很多,下次有时间再与大家来讨论讨论。
好了到此为止我们这个工程所需要用到的知识就差不多了。
好好理解一下吧~应该还是很简单的~
本新闻共2页,当前在第2页 1 2