烽火交换机配置(M系列)
- 格式:doc
- 大小:37.50 KB
- 文档页数:3
烽火交换机配置(M系列)
及常用查看命令
1. 进入配置模式
shigongxiaoS2205A#con
%Enter configuration commands.End with Ctrl+Z or command "quit" & "end"
shigongxiaoS2205A(config)#
2.设置交换机名称#
hostname shigongxiaoS2205A
3.配置登录交换机用户名及登录口令
username admin group administrators password 12345
!
4. 新建VLAN号及加入端口
interface vlan 3 //VLAN不存在则新建,存在则修改
member 1 tagged //TRUNK口
member 4,8-9,13 untagged //用户口
interface vlan 99
member 1 tagged
member 24 untagged
interface vlan 209
member 1 tagged
member 11-12 untagged
interface vlan 1252
member 1 tagged
5.配置网管VLAN号、地址及网关
system
management vlan 99
ip address 192.168.3.2/24
gateway 192.168.3.1
6.设置TRUNK口(Tag)端口数据
interface ethernet 1
join vlan 3,99,151,205-209,1252 tagged //TRUNK口为tagged 在VLAN配置和本处端口只需要配置一处。
description TOshinonghang //端口名称
7设置用户口(Untag)端口数据
interface ethernet 2
join vlan 207 untagged //用户口为untagged
description shinongyeju //端口名称 pvid 207 //端口缺省VLAN号与用户VLAN一致(必须配置)
interface ethernet 3
join vlan 208 untagged
description yangguangxinzhuo
duplex auto
pvid 208
!end
8.保存配置
shigongxiaoS2205A(config)#exit
shigongxiaoS2205A#wr f
This will save the configuration to the flash memory.
Are you sure?(y/n) [y]y
Building configuration.....
[OK]
常用查看命令
1. 查看配置
Sh run
2. 查看VLAN配置
shigongxiaoS2205A#sh vlan
There are 10 vlan in the system.
*****************************************************
(D=Dynamic,T=Tagged,U=Untagged,-=None)
*****************************************************
Vlan 1------8 9-----16 17----24 25-26
1 -------- -----UUU UUUUUUUU UU
3 T--U---U U---U--- -------- --
99 T------- -------- -------U --
151 T------- -------- -------- --
205 T---U--- -------- -------- --
206 T----UU- -------- -------- --
207 TU------ -U------ -------- --
208 T-U----- -------- -------- --
209 T------- --UU---- -------- --
1252 T------- -------- -------- --
3.查看端口状态
shigongxiaoS2205A#sh int
If Admin Link CurrDpx/Spd CfgDpx/Spd Descr
1 UP UP Full/100M Auto/---- TOshinonghang
2 UP UP Full/100M Auto/---- shinongyeju
3 UP UP Full/100M Auto/---- yangguangxinzhuo
4 UP UP Full/100M Auto/---- zhouqixiangju 5 UP UP Full/100M Auto/---- shidaoluyunguans
6 UP UP Full/100M Auto/---- shijitingyuan
7 UP UP Full/100M Auto/---- shidishuijuminzh
8 UP UP Full/100M Auto/---- shidishuijubango
9 UP UP Full/100M Auto/---- shifupinban
10 UP UP Full/100M Auto/---- shixinyongshesha
11 UP UP Full/100M Auto/---- shiliangshiju
12 UP UP Full/100M Auto/---- shilingyeju
13 UP UP Full/100M Auto/---- huadejiudian
14 UP Down ----/---- Auto/---- ---
15 UP Down ----/---- Auto/---- ---
16 UP Down ----/---- Auto/---- ---
17 UP Down ----/---- Auto/---- ---
18 UP Down ----/---- Auto/---- ---
19 UP Down ----/---- Auto/---- ---
4.查看端口实时流量
shigongxiaoS2205A#sh int statis 3
Interface Ethernet 3
RealTime Rate :
InBytes Rate(bps) : 258640
InPacket Rate(pps) Ucast : 186, Mcast : 0, Bcast :1
OutBytes Rate(bps) : 446520
OutPacket Rate(pps) Ucast : 186, Mcast : 0, Bcast :0
//电路不正常,则收不到流量
5.查看端口上来的用户MAC地址
shigongxiaoS2205A#sh int dy 3
Total 6 dynamic mac on this interface
Vlan MAC-Address
208 00:04:67:90:80:91
208 00:16:E6:9F:83:22
208 00:14:2A:B3:F3:99
208 00:FF:FF:FF:00:04
208 00:16:17:2D:35:F6
//电路不通,则看不到用户电脑MAC地址
周建光
2007年6月11日