3550的基本配置

拓扑描述
SW1的F0/8,F0/9与SW2F0/8,F0/9连接,F0/1与R1的F0/0连接。
SW2的F0/2与R2的F1/0连接,F0/3与R3的F1/0连接。
Case 1,单臂路由
SW1
conf t
vlan 2
exit
vlan3
exit
vtp donain cisco
vtp mode server
int range f 0/1 ,f0/8 -9
switchport trunk encap dot1q
switchport mode trunk
exit
 
SW2
conf t
vtp domain cisco
vtp mode client
int range f0/8 -9
switchport trunk encap dot1q
switchport mode trunk
exit
int f0/2
switchport mode access
switchport access vlan 2
int f 0/3
switchport mode access
switchport access vlan 3
exit
 
R1
conf t
int f 0/0
no shut
int f 0/0.2
encap dot1q 2
ip ad 10.1.2.1 255.255.255.0
int f 0/0.3
encap dot1q 3
ip ad 10.1.3.1 255.255.255.0
end
 
R2
conf t
int f 1/0
ip ad 10.1.2.2 255.255.255.0
no shut
 
R3
conf t
int f 1/0
ip ad 10.1.3.3 255.255.255.0
no shut
 
Case 2, 配置SVI
本实验由R2, R3和SW2完成,在这里,R2和R3被模拟成为PC,因此要使用no ip routing命令去除其路由功能
 
SW2
conf t
vlan 2
exit
vlan 3
exit
int vlan 2
ip ad 10.2.2.1 255.255.255.0
no shut
int vlan 3
ip ad 10.2.3.1 255.255.255.0
no shut
exit
ip routing
int f0/2
sw mo a
sw a vlan 2
int f 0/3
sw mo a
sw a vlan 3
end
 
R2
conf t
no ip routing
ip default-gateway 10.2.2.1
int f 1/0
ip ad 10.2.2.2 255.255.255.0
no shut
end
 
R3
conf t
no ip routing
ip default-gateway 10.2.3.1
int f1/0
ip ad 10.2.3.3 255.255.255.0
no shut
end
 
Case 3,二层Etherchannel
在Case1中,由于STP的原因,会是两台交换机间的某个接口变成非指派端口,从而转换成为Block状态(我会在后面的文章里讲述STP,PVST,MST)。为了使交换机间所有的端口被启用,做负载平衡,并增加带宽。我们使用Etherchannel来解决这个问题
SW1
conf t
int range f 0/8 -9
sw trunk encap dot1q
sw mode trunk
channel-group 1 mode on
end
其余配置同Case 1
 
SW2
conf t
int range f 0/8 -9
sw trunk encap dot1q
sw mode trunk
channel-group 1 mode on
end
其余配置同Case 1
 
Case 4:三层Etherchannel
SW1
conf t
int port-channel 1
no sw
ip ad 10.2.1.1 255.255.255.0
no shut
int range f0/8 -9
no switchport
channel-group 1 mode on
exit
int f 0/1
no sw
ip ad 10.1.1.2 255.255.255.0
no shut
router rip
ver 2
no au
net 10.0.0.0
end
 
 
SW2
conf t
int port-channel 1
no sw
ip ad 10.2.1.2 255.255.255.0
no shut
int range f 0/8 -9
no sw
channel-group 1 mode on
int f 0/2
no sw
ip ad 10.1.2.1 255.255.255.0
no shut
router rip
ver 2
no au
net 10.0.0.0
 
R1
conf t
int f 0/0
ip ad 10.1.1.1 255.255.255.0
no shut
router rip
ver 2
no au
net 10.0.0.0
end
 
R2
conf t
int f 1/0
ip ad 10.1.2.2 255.255.255.0
no shut
router rip
ver 2
no au
net 10.0.0.0
end
 
 
以上就是3550的基本配置。由于比较简单,就不做测试了。

本文出自 “穿过地狱去看海” 博客,谢绝转载!

你可能感兴趣的:(配置,职场,休闲)