链路捆绑+单臂路由实验
一:实验要求:
两台C3700之间实现链路捆绑,增加带宽,PC机可以和外网通讯。
二:所需设备:
两台C2691路由器两台交换机两台PC机
三:技术解释:
链路聚合是将两个或更多数据信道结合成一个单个的信道,该信道以一个单个的更高带宽的逻辑链路出现。链路聚合一般用来连接一个或多个带宽需求大的设备,例如连接骨干网络的服务器或服务器群。
四:实验拓扑:
五:实验步骤:
1.开启所有设备
2.优化模拟器
选择R1路由器终端,终端特权模式下输入后,关闭终端,右击设备选IDLE PC选择带*的,单击OK完成优化
3.配置PC机IP地址
4.在SW1 SW2中配置VLAN
SW1#conf t
SW1(config)#vlan 10
SW1(config-vlan)#vlan 20
SW1(config-if)#switchport m
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 10
SW2#conf t
SW2(config)#vlan 10
SW2(config-vlan)#vlan 20
SW2(config-vlan)#int fa 1/5
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 20
5.链路捆绑SW1 与 SW2之间的线路
SW1(config)#interface range fastEthernet 1/1 -3
SW1(config-if-range)#channel-group 1 mode on
SW2(config-if)#interface range fastEthernet 1/1-3
SW2(config-if-range)#channel-group 1 mode on
6.查看带宽
SW1#show interfaces port-channel 1
Port-channel1 is up, line protocol is up
Hardware is EtherChannel, address is c202.2874.f101 (bia c202.2874.f101)
MTU1500 bytes, BW 100000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s
Membersin this channel: Fa1/1
ARPtype: ARPA, ARP Timeout 04:00:00
Lastinput never, output never, output hang never
Lastclearing of "show interface" counters never
Inputqueue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Outputqueue: 0/40 (size/max)
5minute input rate 0 bits/sec, 0 packets/sec
5minute output rate 0 bits/sec, 0 packets/sec
0packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0input packets with dribble condition detected
0packets output, 0 bytes, 0 underruns
0output errors, 0 collisions, 1 interface resets
0babbles, 0 late collision, 0 deferred
7.SW1 与SW2 之间配置Trunk
SW1(config)#int port-channel 1
SW1(config-if)#switchport mode trunk
SW1(config-if)#switchport trunk encapsulationdot1q
SW1(config)#int fa 1/15
SW1(config-if)#switchport mode trunk
SW1(config-if)#switchport trunk encapsulationdot1q
SW2(config)#int port-channel 1
SW2(config-if)#switchport mode trunk
SW2(config-if)#switchport trunk encapsulationdot1q
8.给R1公司出口路由器配置单臂路由以及外网接口
R1(config)#int fa 0/0
R1(config-if)#no shut
R1(config-if)#ex
*Mar 1 00:46:06.039: %LINK-3-UPDOWN: InterfaceFastEthernet0/0, changed state to up
*Mar 1 00:46:07.039: %LINEPROTO-5-UPDOWN: Lineprotocol on Interface FastEthernet0/0, changed state to up
R1(config)#int fa 0/0.10
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#int f0/0.20
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip add 192.168.20.1255.255.255.0
R1(config-subif)#int f0/0.10
R1(config-subif)#ip add 192.168.10.1255.255.255.0
R1(config-subif)#no shut
R1(config-subif)#end
R1(config)#int fa 0/1
R1(config-if)#ip add 202.106.1.1 255.255.255.0
R1(config-if)#no shut
R1(config)#ip route 0.0.0.0 0.0.0.0fastEthernet 0/1
9.配置R2
R2(config)#int fa 0/0
R2(config-if)#ip add 202.106.1.2 255.255.255.0
R2(config-if)#no shut
R2(config)#ip route 0.0.0.0 0.0.0.0fastEthernet 0/1
实验最后PC没有PING通网关!请高手指点指点!
实验完成
孤狼
2014年2月19日23:20:59