olti 发表于 2013-8-29 09:01:08

cisco交换机vlan,中继,以太网通道的配置

实验:vlan,中继,以太网通道的配置
一、实验目标:(1)配置vlan,中继,以太网通道二、任务分解:(1)创建vlan(2)vlan中添加端口(3)端口上封装802.1Q(4)中继中添加vlan(5)把2个快速以太网端口绑定成以太网通道(EthernetChannel)(6)在以太网通道上配置Trunk三、拓扑结构:四、背景要求:(1)两台交换机上创建vlan10、vlan20(2)把两个交换机的interface 0/11分配给vlan10,interface 0/12分配给vlan20(3)每台交换机的interface 0/1配置为两台交换机的中继端口,在中继线路上增加vlan(4)配置两台交换机的interface 0/1,interface 0/2端口做以太网通道中继线路五、配置1、创建vlan(1)进入交换机vlan配置模式:switch1#vlan database(2)创建vlan10并命名为test1switch1(vlan)#vlan 10 name test1(3)创建vlan20并命名为test2switch1(vlan)#vlan 20 name test2(4)退出后查看vlan的配置
switch1#show vlan(switch2和switch1同样的配置)2、在vlan中添加端口(1)进入配置状态switch1#configure terminal(2)进入端口配置状态switch1(config)#interface fastethernet0/11(3)指定端口为接入链路端口switch1(config-if)#switchport mode access(4)将端口分配到指定vlan中switch1(config-if)#switchport access vlan 10(5)退出switch1(config-if)#end(6)查看vlan的配置switch1#show vlan(vlan中添加端口0/12同上,switch2配置同上)3、在端口上封装802.1Q(1)进入配置状态switch1#configure terminal(2)进入端口配置状态switch1(config)#interface fastethernet0/1(3)设置端口为强制trunk方式switch1(config-if)#switchport mode trunk(4)退出switch1(config-if)#end(5)验证配置情况switch1#show interface fastethernet 0/1 switchport(swithc2配置同上)4、把2个端口绑定成Channel将2台交换机的interface fastethernet0/1、interface fastethernet0/2端口配置成以太通道(1)进入配置状态
switch1#configure terminal(2)将fa0/1、fa0/2分在以太通道组1中switch1(config)#interface range fastethernet0/1-2(3)将以太通道状态设成onswitch1(config-if-range)#channel-group 1 mode on(switch2配置同上)5、小测试(1)为pc1配置IP地址:10.0.0.1 并连接交换机1的11端口(2)为pc2配置IP地址:10.0.0.2 并连接交换机1的12端口(3)为pc3配置IP地址:10.0.0.3 并连接交换机2的11端口(4)为pc4配置IP地址:10.0.0.4 并连接交换机2的12端口PC1 ping PC3 通    PC2 ping PC4 通说明vlan配置正确

78144666 发表于 2013-8-31 22:44:29

你的丑和你的脸没有关系。。。。。。

座机 发表于 2013-9-2 22:47:08

昨天,系花对我笑了一下,乐得我晚上直数羊,一只羊,两只羊,三只羊……

jonvi 发表于 2013-9-4 10:23:05

男人在结婚前觉得适合自己的女人很少,结婚后觉得适合自己的女人很多。

xxxmenger 发表于 2013-9-9 17:03:39

勿以坑小而不灌,勿以坑大而灌之。

sdfsdnfslk 发表于 2013-9-14 04:50:10

佛曰,色即是空,空即是色!今晚,偶想空一下

gdx 发表于 2013-9-22 04:15:18

人生不能像做菜、把所有的料都准备好才下锅!
页: [1]
查看完整版本: cisco交换机vlan,中继,以太网通道的配置