在Catalyst 2950交换机、Catalyst 3550交换机和3940路由器上实现三层交换

 

1.1 实验任务

 

1.2 实验环境和网络拓扑

 

 

1.3 完成标准

实现三层交换,使得VLAN之间的主机能够通信。

 

 

2.详细操作步骤

 

Step 1: 指定端口Trunk,配置VLAN

(1)     2950交换机上指定端口Trunk,配置VLAN

 

交换机2950配置如下:

Switch>en

Switch#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#ho 2950

2950(config)#interface f0/1

2950(config-if)#switchport mode trunk                      //配置端口1为中继模式

2950(config-if)#exit

2950(config)#exit

2950#vlan d

2950(vlan)#vtp domain 2t57                               //配置VTP域为2t57

Changing VTP domain from NULL to 2t57

2950(vlan)#vtp server                                   //VTP模式为服务器模式

2950(vlan)#vlan 10                                       //添加VLAN 10

VLAN 10 added:

    Name:VLAN0010

2950(vlan)#vlan 20                                       //添加VLAN 20

VLAN 20 added:

    Name:VLAN0020

2950(vlan)#exit

APPLY completed.

Exiting....

2950#show vlan brief

 

VLAN Name                             Status    Ports

---- -------------------------------- --------- -------------------------------

1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4

                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8

                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12

10   VLAN0010                         active   

 

20   VLAN0020                         active    //VLAN 1020添加成功

1002 fddi-default                     active

1003 token-ring-default               active

1004 fddinet-default                  active

1005 trnet-default                    active

 

2950#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

2950(config)#interface f0/11

2950(config-if)#switchport access vlan 10                  //将端口11加入到VLAN 10

2950(config-if)#interface f0/12

2950(config-if)#switchport access vlan 20                  //将端口11加入到VLAN 10

2950(config-if)#exit

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值