IP捆MIC 资料
[table][tr][td][b][size=9pt]1.[/size][/b][b][size=9pt]方案[/size][/b][b][size=9pt]1——[/size][/b][b][size=9pt]基于端口的[/size][/b][b][size=9pt]MAC[/size][/b][b][size=9pt]地址绑定[/size][/b]
[size=9pt]思科[/size][size=9pt]2950[/size][size=9pt]交换机为例,登录进入交换机,输入管理口令进入配置模式,敲入命令:[/size][size=9pt]
Switch#config terminal
[/size][size=9pt]#进入配置模式[/size][size=9pt]
Switch(config)# Interface fastethernet 0/1
[/size][size=9pt]#进入具体端口配置模式[/size][size=9pt]
Switch(config-if)#Switchport port-secruity
[/size][size=9pt]#配置端口安全模式[/size][size=9pt]
Switch(config-if )switchport port-security mac-address MAC([/size][size=9pt]主机的[/size][size=9pt]MAC[/size][size=9pt]地址[/size][size=9pt])
[/size][size=9pt]#配置该端口要绑定的主机的[/size][size=9pt]MAC[/size][size=9pt]地址[/size][size=9pt]
Switch(config-if )no switchport port-security mac-address MAC([/size][size=9pt]主机的[/size][size=9pt]MAC[/size][size=9pt]地址[/size][size=9pt])
[/size][size=9pt]#删除绑定主机的[/size][size=9pt]MAC[/size][size=9pt]地址[/size]
[font=Times New Roman][/font]
[b][size=9pt]2.[/size][/b][b][size=9pt]方案[/size][/b][b][size=9pt]2——[/size][/b][b][size=9pt]基于[/size][/b][b][size=9pt]MAC[/size][/b][b][size=9pt]地址的扩展访问列表[/size][/b][size=9pt]
[/size]
[size=9pt]Switch(config)Mac access-list extended MAC10
[/size][size=9pt][font=宋体]#定义一个[/font][/size][size=9pt]MAC[/size][size=9pt][font=宋体]地址访问控制列表并且命名该列表名为[/font][/size][size=9pt]MAC10 [/size][size=9pt][font=宋体](转载注明出处[/font][/size][size=9pt]n et130[/size][size=9pt][font=宋体])[/font][/size][size=9pt]
Switch(config)permit host 0009.6bc4.d4bf any
[/size][size=9pt][font=宋体]#定义[/font][/size][size=9pt]MAC[/size][size=9pt][font=宋体]地址为[/font][/size][size=9pt]0009.6bc4.d4bf[/size][size=9pt][font=宋体]的主机可以访问任意主机[/font][/size][size=9pt]
Switch(config)permit any host 0009.6bc4.d4bf
[/size][size=9pt][font=宋体]#定义所有主机可以访问[/font][/size][size=9pt]MAC[/size][size=9pt][font=宋体]地址为[/font][/size][size=9pt]0009.6bc4.d4bf[/size][size=9pt][font=宋体]的主机[/font][/size][size=9pt]
Switch(config-if )interface Fa0/20
#[/size][size=9pt][font=宋体]进入配置具体端口的模式[/font][/size][size=9pt]
Switch(config-if )mac access-group MAC10 in
[/size][size=9pt][font=宋体]#在该端口上应用名为[/font][/size][size=9pt]MAC10[/size][size=9pt][font=宋体]的访问列表(即前面我们定义的访问策略)[/font][/size][size=9pt]
Switch(config)no mac access-list extended MAC10
[/size][size=9pt][font=宋体]#清除名为[/font][/size][size=9pt]MAC10[/size][size=9pt][font=宋体]的访问列表[/font][/size][size=9pt]
[/size]
[size=9pt][font=宋体]此功能与应用一大体相同,但它是基于端口做的[/font][/size][size=9pt]MAC[/size][size=9pt][font=宋体]地址访问控制列表限制,可以限定特定源[/font][/size][size=9pt]MAC[/size][size=9pt][font=宋体]地址与目的地址范围。[/font][/size][size=9pt]
[/size]
[size=9pt][font=宋体]注意:[/font][/size]
[size=9pt][font=宋体]以上功能在思科[/font][/size][size=9pt]2950[/size][size=9pt][font=宋体]、[/font][/size][size=9pt]3550[/size][size=9pt][font=宋体]、[/font][/size][size=9pt]4500[/size][size=9pt][font=宋体]、[/font][/size][size=9pt]6500[/size][size=9pt][font=宋体]系列交换机上可以实现,但是需要注意的是[/font][/size][size=9pt]2950[/size][size=9pt][font=宋体]、[/font][/size][size=9pt]3550[/size][size=9pt][font=宋体]需要交换机运行增强的软件镜像([/font][/size][size=9pt]Enhanced Image[/size][size=9pt][font=宋体])。[/font][/size][size=9pt]
[/size]
[b][size=9pt]3.[/size][/b][b][size=9pt]方案[/size][/b][b][size=9pt]3——IP[/size][/b][b][size=9pt]地址的[/size][/b][b][size=9pt]MAC[/size][/b][b][size=9pt]地址绑定[/size][/b]
[size=9pt]只能将应用[/size][size=9pt]1[/size][size=9pt]或[/size][size=9pt]2[/size][size=9pt]与基于[/size][size=9pt]IP[/size][size=9pt]的访问控制列表组合来使用才能达到[/size][size=9pt]IP-MAC [/size][size=9pt]绑定功能。[/size]
[size=9pt](转载注明出处[/size][size=9pt]n et130[/size][size=9pt])[/size][size=9pt]
Switch(config)Mac access-list extended MAC10
[/size][size=9pt]#定义一个[/size][size=9pt]MAC[/size][size=9pt]地址访问控制列表并且命名该列表名为[/size][size=9pt]MAC10
Switch(config)permit host 0009.6bc4.d4bf any
[/size][size=9pt]#定义[/size][size=9pt]MAC[/size][size=9pt]地址为[/size][size=9pt]0009.6bc4.d4bf[/size][size=9pt]的主机可以访问任意主机[/size][size=9pt]
Switch(config)permit any host 0009.6bc4.d4bf
[/size][size=9pt]#定义所有主机可以访问[/size][size=9pt]MAC[/size][size=9pt]地址为[/size][size=9pt]0009.6bc4.d4bf[/size][size=9pt]的主机[/size][size=9pt]
Switch(config)Ip access-list extended IP10
[/size][size=9pt]#定义一个[/size][size=9pt]IP[/size][size=9pt]地址访问控制列表并且命名该列表名为[/size][size=9pt]IP10
Switch(config)Permit 192.168.0.1 0.0.0.0 any
[/size][size=9pt]#定义[/size][size=9pt]IP[/size][size=9pt]地址为[/size][size=9pt]192.168.0.1[/size][size=9pt]的主机可以访问任意主机[/size][size=9pt]
Permit any 192.168.0.1 0.0.0.0
[/size][size=9pt]#定义所有主机可以访问[/size][size=9pt]IP[/size][size=9pt]地址为[/size][size=9pt]192.168.0.1[/size][size=9pt]的主机[/size][size=9pt]
Switch(config-if )interface Fa0/20
#[/size][size=9pt]进入配置具体端口的模式[/size][size=9pt]
Switch(config-if )mac access-group MAC10 in
[/size][size=9pt]#在该端口上应用名为[/size][size=9pt]MAC10[/size][size=9pt]的访问列表(即前面我们定义的访问策略)[/size][size=9pt]
Switch(config-if )Ip access-group IP10 in
[/size][size=9pt]#在该端口上应用名为[/size][size=9pt]IP10[/size][size=9pt]的访问列表(即前面我们定义的访问策略)[/size][size=9pt]
Switch(config)no mac access-list extended MAC10
[/size][size=9pt]#清除名为[/size][size=9pt]MAC10[/size][size=9pt]的访问列表[/size][size=9pt]
Switch(config)no Ip access-group IP10 in
[/size][size=9pt]#清除名为[/size][size=9pt]IP10[/size][size=9pt]的访问列表[/size]
[/td][/tr][/table] 我每天都改MAC
至少5次 你懂MAC是什么么?
即使你有需要也不至于每天改10次啊.
页:
[1]