User Tools

Site Tools


docs:tips_n_tricks:md_90400

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
docs:tips_n_tricks:md_90400 [16.12.2010 19:47 CET] peterdocs:tips_n_tricks:md_90400 [17.12.2010 01:10 CET] (current) peter
Line 11: Line 11:
   --post-data 'i1_3_6_1_4_1_937_3_1_3_2_2_1_4_*=5&m1_3_6_1_4_1_937_3_1_3_2_2_1_2_*='"${mac}"'&i1_3_6_1_4_1_937_3_1_3_2_2_1_3_*=1&i1_3_6_1_4_1_937_3_1_3_2_2_1_4_*=1' \   --post-data 'i1_3_6_1_4_1_937_3_1_3_2_2_1_4_*=5&m1_3_6_1_4_1_937_3_1_3_2_2_1_2_*='"${mac}"'&i1_3_6_1_4_1_937_3_1_3_2_2_1_3_*=1&i1_3_6_1_4_1_937_3_1_3_2_2_1_4_*=1' \
   'http://'"${router}"'/cgi-bin/setobject?/lib/popup/close_window.shtml'   'http://'"${router}"'/cgi-bin/setobject?/lib/popup/close_window.shtml'
 +
 +===== Reserve IP for specific MAC =====
 +Same problem arises when setting a dedicated constant IP number to a device. Same solution applies:
 +
 +  password=<router password>
 +  ip=<ip number to reserve>
 +  mac=<respective mac>
 +  router=<router ip or dns name>
 +  wget --http-user bla \
 +       --http-password "${password}" \
 +       --post-data 'i1_3_6_1_4_1_937_2_1_11_2_12_1_99_*=5&setobject_macAddress=m1_3_6_1_4_1_937_2_1_11_2_12_1_3_*='"${mac}"'&setobject_ipAddress=a1_3_6_1_4_1_937_2_1_11_2_12_1_2_*='"${ip}"'&i1_3_6_1_4_1_937_2_1_11_2_12_1_99_*=1' \
 +       'http://'"${router}"'/cgi-bin/setobject?/lib/popup/close_window.shtml'
  
 ===== Get public IP by SNMP ===== ===== Get public IP by SNMP =====
docs/tips_n_tricks/md_90400.txt · Last modified: 17.12.2010 01:10 CET by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki