找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5001|回复: 5

[转帖]2110ehr V4.x限制MAC方法

[复制链接]
发表于 2004-7-16 02:25:21 | 显示全部楼层 |阅读模式
LBHIDDEN[0]LBHIDDEN2110ehr V4.x限制MAC方法




在有些应用场合,用户需要限制特殊的MAC地址,在2110ehr v4.x中没有专门的MAC地址过滤功能,但可以利用配置静态ARP表来达到此目标。



1、  telnet 192.168.1.1




*******************


                         Welcome to Viking  


                         *******************





GlobespanVirata Inc., Software Release VIK-1.38.030917a


Copyright (c) 2001-2003 by GlobespanVirata, Inc.





login: root


password:


Login Successful


$



2、  配置静态ARP表:




$create arp ?


Parameter                         Description


---------                         -----------


macaddr <xx:xx:xx:xx:xx:xx>        Physical address(Hex Format)      


ip <ddd.ddd.ddd.ddd>               IP Address                        


&#36;create arp macaddr 00:d0:f8:00:00:01 ip 192.168.1.100





Entry Created





&#36;get arp


If Name    Type         Mac Address              Ip Address


-----------------------------------------------------------


lo-0        Static      00:00:00:00:00:00        127.0.0.1         


eth-0       Dynamic     00:02:3F:B3:D6:92        192.168.1.67   


eth-0       Static      00:D0:F8:00:00:01        192.168.1.100     





分析:


1、  create arp macaddr 00:d0:f8:00:00:01 ip 192.168.1.100 此命令是在eth0 上配置静态ARP表,强制IP 192.168.1.100对应的MAC地址为00:d0:f8:00:00:01,如果实际应用中IP 192.168.1.100 对应的MAC地址不满足此要求时,将无法通讯;

2、  get arp得到CAM表:


eth-0       Static      00:D0:F8:00:00:01        192.168.1.100







因此,实际应用中,最好配合2110ehr v4.x限制IP上网的方法,先限制某些固定IP可以上网,比如范围192.168.1.2 --------- 192.168.1.10,然后在第一次使用中,可以利用抓包软件得到内网的所有MAC地址,并分配好IP,然后再telnet到modem中,配置好静态MAC表。




所以具体的步骤就是:


l       限制一定范围的IP可以上网;

l       利用抓包软件得到哪些MAC地址是内网的MAC;

l       telnet 192.168.1.1;

l       创建静态MAC表;

l         提交(commit)& 重起 (reboot);
发表于 2004-7-16 10:42:13 | 显示全部楼层

[转帖]2110ehr V4.x限制MAC方法

***** 版主模式 *****
该贴子是管理员从<a href=forums.cgi?forum=54>『 宽带技术交流区 』 </a>转移过来的!
发表于 2004-11-9 15:44:33 | 显示全部楼层

[转帖]2110ehr V4.x限制MAC方法

精品
发表于 2004-11-26 00:32:02 | 显示全部楼层

[转帖]2110ehr V4.x限制MAC方法

好像不行啊,我已经配置好了静态arp ,然后在IP过滤中设置好限制的IP,可是只要对方改了IP以后,还是不行,并且telnet 上以后,get arp 显示,同一个MAC地址可以有两个IP,一个静态的,一个动态的,
求助????
发表于 2004-12-10 13:39:50 | 显示全部楼层

[转帖]2110ehr V4.x限制MAC方法

好啊
有用啊
发表于 2007-3-27 18:31:47 | 显示全部楼层

[转帖]2110ehr V4.x限制MAC方法

好贴!
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|宽带技术网 |网站地图

粤公网安备 44152102000001号

GMT+8, 2024-5-21 19:32 , Processed in 0.027741 second(s), 6 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表