ÔõÑù½â¾öLinuxÍøÂçÅþÁ¬ÖØÖõij£¼ûÎÊÌâ
ÔõÑù½â¾ölinuxϵͳÖÐƵÈÔ·ºÆðµÄÍøÂçÅþÁ¬ÖØÖÃÎÊÌâ
ÔÚʹÓÃLinuxϵͳʱ£¬ÓÐʱ»áÓöµ½ÍøÂçÅþÁ¬ÆµÈÔÖØÖõÄÎÊÌ⣬Õâ¿ÉÄÜ»á¸øÎÒÃǵÄÊÂÇéºÍÒ»Ñùƽ³£ÉúÑÄ´øÀ´ºÜ´óµÄÀ§ÈÅ¡£±¾ÎĽ«´ÓÒÔϼ¸¸ö·½ÃæÏÈÈÝÔõÑù½â¾ölinuxϵͳÖÐƵÈÔ·ºÆðµÄÍøÂçÅþÁ¬ÖØÖÃÎÊÌâ¡£
ÍøÂçÉèÖüì²é
Ê×ÏÈ£¬ÎÒÃÇÐèÒª¼ì²éÍøÂçÉèÖÃÊÇ·ñ׼ȷ¡£¿ÉÒÔͨ¹ýÖ´ÐÐÈçÏÂÏÂÁîÀ´¼ì²éÍøÂçÉèÖÃÎļþÊÇ·ñ±£´æÒì³££º
cat /etc/sysconfig/network-scripts/ifcfg-eth0
µÇ¼ºó¸´ÖÆ
È·±£ÍøÂç½Ó¿ÚµÄÉèÖÃÎļþÖÐûÓйýʧ»ò³åÍ»µÄÉèÖá£Í¬Ê±£¬»¹¿ÉÒÔʵÑéÖØÆôÍøÂçЧÀͲ¢ÖØмÓÔØÉèÖÃÎļþ£¬ÏÂÁîÈçÏ£º
service network restart
µÇ¼ºó¸´ÖÆ
ÍøÂçÇý¶¯¸üÐÂ
ÍøÂçÅþÁ¬ÖØÖÃÎÊÌâ¿ÉÄÜÊÇÓÉÓÚ¹ýʱµÄ»ò²»¼æÈݵÄÍøÂçÇý¶¯ÒýÆðµÄ¡£ÎÒÃÇ¿ÉÒÔͨ¹ý¸üÐÂÍøÂçÇý¶¯³ÌÐòÀ´½â¾ö´ËÎÊÌâ¡£¿ÉÒÔƾ֤ÍøÂçÊÊÅäÆ÷µÄÐͺÅÈ¥²éÕÒ²¢ÏÂÔØ×îеÄÇý¶¯³ÌÐò£¬²¢Æ¾Ö¤ÏìÓ¦µÄÎĵµ¾ÙÐиüС£
MTUÉèÖõ÷½â
MTU£¨×î´ó´«Ê䵥룩ÊÇÖ¸ÔÚIPÍøÂçÖÐÒ»´ÎÄܱ»·¢Ë͵Ä×î´óÊý¾Ý°üµÄ¾Þϸ¡£ÈôÊÇMTUÉèÖò»×¼È·£¬ÍøÂçÅþÁ¬¾Í¿ÉÄÜ»áƵÈÔÖØÖ᣿ÉÒÔͨ¹ýÖ´ÐÐÈçÏÂÏÂÁîÀ´Éó²éÄ¿½ñϵͳµÄMTUÖµ£º
ifconfig
µÇ¼ºó¸´ÖÆ
ÈôÊÇMTUÖµÉ趨²»×¼È·£¬¿ÉÒÔͨ¹ýÖ´ÐÐÈçÏÂÏÂÁîÀ´ÊÖ¶¯ÐÞ¸ÄMTUÖµ£º
ifconfig eth0 mtu 1500
µÇ¼ºó¸´ÖÆ
×¢ÖØ£¬ÆäÖДeth0″ÐèÒªÌ滻ΪÄãµÄÍøÂç½Ó¿ÚÃû³Æ£¬”1500″ΪºÏÊʵÄMTUÖµ£¬¿ÉÒÔƾ֤ÏÖʵÍøÂçÇéÐξÙÐе÷½â¡£
·À»ðǽÉèÖüì²é
·À»ðǽҲ¿ÉÄܵ¼ÖÂÍøÂçÅþÁ¬ÆµÈÔÖØÖõÄÎÊÌâ¡£ÎÒÃÇÐèÒª¼ì²é·À»ðǽÉèÖÃÊÇ·ñ׼ȷ£¬²¢È·±£Ã»ÓÐ×èÖ¹ÐèÒªµÄÍøÂçÅþÁ¬¡£¿ÉÒÔͨ¹ýÖ´ÐÐÈçÏÂÏÂÁîÀ´Éó²é·À»ðǽ¹æÔò£º
iptables -L
µÇ¼ºó¸´ÖÆ
ÈôÊÇ·¢Ã÷Ó⻶ÔÀíµÄ¹æÔò£¬¿ÉÒÔͨ¹ýÖ´ÐÐÏìÓ¦µÄÏÂÁîÀ´É¾³ý»òÌí¼Ó¹æÔòÒÔµ÷½â·À»ðǽÉèÖá£
Ó²¼þ¹ÊÕÏɨ³ý
ÈôÊÇÒÔÉÏÒªÁ춼ûÓнâ¾öÍøÂçÅþÁ¬ÖØÖÃÎÊÌ⣬ÄÇôÎÊÌâºÜ¿ÉÄÜÊÇÓÉÓÚÓ²¼þ¹ÊÕÏÒýÆðµÄ¡£ÎÒÃÇ¿ÉÒÔͨ¹ýÒÔÏÂÒªÁì¾ÙÐÐÓ²¼þ¹ÊÕÏɨ³ý£º
¼ì²éÍøÂçµçÀÂÊÇ·ñÅþÁ¬ÓÅÒ죬¿ÉÒÔʵÑéÌæ»»µçÀÂÀ´É¨³ýµçÀ¹ÊÕϵĿÉÄÜÐÔ¡£
¼ì²é½»Á÷»ú»ò·ÓÉÆ÷µÈÍøÂç×°±¸ÊÇ·ñÕý³£ÊÂÇ飬¿ÉÒÔʵÑéÖØÆôÕâЩװ±¸À´½â¾öDZÔÚµÄÎÊÌâ¡£
ÈôÊÇÊÇÎÞÏßÍøÂçÅþÁ¬£¬¿ÉÒÔʵÑéÌæ»»ÎÞÏßÍø¿¨»òµ÷½âÎÞÏßÐźŵÄƵµÀÒÔ½â¾ö×ÌÈÅÎÊÌâ¡£
×ܽá
ÍøÂçÅþÁ¬ÆµÈÔÖØÖÃÎÊÌâÔÚLinuxϵͳÖпÉÄ᷺ܻÆ𣬲¢¸øÎÒÃǵÄÊÂÇéºÍÉúÑÄ´øÀ´ºÜ´óµÄƶÀ§¡£Í¨¹ý¼ì²éÍøÂçÉèÖᢸüÐÂÍøÂçÇý¶¯¡¢µ÷½âMTUÉèÖᢼì²é·À»ðǽÉèÖÃÒÔ¼°¾ÙÐÐÓ²¼þ¹ÊÕÏɨ³ý£¬ÎÒÃÇ¿ÉÒÔ½â¾öÕâÒ»ÎÊÌâ²¢»Ö¸´Õý³£µÄÍøÂçÅþÁ¬¡£Ï£Íû±¾ÎÄÌṩµÄÒªÁìÄܹ»×ÊÖúµ½Óöµ½ÀàËÆÎÊÌâµÄÓû§¡£
ÒÔÉϾÍÊÇÔõÑù½â¾öLinuxÍøÂçÅþÁ¬ÖØÖõij£¼ûÎÊÌâµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡