jl_xiaolong 发表于 2013-7-24 09:26:31

在2层交换机和3层交换机相连,两个相连的端口都必须设置成trunk么?

在2层交换机和3层交换机相连,两个相连的端口都必须设置成trunk么?
我在3层交换机上也没有开启ip routing 就配置了两个vlan的网关,之后
这两个vlan就ping通了,这是怎么回事啊?我看视频,老师把2层和3层相连的端口都是设置成了trunk ,我也没有设置trunk 啊


















as3355 发表于 2013-7-24 11:02:33

模拟器的三层交换机ip routing默认开启的   把网关设置在三层交换机你就指定了通向哪里在三层交换机里已经存了这两个网段的ip了其实你两pc互设网关也会通

jl_xiaolong 发表于 2013-7-24 12:59:39

as3355 发表于 2013-7-24 11:02 static/image/common/back.gif
模拟器的三层交换机ip routing默认开启的   把网关设置在三层交换机你就指定了通向哪里在三层交换机里已经 ...

那我在no ip routing 之后还是能通啊

as3355 发表于 2013-7-24 14:51:38

jl_xiaolong 发表于 2013-7-24 12:59 static/image/common/back.gif
那我在no ip routing 之后还是能通啊

no ip routing依然没有用 你查看下路由表,上面有你要路由的网段

jl_xiaolong 发表于 2013-7-24 14:53:48

as3355 发表于 2013-7-24 14:51 static/image/common/back.gif
no ip routing依然没有用 你查看下路由表,上面有你要路由的网段

哦 那三层交换机和二层交换机相连的那个端口用设置成trunk么

as3355 发表于 2013-7-24 15:53:47

要的你说的不用设trunk也能通应该有哪里你没注意吧而且PC和交换机连的不应该是直通线吗

jl_xiaolong 发表于 2013-7-24 16:29:25

as3355 发表于 2013-7-24 15:53 static/image/common/back.gif
要的你说的不用设trunk也能通应该有哪里你没注意吧而且PC和交换机连的不应该是直通线吗

我确定没有设置trunk在PC和交换机之间我改成直通线了,3层交换机的配置是这样的
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
!
interface Vlan20
ip address 192.168.20.1 255.255.255.0
!
interface Vlan30
ip address 192.168.30.1 255.255.255.0
在什么都没有配置

jl_xiaolong 发表于 2013-7-24 16:31:17

as3355 发表于 2013-7-24 15:53 static/image/common/back.gif
要的你说的不用设trunk也能通应该有哪里你没注意吧而且PC和交换机连的不应该是直通线吗

2层交换机上的配置
vlan 20
vlan30
int f0/1
sw mo tr
int f0/2
sw ac vl 20
int f0/3
sw ac vl 30

as3355 发表于 2013-7-24 16:36:08

jl_xiaolong 发表于 2013-7-24 16:31 static/image/common/back.gif
2层交换机上的配置
vlan 20
vlan30


你这不是已经设为trunk了

jl_xiaolong 发表于 2013-7-24 20:40:32

as3355 发表于 2013-7-24 16:36 static/image/common/back.gif
你这不是已经设为trunk了

我是在二层交换机上配置的trunk 在3层交换机上没有配置trunk

as3355 发表于 2013-7-24 21:18:09

。。。端口默认是dyna auto,端口一边是默认一边是tru会自适应成tru的。。。

jl_xiaolong 发表于 2013-7-24 21:26:05

as3355 发表于 2013-7-24 21:18 static/image/common/back.gif
。。。端口默认是dyna auto,端口一边是默认一边是tru会自适应成tru的。。。

是3层交换机的端口默认是dyna auto么二层交换机端口默认是不是dyna auto啊

Luce 发表于 2013-9-7 10:20:39

{:6_269:}
页: [1]
查看完整版本: 在2层交换机和3层交换机相连,两个相连的端口都必须设置成trunk么?