fritz.box使用技巧

在fritz.box上安装服务:http://www.freetz.org

FritzRepass:从fritz.box里读出上网,网上电话等密码:http://svsload.com/wd/fritzrepass/

在dhcp里设置固定IP地址

  • 安装dhcping,并为网卡物理地址(MAC)预定IP地址apt-get install dhcping dhcping -s fritz.box -h <MAC> -c <预定IP>

     

  • 绑定MAC和IP地址
    • http://fritz.box
    • Einstellungen => System => Netzwerk=> 选择要设置的电脑,然后按*Eintrag bearbeiten*
    • 选择”immer die gleiche IP-Adresse zuweisen”

更新电信网络IP地址(DSL)

  • 以下方法均运用ForceTermination函数,更新IP地址
    使用cURLcurl "http://fritz.box:49000/upnp/control/WANIPConn1" -H 'Content-Type: text/xml; charset="utf-8"' -H 'SoapAction: urn:schemas-upnp-org:service:WANIPConnection:1#ForceTermination' -d '<?xml version="1.0" encoding="utf-8"?> <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s=">http://schemas.xmlsoap.org/soap/envelope/" <s:Body> <u:ForceTermination xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1" /> </s:Body> </s:Envelope>'使用wget

    wget -d "http://fritz.box:49000/upnp/control/WANIPConn1"\

    --header='Content-Type: text/xml; charset="utf-8"'\

    --header='SoapAction: urn:schemas-upnp-org:service:WANIPConnection:1#ForceTermination'\

    --post-data='<?xml version="1.0" encoding="utf-8"?> <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s=">http://schemas.xmlsoap.org/soap/envelope/" <s:Body> <u:ForceTermination xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1" /> </s:Body> </s:Envelope>'

Labels parameters

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s