烽火交换机S2000单独划分VLAN的方法

S2000MFB#config
%Enter configuration commands.End with Ctrl+Z or command “quit” & “end”
S2000MFB(config)#host s0369
s0369(config)#in vlan 101
s0369(config-vlan-101)#q
s0369(config)#in vlan 3601 3608
%Creating Vlan 3601,3602,3603,3604,3605,3606,3607,3608,

s0369(config)#system
s0369(config-system)#ip add 10.17.1.115 255.255.0.0
s0369(config-system)#ma vl 101
s0369(config-system)#q
s0369(config)#in et 1
s0369(config-eth-1)#join vlan 101,3601-3608 ta
s0369(config-eth-1)#q
s0369(config)#in et 2
s0369(config-eth-2)#join vlan 3602 un
s0369(config-eth-2)#pv 3602
s0369(config-eth-2)#q
s0369(config)#in et 3
s0369(config-eth-3)#join vlan 3603 un
s0369(config-eth-3)#pv 3603
s0369(config-eth-3)#q
s0369(config)#in et 4
s0369(config-eth-4)#join vlan 3604 un
s0369(config-eth-4)#pv 3604
s0369(config-eth-4)#q
s0369(config)#in et 5
s0369(config-eth-5)#join vlan 3605 un
s0369(config-eth-5)#pv 3605
s0369(config-eth-5)#q
s0369(config)#in et 6
s0369(config-eth-6)#join vlan 3606 un
s0369(config-eth-6)#pv 3606
s0369(config-eth-6)#q
s0369(config)#in et 7
s0369(config-eth-7)#join vlan 3607 un
s0369(config-eth-7)#pv 3607
s0369(config-eth-7)#q
s0369(config)#in et 8
s0369(config-eth-8)#join vlan 3608 un
s0369(config-eth-8)#pv 3608
s0369(config-eth-8)#q
s0369(config)#q
s0369#write file
This will save the configuration in the flash memory.
Are you sure?(y/n) [y]
Building configuration…

[OK]
s0369#show vlan
There are 10 vlan in the system.


        (D=Dynamic,T=Tagged,U=Untagged,-=None)

Vlan 1------8 9
1 UUUUUUUU U
101 T------- -
3601 T------- -
3602 TU------ -
3603 T-U----- -
3604 T–U---- -
3605 T—U--- -
3606 T----U-- -
3607 T-----U- -
3608 T------U -

s0369#show system
system anti-attack enable
system mac address 00.04.67.95.F0.5A
system mac aging time 300
system address learn mode : independence
dot1q ingress-filter disable
ip address 10.17.1.115/16
management vlan 101
gateway 0.0.0.0
out-band ip address 192.168.2.1/24
arp-request timer 0

bpdu tunnel mac 01:80:C2:00:00:03 to all-port

s0369#
---------------添加网关
s0245#config
%Enter configuration commands.End with Ctrl+Z or command “quit” & “end”
s0245(config)#system
s0245(config-system)#gateway
A.B.C.D switch GatewayAddr
s0245(config-system)#gateway 10.17.0.1
----------恢复出厂设置
s0369#config
%Enter configuration commands.End with Ctrl+Z or command “quit” & “end”
s0369(config)#erase startup-config
This will erase the configuration in the flash memory.
Are you sure?(y/n) [y]y
Erasing configuration…
[OK]
s0369(config)#end
s0369#reboot
WARNING:System will reboot! Continue?(y/n) [y]y
System now is rebooting,please wait.
--------添加激连口
—每个上连口都要做好vlan数据
s0030(config)#in vlan 3601 3608
%Creating Vlan 3601,3602,3603,3604,3605,3606,3607,3608,

s0030(config)#in et 3
s0030(config-eth-3)#join vlan 101,3601-3608 ta
s0030(config-eth-3)#q
s0030(config)#q
s0030#show vlan
There are 26 vlan in the system.
The vlan as follow :
1,101,3001-3008,3017-3024,3601-3608
s0030#show vlan 3003
Vlan Type : static
Vlan Desc : vlan3003
Dynamic Member : none
Tagged Member : 1
Untagged Member : none
s0030#

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值