找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4922|回复: 1

2110ehr V4.x限制MAC上网方法(适用viking系列芯片的设备)

[复制链接]
发表于 2004-7-7 18:29:41 | 显示全部楼层 |阅读模式
LBHIDDEN[0]LBHIDDEN在有些应用场合,用户需要限制特殊的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);
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

粤公网安备 44152102000001号

GMT+8, 2024-4-28 20:42 , Processed in 0.021883 second(s), 4 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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