cisco,三层交换机,与路由器,路由协议

  • 格式:docx
  • 大小:29.71 KB
  • 文档页数:11

竭诚为您提供优质文档/双击可除cisco,三层交换机,与路由器,路由协议
篇一:cisco35603层交换机和路由器连接,交换机如何配置
如图。

pc0属于vlan2,pc1属于vlan3,
pc0ip192.168.0.10/24192.168.0.254pc1ip10.139.168.10 /2110.139.168.254。

所有交换机的管理vlan是
vlan4192.168.1.x/2
4。

要求pc0、pc1可以telnet到交换机,和路由器R1,交换机之间可以互ping通,pc0和pc1可以ping通pc3。

pc0、pc1、可以互ping通。

3层交换机和路由器R1如何配置,主要是3层交换机如何配置,我已经在交换机的端口配置好了ip。

路由器之间的ip10.1.1.0/24也已经配置好。

麻烦高后帮忙配置一下3层交换机和路由器。

谢谢。

分享到:20xx-11-2118:00提问者采纳
这种配置我郁闷!我直接打命令看看能不能解决。

同时覆盖你一些配置吧!三层交换机3560
enable
configureterminal
interfacerangefastethernet0/1-2
switchporttrunkencapsulationdot1q
switchportmodetrunk
exit
这个时候,三层交换机接下面的二层交换机都为中继链路了(trunk),同时需要配置vtp,让各个交换机的vlan信息同步,如下配置:
三层交换:
enable
configureterminal
vtpdomainnet
vtpmodeserver
两个二层交换机都要配:
enable
configureterminal
vtpdomainnet
vtpmodeclient
然后在三层交换上配置vlan
enable
vlandatabase
vlan2
vlan3
vlan4
exit
configureterminal
interfacevlan2
ipaddress192.168.0.254255.255.255.0
exit
interfacevlan3
ipaddress10.139.168.254255.255.248.0
exit
interfacevlan4
ipaddress192.168.1.254255.255.255.0
然后在第一个二层交换机上将pc划分相应的vlan当中。

enable
configureterminal
interfacefastethernet0/1
switchportmodeaccess
switchportaccessvlan2
interfacefastethernet0/2
switchportmodeaccess
switchportaccessvlan3
这样内网通信基本没问题了。

可(cisco,三层交换机,与路由器,路由协议)以使用ping命令测试下,pc0和pc1通不通。

然后配置三层交换机的联网外网,和外面的路由器连内网的问题了:
enable
configureterminal
interfacefastethernet0/24
switchportmodetrunk
noswitchport
ipaddress10.139.172.17255.255.255.0
exit
iproute0.0.0.00.0.0.010.139.172.18
右边路由器,配置路由
iproute192.168.0.0255.255.255.0fa0/0
iproute10.139.168.0255.255.248.0fa0/0
iproute192.168.100.0255.255.255.0se0/0/0
iproute192.168.1.0255.255.255.0fa0/0
左边路由器,需要配置一条默认路由可以了
iproute0.0.0.00.0.0.0se0/0/0
网络应该通了。

不过上面的配置会取消二层交换机的管理vlan的地址。

你可以不用配置vtp也可以,不过较为麻烦点。

telnet交换机,一般可以使用以下命令:
enable
configureterminal
enablepasswordcisco
linevty04
login
passwordcisco
回答完毕。

篇二:9三层交换机与路由器间Rip动态路由协议的配置
试题九
三层交换机与路由器间Rip动态路由协议的配置
三层交换机:switch>enswitch#conf
switch(config)#iproutingswitch(config)#vlan10switch (config-vlan)#exitswitch(config)#intrafa0/10
switch(config-if-range)#swaccvlan10switch(config-if -range)#noshswitch(config-if-range)#exitswitch(conf ig)#vlan20switch(config-vlan)#exitswitch(config)#in trafa0/20。