搜索

思科 C2960配置

发布网友 发布时间:2022-03-03 11:10

我来回答

2个回答

热心网友 时间:2022-03-03 12:40

两个交换机通过VTP设置,C2960交换机将自动学习到C3550交换机的VLAN信息,然后将C2960的相应端口划入相应的VLAN即可。

配置如下:
C3550配置:
3550b#vlan database
3550b(vlan)#vtp ?
client Set the device to client mode.
domain Set the name of the VTP administrative domain.
password Set the password for the VTP administrative domain.
pruning Set the administrative domain to permit pruning.
server Set the device to server mode.
transparent Set the device to transparent mode.
v2-mode Set the administrative domain to V2 mode.

3550b(vlan)#vtp server //将C3550设为VTP服务器,由它控制VLAN信息
Setting device to VTP SERVER.
3550b(vlan)#vtp domain ccnp //VTP域名,和C2960一致
Change vtp domain name to ccnp .
3550b(vlan)#exit
APPLY completed.
Exiting....
3550b#show vtp status //查询VTP状态
。。。
3550b#config t
3550b(config)#int g0/1
3550b(config-if)#switchport mode trunk //将3550和2960连接的端口设置为trunk模式

C2960配置:
2960#vlan database
2960(vlan)#vtp client //将C3550设为VTP服务器,由它控制VLAN信息
Setting device to VTP client
2960(vlan)#vtp domain ccnp //VTP域名,和C3550一致
Change vtp domain name to ccnp .
2960(vlan)#exit
APPLY completed.
Exiting....
2960#show vtp status //查询VTP状态
。。。
2960#config t
2960(config)#int g0/1 //假设2960端口g0/1与3550相连
2960(config-if)#switchport mode trunk //将3550和2960连接的端口设置为trunk模式
2960(config-if)#exit
2960(config)#exit
2960#show vlan //查看3550的vlan信息是否传递到2960

将2960上的相应端口划入相应VLAN

以上 供参考,有问题M我。

热心网友 时间:2022-03-03 13:58

你这个问题,似乎描述得不清楚。

1.就是能使2960交换机分4个网段.
——这个没有问题。

2.1.公司里有4个网段:A: 128.0.211.0 可以上网
B: 128.0.212.0 只可以上局域网
C: 128.0.213.0 可以收发邮件,不可以上网
D: 128.0.214.0 可以上网
——这个2960实现不了。
声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。
E-MAIL:11247931@qq.com
Top