该实验是本人在CCNA培训时老师教的一个实验,我觉得挺有含量的一个CCNA实验!!!!!
这个实验<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />刘老师(呵呵,不能告诉你们名字,等下说我侵权呢)给我们演示过一遍,拾得多少就多少了,就一边而已,毕竟人家讲课是要钱的,上够那么多个课时,就够了,当然了,现场有什么疑问当然可以问了。本文章是用
packet tracer 5.
完成的,当然,真家伙也可以完成了
.
这个实验的主要思路是酱子的:
PC3
走
sw3—sw1--r1—r3
(电信),
PC4
走
sw3—sw2—r2---r4(
网通
)
,两台
3560
,做
HSRP
,线路做冗余和
channel
;两台
3560
和
2
台
路由间也有线路冗余;
3560
和
2960
间也可以有线路冗余作用,r1和r2上做NAT
现在,开工了:
设备选的是路由
2811
,交换
3560
,
2960
第一步,连线,最基本的了
,连线都不懂的话那就去死算了(开玩笑的了):
R1 fa0/0------sw1 fa0/11
fa0/1-----sw2 fa0/12
s0/0/0----r3 s0/0/0
r2 fa0/0------sw2 fa0/11
fa0/1-------sw1 fa0/12
s0/0/1-----r4 s0/0/0
sw1 fa0/23----sw2 fa0/23
fa0/24----sw2 fa0/24
fa0/1-----sw3 fa0/1
sw2 fa0/2----sw3 fa0/2
sw3 fa0/3-----pc 3
fa0/4------pc 4
第二步:配置
1、
我们先来基本配置这
3
个交换机:
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#no ip domain-loo
Switch(config)#line 0
Switch(config-line)#no exec-timeout
Switch(config-line)#logg s
Switch(config-line)#exit
Switch(config)#hos sw1
sw1(config)# //
这
7
步是最基本的,各个路由器,交换机,建议都要敲
Switch#conf t
sw1(config)#int fa0/1
sw1(config-if)#swi mod trun
sw1(config-if)#int ran fa0/23 - 24
sw1(config-if-range)#swi mod trun
sw1(config-if-range)#channel-group 1 mode on //
做
channel
sw1(config-if-range)#end
验证下,
sw1#show etherchannel summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+----------------------------------------------
1 Po1 PAgP Fa0/23(P) Fa0/24(P)
看,
a0/23 ,fa0/24
已经在
portchannel 1
了
同理,也要在
sw2
上做
trunk
和
channel
,
sw2
的配置就省略了,待会说我看不起
paper
了
~~~
Sw3:
sw3(config)#conf t
^
% Invalid input detected at '^' marker.
sw3(config)#int ran fa0/3 - 4
sw3(config-if-range)#swi mod access
sw3(config-if-range)#int ran fa0/1 - 2
sw3(config-if-range)#swi mod trun
接着对
sw1
做配置
vtp
和
vlan
的创建:
sw1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
sw1(config)#vtp mode server // sw2,sw3
的设置成
client
Device mode already VTP SERVER.
sw1(config)#vtp domain cisco
Changing VTP domain name from NULL to cisco
sw1(config)#vlan 3
sw1(config-vlan)#vlan 4
sw1(config-vlan)#exit
sw1(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
到这里,你将会发现,
sw2,sw3
上都有
vlan3
,
vlan4
了,特权模式下用
show vlan
命令查(望见笑,毕竟是写给
papers
的文章,所以写得详细些),还有,把
sw2,sw3
的模式设置成
client
模式,安全点,都是
server
模式的话,可能乱套了,为什么
sw2,sw3
上会有
vlan3
和
4
呢,自己想下吧
~~
继续对
sw3
做配置,设
PC3
属于
vlan3
,
pc4
属于
vlan4
:
sw3(config)#int fa0/3
sw3(config-if)#switchport acc vlan 3
sw3(config-if)#int fa0/4
sw3(config-if)#swi acc vlan 4
sw3(config-if)#end
累了,休息下先,终于知道写文章难了,主要是组织文字难啊,要写得让人看得懂!!
未完哦,待续
~~~
休息片刻
~~~
转载于:https://blog.51cto.com/chenyongning/101290