m0n0如何绑定电信网关的MAC地址
最近网吧老吊线,查看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 />
大家帮我看看是那里错了。 <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地址怎么都 一样啊 而且要双向绑定
页:
[1]