找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5849|回复: 1

[m0n0] m0n0如何绑定电信网关的MAC地址

[复制链接]
发表于 2007-2-28 21:58:59 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
最近网吧老吊线,查看ARP发现外网有地址欺骗,我尝试着这样绑定外网MAC,原来没有绑定时,掉线过段时间会自动恢复,但是我这样绑定后还会掉,并且掉了非要重起路由要不就不会好了。
<?xml version="1.0" ?>
- <m0n0wall>
  <version>1.6</version>
  <lastchange>1172655199</lastchange>
- <system>
  <hostname>net110</hostname>
  <domain>local</domain>
  <username>admin</username>
  <password>Yh5ed01EbAm8Z1</password>
  <timezone>Etc/UTC</timezone>
  <time-update-interval>300</time-update-interval>
  <timeservers>pool.ntp.org</timeservers>
- <webgui>
  <protocol>https</protocol>
  <port>4082</port>
  <certificate />
  <private-key />
  </webgui>
  <shellcmd>ifconfig em0 -arp</shellcmd>
  <shellcmd>arp -s 220.16.205.1 00:0f:e2:23:1d:11</shellcmd>
  <shellcmd>arp -s 220.16.205.2 00:0f:e2:23:1d:11</shellcmd>
  <shellcmd>arp -s 220.16.205.3 00:0f:e2:23:1d:11</shellcmd>
  <dnsserver>202.101.224.69</dnsserver>
  <dnsserver>202.101.224.68</dnsserver>
  <dnsserver>168.95.192.1</dnsserver>
  <harddiskstandby />
  </system>
- <interfaces>
- <lan>
  <if>rl0</if>
  <ipaddr>192.168.0.115</ipaddr>
  <subnet>24</subnet>
  <media />
  <mediaopt />
  </lan>
- <wan>
  <if>em0</if>
  <mtu />
  <blockpriv />
  <media />
  <mediaopt />
  <spoofmac />
  <ipaddr>220.16.205.20</ipaddr>
  <subnet>26</subnet>
  <gateway>220.16.205.1</gateway>
  </wan>
  </interfaces>
  <staticroutes />

大家帮我看看是那里错了。
routeros
发表于 2007-3-29 13:13:49 | 显示全部楼层
<shellcmd>ifconfig em0 -arp</shellcmd>
  <shellcmd>arp -s 220.16.205.1 00:0f:e2:23:1d:11</shellcmd>
  <shellcmd>arp -s 220.16.205.2 00:0f:e2:23:1d:11</shellcmd>
  <shellcmd>arp -s 220.16.205.3 00:0f:e2:23:1d:11</shellcmd>

这几个ip的mac地址怎么都 一样啊   而且要双向绑定
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-19 08:31 , Processed in 0.143553 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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