Re: dhcp lease mehrere route vergeben
> Da die Fritzboxen auch bei WAN-seitigen Ausfällen das Ethernet oben
> lassen (und der Router obendrein die beiden Internet-Beinchen auf
> einem dot1q-Trunk zugeführt bekommt und der Link deswegen sowieso
> oben
> bleibt), muss ich genau die von Sven oben genannten Tricks verwenden
> um zu sehen ob ich noch Netz habe ober nicht.
Eine Fritzbox verrät dir per UPnP den Status des Uplink.
$ cat cs.xml
<?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:GetStatusInfo xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1" />
</s:Body>
</s:Envelope>
$ curl -s "http://fritz.box:49000/igdupnp/control/WANIPConn1" -H "Content-Type: text/xml; charset="utf-8"" -H "SoapAction:urn:schemas-upnp-org:service:WANIPConnection:1#GetStatusInfo" -d "@cs.xml"
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetStatusInfoResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewConnectionStatus>Connected</NewConnectionStatus>
<NewLastConnectionError>ERROR_NONE</NewLastConnectionError>
<NewUptime>2638547</NewUptime>
</u:GetStatusInfoResponse>
</s:Body>
</s:Envelope>
Das Feld "NewConnectionStatus" dürfte die Informationen enthalten, die
du suchst.
Gruß
Jonny
Reply to: