ȺêÍ°²×°³É¹¦ºóÐÞ¸ÄmacÒÔ¼°sn(SSHÔÚÏßÐÞ¸ÄDS918+µÄSN/MAC)

¾Ù±¨ »Ø´ð
ȺêÍ°²×°³É¹¦ºóÐÞ¸ÄmacÒÔ¼°sn(SSHÔÚÏßÐÞ¸ÄDS918+µÄSN/MAC)
ÎÊÔÚÏß¿Í·þ
ɨÂëÎÊÔÚÏß¿Í·þ
  • »Ø´ðÊý

    5

  • ä¯ÀÀÊý

    4,340

¾Ù±¨ »Ø´ð

5¸ö»Ø´ð ĬÈÏÅÅÐò
  • ĬÈÏÅÅÐò
  • °´Ê±¼äÅÅÐò

ûÕÒµ½ÂúÒâ´ð°¸£¿È¥Îʶ¹°üAIÖÇÄÜÖúÊÖ
È¡Ïû ¸´ÖÆÎÊÌâ
ÒѲÉÄÉ
µ±ÄúÔÚȺêÍÉÏ°²×°³É¹¦ºó£¬Èç¹ûÄúÏëÐÞ¸ÄMACµØÖ·»òÕßSNºÅ£¬ÔÚÏßÐÞ¸ÄDS918+µÄSN/MACÊÇ¿ÉÐеġ£Äú¿ÉÒÔʹÓÃSSHÁ¬½Óµ½Â·ÓÉÆ÷ÉÏ£¬ÔÚÖÕ¶ËÖÐÊäÈëÏàÓ¦µÄÃüÁîÀ´Íê³ÉÕâЩ²Ù×÷¡£Ê×ÏÈ£¬ÐèҪͨ¹ýÒÔÏÂÃüÁî²é¿´µ±Ç°µÄÍøÂçÅäÖãº
```
show interfaces
```
È»ºó£¬ÄúÐèÒªÕÒµ½¶ÔÓ¦µÄÍøÂç½Ó¿Ú£¬²¢¼Ç¼ÏÂÆäÃû³Æ£¨ÀýÈçeth0£©£¬½ÓÏÂÀ´ÎÒÃÇÐèÒªÐÞ¸ÄmacµØÖ·ºÍsnºÅ¡£Çë°´ÕÕÒÔϲ½Öè²Ù×÷£º
1. Ê×ÏÈ£¬Ê¹ÓÃifconfigÃüÁµ±Ç°µÄmacµØÖ·¸ü¸ÄΪÄúÏëÒªµÄÐÂMACµØÖ·£º
```
ifconfig eth0 newMacAddress
```
2. ½Ó×Å£¬ÔÚÖÕ¶ËÖÐÊäÈëÒÔÏÂÃüÁîÀ´±à¼­É豸ÅäÖÃÎļþ£¨/etc/sysconfig/network-scripts/ ifcfg-eth0£©£º
```
vi /etc/sysconfig/network-scripts/
```
3. Ôڱ༭ģʽÏ£¬ÕÒµ½ÏàÓ¦µÄÎı¾¿é£¬²¢½«ÆäÄÚÈÝÌ滻ΪÒÔÏÂÄÚÈÝ£º
```
BOOTPROTO="static"
BOOTPROTO="static"
BOOTPROTO="static"
ONBOOT="no"
ONBOOT="no"
ONBOOT="no"
BOOTPROTO="static"
BOOTPROTO="static"
BOOTPROTO="static"
BSSID="newMacAddress"
```
4. ×îºó£¬±£´æ²¢Í˳ö±à¼­Æ÷¡£
5. È»ºó£¬ÔÚÖÕ¶ËÖÐÊäÈëÒÔÏÂÃüÁîÖØÆô·ÓÉÆ÷ÒÔʹ¸ü¸ÄÉúЧ£º
```
service network restart
```
ÒÔÉϾÍÊÇÔÚȺêÍÉÏÔÚÏßÐÞ¸ÄMACµØÖ·ºÍSNºÅµÄ²½Öè¡£Çë×¢Ò⣬ÔÚ½øÐÐÈκθü¸Ä֮ǰ£¬ÇëÈ·±£ÄúÒѾ­»ñµÃÁËÕýÈ·µÄÊÚȨ£¬²¢ÇÒÁ˽âÕâЩ¸ü¸Ä¿ÉÄÜ»á´øÀ´ÄÄЩ·çÏÕ¡£Èç¹ûÄú²»ÊìϤ²Ù×÷£¬Çë×ÉѯרҵÈËÊ¿»òÁªÏµÈºêÍ¿Í·þ»ñÈ¡°ïÖú¡£
È¡Ïû ÆÀÂÛ
ºÜ±§Ç¸£¬ÄúÌṩµÄÎÊÌâÎÞ·¨Àí½â£¬ÇëÌṩ¸ü¶à±³¾°ÐÅÏ¢»òÕß¾ßÌåÎÊÌâÃèÊö¡£
È¡Ïû ÆÀÂÛ
¶ÔÓÚȺêÍ°²×°³É¹¦ºóÐÞ¸ÄMACºÍSNµÄÎÊÌ⣬ÐèҪʹÓÃSSH¼¼ÊõÔÚÏßÐÞ¸ÄDS918+µÄSN/MAC¡£Ê×ÏÈÐèÒªÔÚ±¾µØ°²×°²¢ÅäÖÃSSH·þÎñÆ÷£¬È»ºóͨ¹ýSSHÁ¬½Óµ½ÈºêÍ£¬²¢Ö´ÐÐÏàÓ¦µÄÃüÁîÀ´ÐÞ¸ÄSN/MAC¡£
¾ßÌå²Ù×÷²½ÖèÈçÏ£ºÔÚ±¾µØʹÓÃssh-keygenÃüÁîÉú³ÉSSHÃÜÔ¿¶Ô£¬²¢ÔÚȺêÍÉÏ´´½¨Ò»¸öÐÂÓû§²¢Ö´ÐÐssh-copy-idÃüÁ±¾µØ˽Կ¸´ÖƵ½·þÎñÆ÷¶ËÓû§Ï¡£½Ó×Å£¬ÔÚȺêÍÖÐÖ´ÐÐÃüÁî"sys -e"À´´ò¿ªÏµÍ³ÉèÖýçÃ棬ÕÒµ½ÍøÂçÉèÖÃÏȻºóÑ¡Ôñ¾²Ì¬IPµØÖ·ÅäÖ÷½Ê½£¬ÌîдÕýÈ·µÄIPµØÖ·¡¢×ÓÍøÑÚÂ롢ĬÈÏÍø¹ØµÈÐÅÏ¢£¬²¢±£´æÉèÖá£×îºó£¬ÔÚϵͳÉèÖýçÃæÑ¡ÔñÍøÂçÉèÖÃÏÕÒµ½´úÀí·þÎñÆ÷ÅäÖÃÏÌîдÕýÈ·µÄ´úÀí·þÎñÆ÷µØÖ·¡¢¶Ë¿ÚºÅµÈÐÅÏ¢£¬²¢±£´æÉèÖá£
ͨ¹ýÒÔÉϲ½ÖèÍê³Éºó£¬ÔÚȺêÍÖоͿÉÒÔ½øÐÐÐÞ¸ÄSN/MAC²Ù×÷ÁË¡£ÐèҪעÒâµÄÊÇ£¬ÔÚÐÞ¸Ä֮ǰһ¶¨Òª±¸·ÝºÃ¾ÉµÄSN/MACÐÅÏ¢£¬ÒÔÃâ³öÏÖÒâÍâÇé¿öµ¼ÖÂÊý¾Ý¶ªÊ§»òË𻵡£´ËÍ⣬ÔÚÐ޸Ĺý³ÌÖÐÒ²Òª½÷É÷²Ù×÷£¬È·±£ÊäÈëÕýÈ·µÄMACºÍSNÐÅÏ¢ÒÔÃâÔì³ÉÉ豸²»Õý³£ÔËÐлòÆäËûÎÊÌâ·¢Éú¡£
È¡Ïû ÆÀÂÛ
ÎÒËùÓù¤¾ß£ºmac¡¢secureCRT£¨×¢£º¸Ã½Ì³Ì¾­±¾È˲âÊÔÓÃÓÚuÅÌÒýµ¼µÄȺêÍÐ޸ijɹ¦£¬ÆäËüÒýµ¼Î´¾­²âÊÔÉ÷Óã©¡£
Ò»¡¢¿ª·ÅSSH¶Ë¿Ú ¡£
ÔÚ¿ØÖÆÃæ°åÀïÃ桪¡ªÖն˻úºÍSNMP Ï£¬Æô¶¯SSH¹¦ÄÜ¡£
¶þ¡¢SSH¹¤¾ß¹ÒÔØ synoboot1·ÖÇø¡£
µÚÒ»²½£ºÓÃssh¹¤¾ßÈçsecureCRTÁ¬½Óµ½Èºê͵ĵØÖ·£¬Óà ´´½¨Èºê͵ĹÜÀíÓû§µÇ½¡£
È磺admin ÃÜÂë admin123456
µÚ¶þ²½£º»ñÈ¡root³¬¼¶È¨ÏÞ¡£
»Ø³µºó»áÌáʾÊäÈëÃÜÂ룬¼´ÔÙ´ÎÊäÈ뵱ǰ¹ÜÀíÕ˺ŵÄÃÜÂë¡£
³É¹¦ºó»á±ä³É root@Sxxx:~# £¬ ÆäÖÐroot¿ªÍ·£¬#½áβ¡£
µÚÈý²½£ºÔÚ/tmpĿ¼Ï´´½¨Ò»¸öÁÙʱĿ¼£¬Ãû×ÖËæÒ⣬È磺boot
µÚËIJ½£ºÇл»µ½devĿ¼
µÚÎå²½£º½«synoboot1 ·ÖÇø¹ÒÔص½boot
µÚÁù²½£ºÇл»µ½/tmp/boot/Ŀ¼
¿ÉÒÔ¿´µ½¹ÒÔغóÓÐ bzImage EFI grub info.txt µÈÎļþ¼Ð»òÎļþ£¨Ö÷»ú»ò°æ±¾²»Í¬Ê±£¬Îļþ¼Ð¡¢ÎļþÃûÓÐËù²î±ð£¬µ«¿Ï¶¨ÓÐgrubÎļþ¼Ð£©£¬ÖÁ´Ë¹ÒÔسɹ¦¡£
µÚÆß²½£ºÇл»µ½grubĿ¼£¬ÐÞ¸Ägrub.cfgÎļþ
´Ëʱ£¬½øÈëÁËvim²é¿´ grub.cfgÎļþ¡£
°´¼üÅÌÏòÏ¡¢ÏòÓҵȼýÍ·£¬½«¹â±êÒƶ¯µ½ÒªÐ޸ĵĵط½ £¨×¢£ºÎÒÕâÀïÊÇË«Íø¿¨£©
´Ëʱ»¹ÊÇ ÃüÁîģʽ £¬°´¼üÅÌÉ쵀 i ¼ü£¨Ð¡Ð´×´Ì¬£©£¬½øÈëÎĵµ ±à¼­Ä£Ê½£¬´Ëʱ¾Í¿ÉÒÔÊäÈëеÄSN£¬MAC1µÄÐÂÖµ£¬É¾³ý¾ÉÖµ¡£
ÐÞ¸ÄÍê³Éºó£¬
°´¼üÅÌÉϵÄEsc¼ü£¬·µ»Øµ½ ÃüÁîģʽ £¬ÊäÈë ** :wq** £¨×¢£ºÊÇÓ¢ÎÄ״̬µÄ :wq £©£¬±£´æ²¢Í˳ö¡£Èç¹ûÐÞ¸ÄÂÒÁË£¬Ïë²»±£´æ²¢Í˳ö£¬ÔòÊÇÊäÈë** :q!** ¡£
´Ëʱ¿ÉÒÔÔÙ vi grub.cfg ½øÈ¥¿´¿´ÊÇ·ñÐ޸ijɹ¦¡£
×îºóÖØÆôÖ÷»ú£¬
½ÓÏÂÀ´¾ÍÊÇ»ù±¾Ê¹ÓÃȺêÍÖúÊÖ½øÐÐϵͳÖØ×°»Ö¸´ÁË¡£
ÓÉÓÚ±¾È˵ÄÍâÍøÍø¿¨ÊÇ·ÓÉÆ÷Öаó¶¨MACµÄ£¬ÖØÆôºó£¬»¹ÔÚµÃÒ»·¬ÕÛÌÚ¡£
ºó¼Ç£º ¾ÓÈ»²âÊԳɹ¦ÁË¡£¶øÇÒÒ²²»Óûָ´ÏµÍ³£¬Ö±½ÓÄÜÕý³£µÇ½¡£
È¡Ïû ÆÀÂÛ
ÔÚȺêÍ°²×°³É¹¦ºóÐÞ¸ÄMACºÍSNµÄ²½ÖèÈçÏ£º
1. Ê×ÏÈÐèҪȷ±£ÄãµÄȺêÍÒѾ­³É¹¦ÁªÍø£¬È»ºó´ò¿ªÖն˲¢ÊäÈëÒÔÏÂÃüÁssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ServerSideVenturing=on -o PubkeySize=2048 -o IdentityFile=/dev/null user@example.com
2. ÔÚÖÕ¶ËÊäÈëÒÔÏÂÃüÁîÀ´ÐÞ¸ÄMACºÍSN£ºsudo ds9 -u /tmp/myconfig.xml
3. ´ò¿ªÈºê͵ÄÉèÖÃÒ³Ã棬ÔÚ×ó²à²Ëµ¥ÖÐÑ¡Ôñ¡°¸ß¼¶ÉèÖá±£¬È»ºóÔÚ¡°É豸¡±Ñ¡ÏÏÂÃæÕÒµ½¡°ÍøÂ硱¡£
4. ÔÚ¡°ÍøÂ硱ҳÃæÏ·½ÕÒµ½¡°DHCPÉèÖá±Ñ¡Ï£¬ÔÚ¸ÃÑ¡ÏÏ¿ÉÒÔÐÞ¸ÄMACºÍSN¡£
5. ÐÞ¸ÄÍê³Éºó±£´æ²¢Í˳ö¼´¿É¡£
×¢Ò⣺ÒÔÉϲÙ×÷ÐèÒª¹ÜÀíԱȨÏÞ²ÅÄܽøÐС£½¨ÒéÔÚÐÞ¸Ä֮ǰ±¸·ÝºÃÅäÖÃÎļþ£¬ÒÔÃâ³öÏÖÒâÍâÇé¿ö¡£Èç¹ûÓöµ½ÎÊÌâ»òÕß²»È·¶¨²Ù×÷£¬Çë×ÉѯȺê͹ٷ½¿Í·þ»òרҵ¼¼ÊõÖ§³ÖÈËÔ±¡£
È¡Ïû ÆÀÂÛ
ZOLÎÊ´ð > ȺêÍ°²×°³É¹¦ºóÐÞ¸ÄmacÒÔ¼°sn(SSHÔÚÏßÐÞ¸ÄDS918+µÄSN/MAC)

Ïà¹Ø²úÆ·

¾Ù±¨

¸ÐлÄúΪÉçÇøµÄºÍг¹±Ï×Á¦Á¿ÇëÑ¡Ôñ¾Ù±¨ÀàÐÍ

¾Ù±¨³É¹¦

¾­¹ýºËʵºó½«»á×ö³ö´¦Àí
¸ÐлÄúΪÉçÇøºÍг×ö³ö¹±Ï×

ɨÂë²ÎÓëÐÂÆ·0ÔªÊÔÓÃ
ɹµ¥¡¢¶¥Â¥ºÀÀñµÈÄãÄÃ

ɨһɨ£¬¹Ø×¢ÎÒÃÇ
Ìáʾ

È·¶¨ÒªÈ¡Ïû´Ë´Î±¨Ãû£¬Í˳ö¸Ã»î¶¯£¿