ºìÁªLinuxÃÅ»§
Linux°ïÖú

SCOÒ»¸öÍø¿¨ÉÏÃæ°ó¶¨¶à¸öIPµØÖ·

·¢²¼Ê±¼ä:2006-10-12 10:55:22À´Ô´:ºìÁª×÷Õß:bear10214
ÔÚSCO UnixϵͳÖжàIPµØÖ·µÄÉèÖÃÊÇͨ¹ý¸ÃÍøÂç½Ó¿ÚµÄ±ðÃûµØÖ·À´ÊµÏֵġ£
¾ßÌå²½ÖèÈçÏ£º£¨¾ÙÀýΪnet0Íø¿¨µÄIPµØַΪ192.168.1.2 ÑÚÂëΪ255.255.255.0£©
1.±à¼­/etc/tcpÎļþ¡£vi /etc/tcp
2.ÕÒµ½°üº¬Íø¿¨É豸ÎļþÃûnet0µÄifconfigÃüÁîÐС£
3.ͨ¹ýÔÚÃüÁîÐкóÌí¼ÓifconfigÃüÁîÐÐÀ´Îª¸ÃÍø¿¨ÉèÖÃÆäËûµÄIPµØÖ·£¨¼´µÚ¶þ¸öIPµØÖ·¡¢µÚÈý¸öIPµØÖ·¡­¡­£©¡£ÈôÉèÖøÃÍø¿¨µÄµÚ2¸öIPµØַΪ192.168.1.3£¬ÑÚÂëΪ255.255.255.0£¬Ôò¿ÉÌí¼ÓÈçÏÂÐУº
ifconfig net0 alias 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255 perf 24576 24576
1
4.Ö´ÐÐrebootÃüÁÖØÐÂÆô¶¯»úÆ÷¡£
5.ÓÃnetstat -rnÃüÁîÁоٵØÖ·ÐÅÏ¢¡£
6.ÓÃpingÃüÁî²âÊÔÍøÂçÁ¬Í¨ÐÔ¡£
ÅäÖò»Í¬Íø¶ÎµÄµØÖ·Ô­ÀíÒ»Ñù£¬ÐèÒª½«broadcastÐÞ¸Äһϲ»Í¬µÄ¹ã²¥µØÖ·£¬Í¬Ê±ÐèÒªÌí¼Ó·ÓÉÀ´·ÃÎʲ»Í¬Íø¶Î¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ