好文档 - 专业文书写作范文服务资料分享网站

交换机(端口+IP+MAC)配置模板

天下 分享 时间: 加入收藏 我要投稿 点赞

S21交换机(端口+IP+MAC)配置模板

福 建 星 网 锐 捷 网 络 有 限 公 司 800技术支持平台 800-858-1360

福州总部 福州市金山大道618号橘园洲星网锐捷科技园 邮编:350002

www.ruijie.com.cn

S21交换机(端口+IP+MAC)配置模板:

IP+MAC+端口:

例:在端口F0/2上绑定:IP:192.168.12.202 MAC: 00d0.f800.073c的主机。 Switch# configure terminal !进入全局配置模式

Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet 0/2 !进入端口2配置模式

Switch(config-if)# switchport mode access !把端口模式改为access口

Switch(config-if)# switchport port-security !启用端口安全

Switch(config-if)# switchport port-security maximum 24 !最多允许24个mac地址,最大128

Switch(config-if)# switchport port-security mac-address 00d0.f800.073c !端口和mac地址的绑定

Switch(config-if)# switchport port-security mac-address 00d0.f800.073c ip-address 192.168.12.202 !端口+mac地址+ip地址绑定 Switch(config-if)# end Switch#wr

下面是操作时的截图:

Initializing... Done

2006-03-10 14:57:06 @5-COLDSTART:System coldstart

Switch> Switch> Switch>en Password: Switch#config t

福 建 星 网 锐 捷 网 络 有 限 公 司 800技术支持平台 800-858-1360

福州总部 福州市金山大道618号橘园洲星网锐捷科技园 邮编:350002

www.ruijie.com.cn

Enter configuration commands, one per line. End with Switch(config)#interface f 0/2 2006-03-10 14:57:38 @5-CONFIG:Configured from Switch(config-if)#switchport mode access 2006-03-10 14:58:32 @5-CONFIG:Configured from outband Switch(config-if)#switchport port-security

Switch(config-if)#switchport port-security maximum 24

2006-03-10 15:04:51 @5-CONFIG:Configured from outband

Switch(config-if)#Switch(config-if)#switchport port-security mac-address 00d0.f800.073c 2006-03-10 15:24:56 @5-CONFIG:Configured from outband

Switch(config-if)#$rity mac-address 00d0.f800.073c ip-address 192.168.12.202 2006-03-10 15:25:13 @5-CONFIG:Configured from outband

% Prompt: enable ARP check can provide more secure policy to refuse illegal ARP packet.

Switch(config-if)#end

2006-03-10 15:25:43 @5-CONFIG:Configured from outband Switch#wr

Building configuration... [OK] Switch#

模版如下:

configure terminal

interface fastethernet 0/2 switchport mode access switchport port-security

switchport port-security maximum 24

switchport port-security mac-address 00d0.f800.073c

switchport port-security mac-address 00d0.f800.073c ip-address 192.168.12.202 end

S21交换机(端口+IP)配置模板:

配置信息:

Switch#show run

System software version : 1.63 Build Jan 6 2006 Rel

Building configuration...

Current configuration : 1183 bytes !

福 建 星 网 锐 捷 网 络 有 限 公 司 800技术支持平台 800-858-1360

福州总部 福州市金山大道618号橘园洲星网锐捷科技园 邮编:350002

www.ruijie.com.cn

CNTL/Z. outband

33gye337zz3ef8l93tro
领取福利

微信扫码领取福利

微信扫码分享