首页 > 编程知识 正文

同一个vlan不同网段怎么通讯,同网段不同vlan

时间:2023-05-06 20:25:02 阅读:162109 作者:4656

VLANIF是VLAN之间的通信实验拓扑图

实验要求

1 .将交换机名称更改为S2 S3

在S2 S3中,适当地构成为能够在3个VLAN间进行通信

配置

交换机S2:

华威系统- viewentersystemview, returnuserviewwithctrlz.[ Huawei ] sysname S2//更改交换机名称S2[S2]undo info-center enable //域名解析信息提示info : informationcenteris van batch 102030 info : thisoperationmaytakeafewseconds.pleasewaitforamoment . done 端口链接类型访问[ S2 -以太网0/0/1 ] portdefaultvlan 10 [ S2 -以太网0/0/1 ] int E0/0/0/2 [ S2 -以太网3 [ S2 -以太网0/0/3 ]端口链接类型访问[ S2 -以太网0/3 ] int E0/0/4 [ S2 -以太网0/0/4 ]端口链接直接按porttrunkallow-pass VLAN 102030 [ S2 ] ctrl z在用户视图S2 savethecurrentconfigurationwillbewrittentothedevice.areyousuretocococon [ y/n ] ynowsavingthecurrentconfigurationtotheslot0. savetheconfigurationsuccessfully.http://ww.Sina.com /

华威系统- viewentersystemview, returnuserviewwithctrlz.[ Huawei ] undo info-centerenableinfo 3360 informationcenterisdisabled.[ Huawei ] sysname S3 [ S3 ] van batch 102030 info : thisoperationmaytakeafewseconds.pleasewaitforamoment . done.[ S3 ] intg0/0/1[ S3-gigigabit etigabit etettttion port link-type trunk [ S3千兆以太网0/0/1 ] porttrunkallow-pass VLAN 102030 [ S3千兆以太网0/0/1 ] quit此处[ S3 ] interface vlanif 10 [ S3-vlanif 10 ] IP address 10.0.0.9924 [ S3-vlanif 10 ] quit [ S3 ] interface vlanif 10 [ S3 ] IP quit [ S3 ] interface vlanif 30 [ S3-vlanif 30 ] IP address 192.168.1.9924 [ S3-vlanif 30 ] IP address 192.168.1.9924 q924 [ y/n ] ynowsavingthecurrentconfigurationtotheslot0. savetheconfigurationsuccessfully.http://ww.Sina.com/pc1-1 ping PC3-1 ping PC1-1 :都能够进行通信

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。