永发信息网

华为s5700怎么配置通过端口划分vlan

答案:2  悬赏:80  手机版
解决时间 2021-03-21 14:29
  • 提问者网友:無理詩人
  • 2021-03-21 11:25
现在有两台华为S5700 一台做管理交换机,一台做业务交换机,也就是说配置其中一台作为业务交换机即可,现在已经用secretCRT工具连接上,步骤如何操作。
最佳答案
  • 五星知识达人网友:行路难
  • 2021-03-21 12:49
1.创建VLAN
vlan batch x x x //x为VLAN ID
2.接口类型(hybrid不做介绍)
interface g0/0/0
port link-type access //access类型,针对PC
port def vlan x //将该接口加入VLAN x
interface g0/0/1
port link-type trunk //trunk类型,常用作连接SW和SW或SW与RT之间的链路
port trunk all vlan x //允许vlan x通过
3.具体操作

sys 进入视图模式
vlan batch x
interface g0/0/0 接口与交换机互联
port link-type trunk
port trunk all vlan all
interface g0/0/1 接口连接PC
port link-type access
port def vlan x
基本配置,其他接口无太大区别,只需要针对不同业务对应的VLAN,进行配置即可;
quit
quit
save
最后保存即可!
全部回答
  • 1楼网友:爱难随人意
  • 2021-03-21 13:03
s5700共24个端口,现在要求端口1-12加入vlan1,端口13-14加入vlan2,端口vlan15-16加入vlan3,端口17-18加入vlan4,端口19-20加入vlan5,端口21-22加入vlan6,端口23-24加入vlan7.要求vlan1可以互通vlan2 vlan3 vlan4 vlan5 vlan6 vlan7,但vlan2 vlan3 vlan4 vlan5 vlan6 vlan7不能互通,并且每个端口下连接的是傻瓜交换机,在每个交换机下的pc要求能自动获取到ip。所有服务器都在192.168.1.0段,vlan1的ip192.168.1.1 vlan2的ip192.168.2.1 vlan3的ip192.168.3.1 vlan4的ip192.168.4.1 vlan5的ip192.168.5.1 vlan6的ip192.168.6.1 vlan7的ip192.168.7.1 命令如下: system-view enter system view, return user view with ctrl+z. [quidway]port-group 1 [quidway-port-group-1]group-member gigabitethernet 0/0/1 to gigabitethernet 0/0/ 12 [quidway-port-group-1] oct 1 2008 00:12:28+08:00 quidway ds/4/datasync_cfgchange:oid 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. the current change number is 2, the change loop count is 0, and the maximum number of records is 4095. [quidway-port-group-1]port link-type trunk [quidway-gigabitethernet0/0/1]port link-type trunk [quidway-gigabitethernet0/0/2]port link-type trunk [quidway-gigabitethernet0/0/3]port link-type trunk [quidway-gigabitethernet0/0/4]port link-type trunk [quidway-gigabitethernet0/0/5]port link-type trunk [quidway-gigabitethernet0/0/6]port link-type trunk [quidway-gigabitethernet0/0/7]port link-type trunk [quidway-gigabitethernet0/0/8]port link-type trunk [quidway-gigabitethernet0/0/9]port link-type trunk [quidway-gigabitethernet0/0/10]port link-type trunk [quidway-gigabitethernet0/0/11]port link-type trunk [quidway-gigabitethernet0/0/12]port link-type trunk [quidway-port-group-1]port oct 1 2008 00:12:58+08:00 quidway ds/4/datasync_cfgchange:oid 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. the current change number is 14, the change loop count is 0, and the maximum number of records is 4095. [quidway-port-group-1]port trunk allow-pass vlan 1 to 7 [quidway-gigabitethernet0/0/1]port trunk allow-pass vlan 1 to 7 [quidway-gigabitethernet0/0/2]port trunk allow-pass vlan 1 to 7 [quidway-gigabitethernet0/0/3]port trunk allow-pass vlan 1 to 7 [quidway-gigabitethernet0/0/4]port trunk allow-pass vlan 1 to 7 [quidway-gigabitethernet0/0/5]port trunk allow-pass vlan 1 to 7 [quidway-gigabitethernet0/0/6]port trunk allow-pass vlan 1 to 7 [quidway-gigabitethernet0/0/7]port trunk allow-pass vlan 1 to 7 [quidway-gigabitethernet0/0/8]port trunk allow-pass vlan 1 to 7 [quidway-gigabitethernet0/0/9]port trunk allow-pass vlan 1 to 7 [quidway-gigabitethernet0/0/10]port trunk allow-pass vlan 1 to 7 [quidway-gigabitethernet0/0/11]port trunk allow-pass vlan 1 to 7 [quidway-gigabitethernet0/0/12]port trunk allow-pass vlan 1 to 7 [quidway-port-group-1] oct 1 2008 00:14:18+08:00 quidway ds/4/datasync_cfgchange:oid 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. the current change number is 26, the change loop count is 0, and the maximum number of records is 4095. [quidway-port-group-1]port trunk pvid vlan 1 [quidway-gigabitethernet0/0/1]port trunk pvid vlan 1 [quidway-gigabitethernet0/0/2]port trunk pvid vlan 1 [quidway-gigabitethernet0/0/3]port trunk pvid vlan 1 [quidway-gigabitethernet0/0/4]port trunk pvid vlan 1 [quidway-gigabitethernet0/0/5]port trunk pvid vlan 1 [quidway-gigabitethernet0/0/6]port trunk pvid vlan 1 [quidway-gigabitethernet0/0/7]port trunk pvid vlan 1 [quidway-gigabitethernet0/0/8]port trunk pvid vlan 1 [quidway-gigabitethernet0/0/9]port trunk pvid vlan 1 [quidway-gigabitethernet0/0/10]port trunk pvid vlan 1 [quidway-gigabitethernet0/0/11]port trunk pvid vlan 1 [quidway-gigabitethernet0/0/12]port trunk pvid vlan 1 [quidway-port-group-1] oct 1 2008 00:14:48+08:00 quidway ds/4/datasync_cfgchange:oid 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. the current change number is 38, the change loop count is 0, and the maximum number of records is 4095. [quidway-port-group-1]quit [quidway]interface vlanif 1 [quidway-vlanif1]ip address 192.168.1.1 24 [quidway-vlanif1] oct 1 2008 00:16:48+08:00 quidway ds/4/datasync_cfgchange:oid 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. the current change number is 40, the change loop count is 0, and the maximum number of records is 4095. [quidway-vlanif1] [quidway-vlanif1] [quidway-vlanif1] [quidway-vlanif1]quit [quidway]vlan 2 [quidway-vlan2]quit [quidway]interface gigabitethernet 0/0/13 [quidway-gigabitethernet0/0/13]port link-type trunk [quidway-gigabitethernet0/0/13]port trunk allow-pass vlan 1 ? integer<1-4094> vlan id to range link symbol [quidway-gigabitethernet0/0/13]port trunk allow-pass vlan 1 2 [quidway-gigabitethernet0/0/13] oct 1 2008 00:24:38+08:00 quidway ds/4/datasync_cfgchange:oid 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. the current change number is 46, the change loop count is 0, and the maximum number of records is 4095. [quidway-gigabitethernet0/0/13]port trunk pvid vlan 1 [quidway-gigabitethernet0/0/13]dis th # interface gigabitethernet0/0/13 port link-type trunk port trunk allow-pass vlan 2 # return [quidway-gigabitethernet0/0/13] oct 1 2008 00:25:08+08:00 quidway ds/4/datasync_cfgchange:oid 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. the current change number is 47, the change loop count is 0, and the maximum number of records is 4095. [quidway-gigabitethernet0/0/13] [quidway-gigabitethernet0/0/13]qu [quidway-gigabitethernet0/0/13]quit [quidway]interface vlanif 2 [quidway-vlanif2]ip address 192.168.2.1 24 [quidway-vlanif2]dhcp select global [quidway-vlanif2] [quidway-vlanif2]dhcp server ? dns-list configure dns servers domain-name configure domain name excluded-ip-address mark disable ip addresses lease configure the lease of the ip pool nbns-list configure the windows's netbios name servers netbios-type netbios node type option configure the dhcp options option121 dhcp option 121 option184 dhcp option 184 static-bind static bind [quidway-ip-pool-vlan2]network 192.168.2.0 mask 24 [quidway-ip-pool-vlan2]gateway-list 10[1d [1d92.168.0.1[1d [1d[1d [1d[1d [1d2.1 [quidway-ip-pool-vlan2] oct 1 2008 00:52:08+08:00 quidway ds/4/datasync_cfgchange:oid 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. the current change number is 68, the change loop count is 0, and the maximum number of records is 4095. [quidway-ip-pool-vlan2] [quidway-ip-pool-vlan2] [quidway]interface gigabitethernet 0/0/14 [quidway-gigabitethernet0/0/14] [quidway-gigabitethernet0/0/14]port trunk allow-pass vlan 1 2 [quidway-gigabitethernet0/0/14] oct 1 2008 00:59:27+08:00 quidway %%01ifnet/4/if_state(l)[39]:interface vlanif2 has turned into up state. oct 1 2008 00:59:27+08:00 quidway %%01ifnet/4/linkno_state(l)[40]:the line protocol on the interface vlanif2 has entered the up state. oct 1 2008 00:59:28+08:00 quidway ds/4/datasync_cfgchange:oid 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. the current change number is 71, the change loop count is 0, and the maximum number of records is 4095. [quidway-gigabitethernet0/0/14]port trunk pvid vlan 2 ps:本人只配置了vlan2的接口、ip、dhcp,vlan3至vlan7与valn2配置类似不再赘述。 需要注意的是port trunk allow-pass vlan 1 x和port trunk pvid vlan x(其中x为 接口的vlan,注意空格,不同设备对vlan定义有所区别 ,)allow-pass也可能会是permit版本不同命令有所区别。 有个问题:‘dhcp server forbidden-ip’交换机无法识别不知哪位大侠能指点一下,在此拜谢o(∩_∩)o~
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯