烽火交换机常用的基本配置命令配置案例.doc
文本预览下载声明
最常用的基本配置命令
用户名:admin
默认密码:12345
3528#show interface 1 查看端口状态
3528#show interface staistics 1 查看端口流量(realtime rate)
3528#show vlan all 查看所以VLAN
3528#show vlan 151 查看VLAN信息
3528#config
3528(config)#interface vlan 332 创建vlan 332
3528(config)#no vlan 332 删除vlan 332
3528(config)#interface ethernet 9 进入某个端口
3528(config-eth-9)#join vlan 332 untagged 9端口加入到vlan332 非标记端口
3528(config-eth-9)#pvid 332 9端口标记pvid 332
3528(config-eth-9)#rate-limit rx 1024 收为1M带宽(数值必须是64的整数倍) 例: 20480为20M
3528(config-eth-9)#rate-limit tx 1024 发为1M带宽(数值必须是64的整数倍) 例:20480为20M
3528(config-eth-9)#description ...... 端口描述
3528(config-eth-9)#shutdown 关闭9号端口 no shutdown 开启9号端口
3528(config-vlan-332)#description ...... vlan描述
3528#write file 保存配置
案例:
城域网 1.1.1.6
1 v66(管理vlan) 1.1.1.1
S3828MF
2 3 4
/业务1/ /业务2/ /拨号用户/(DSLAM) /固定IP用户/
V100 V200 V300 V400
(打标的原则:A.设备接设备tag,设备接用户untag;
B.端口对端打标状态始终与本端口一致,即对端tag,则端口tag,对端untag,则端口untag.
C.untag的端口一定要打相应的pvid值)
1 在config模式下 创建vlan,更改用户名和密码,更改主机名称
S3500(config)#hostname HostA
更改主机名称
HostA (config)#
S3500(config)#adduser aaa group administrators password 111
增加一个名为“aaa”,密码为111管理员用户
S3500(config)#interface vlan 100
创建vlan100并进入
S3500(config-vlan-100)# interface vlan 200
创建vlan200并进入
S3500(config-vlan-200)#quit
退出vlan200
S3500(config)# interface vlan 66,300,400
创建vlan300和 400,在config模式下创建vlan如果只带1个参数则表示创建这个vlan并进入,如果跟2个参数,则代表创建连续的多个vlan,vlan号为第1个参数到第2个参数,使用no命令删除,命令行定义跟创建vlan一样
2 在vlan配置模式下,绑定vlan的IP地址
S3500(config-vlan-66)#i
显示全部