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 |
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)# |
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# |
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# |
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(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 |
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# |