У԰Íø½»»»»ú½Úµã¹ÜÀí_¼ÆËã»úרҵÂÛÎÄ·¶ÎÄ
·¢²¼Ê±¼ä£º
2015-01-18
À´Ô´£º
ÈË´ó¾¼ÃÂÛ̳
¼ÆËã»úרҵÂÛÎÄ·¶ÎÄ
ÕªÒª ±¾±ÏÒµÂÛÎÄ£¨Éè¼Æ£©ÊÇÔÚVisual Basic 6.0±à³Ì»·¾³ÏÂʵÏֵģ¬Ö÷ÒªÑо¿ÈçºÎʹÓý»»»»úºÍÀûÓÃVB³ÌÐòÉè¼ÆÓïÑÔÀ´¿ª·¢Ò»Ì×ͼÐνçÃæµÄУ԰Íø½»»»»ú½Úµã¹ÜÀí³ÌÐò£¬¶Ô½»»»»ú¸÷¶Ë¿Ú½øÐÐÉèÖã¬ÐÞ¸Äijһ×ÓÍøÔÚÖ¸¶¨Ê±¼äÄÚµÄÁ¬Í¨×´Ì¬¡£Íê³É´Ë¹ÜÀí³ÌÐòÄܹ»·½±ãµÄ¹ÜÀíУ԰ÍøµÄ½»»»»ú½Úµã£¬¼õÉÙ¹ÜÀíÔ±¶¨Ê±¿ªÍ¨»ò¹Ø±Õ×ÓÍøµÄ¹¤×÷Á¿¡£¸Ã³ÌÐòʹÓÃVB×Ô´øµÄWinsock¿Ø¼þtelnetµ½½»»»»úµÄijһ¶Ë¿Ú£¬È»ºóͨ¹ý¶Ô½»»»»ú·¢ËÍһϵÁÐÃüÁÀ´ÉèÖý»»»»ú¸÷VlanºÍ¶Ë¿ÚµÄÏà¹Ø״̬£»½«½»»»»ú¸÷×ÓÍøµÄÏà¹ØÐÅÏ¢¡¢ÐÞ¸Ä×ÓÍøÁ¬Í¨×´Ì¬µÄʱ¼äÐÅÏ¢µÈ´æ´¢ÔÚÎı¾ÎļþÖУ¬Ê¹ÓÃÒ»¸ötimer¿Ø¼þ¶¨Ê±·ÃÎÊÕâЩÎı¾ÎļþÀ´¾ö¶¨ÊÇ·ñÐÞ¸Äij×ÓÍøµÄÁ¬Í¨×´Ì¬£¬È»ºóʹÓ÷ÃÎÊ¿ØÖÆÁÐ±í£¨Access Control List, ACL£©À´Ð޸ġ£Í¨¹ýÍê³ÉÕâ¸öÌâÄ¿£¬¼ÓÉî¶Ô½»»»»úµÄÀí½â£¬²¢ÇÒ¸üºÃµØѧϰ±à³Ì˼Ï룬ÕÆÎÕVBÓïÑÔµÄÓ¦Óã¬Á˽âÈí¼þ¿ª·¢µÄ¹ý³Ì£¬ÎªÒÔºó½øÒ»²½µÄÑо¿´òºÃ»ù´¡¡£
¹Ø¼ü´Ê VB£¬½»»»»ú£¬Winsock¿Ø¼þ
Port Subnet Administrator
Abstract: Accomplished in Visual Basic 6.0 programming environment, this graduation thesis mainly studies how to make use of the switch and employ VB Programming Language to develop an administration program of a series of graphical interfaces campus web switch modes, setting up the switch ports and modifying the state of connection of some subnet in a certain time. The program can conveniently control campus web switch nodes so as to decrease the administrator¡¯s work load that he turns on or off the subnet timely. Using Winsock control in VB, the program telnet the some port in switch. Then, by sending a series of orders to the switch, it puts up the state of connection of switch VLAN and ports. When the information relative to the switch subnets and the time information about modifying the state of connection of subnets are stored in the text files, the program using a timer control to open these files timely in order to decide whether it is revised the state of connection of some subnet or not, and then it is employed ACL to revise it. By finishing this paper, I get deeper understanding about the switch, learn more about the programming thought, grasp the application of VB Programming Language and know the process of developing software. All of these aspects lay the good foundations of my further research in future.
Keywords£ºVB£¬Switch£¬Winsock control
Ŀ ¼
Ŀ ¼3
Òý ÑÔ4
µÚ2Õ VB¸ÅÊö5
2.1 Visual Basic ¼ò½é5
2.2 Visual Basic ¹¦ÄÜÌصã6
µÚ3Õ ½»»»»ú¸ÅÊö8
3.1ʲôÊÇÈý²ã½»»»»ú8
3.2 ÐéÄâ¾ÖÓòÍø9
3.3 ·ÃÎÊ¿ØÖÆÁбí11
µÚËÄÕ ¿ÎÌâʵÏֵŦÄܽéÉÜ13
µÚÎåÕ ¹¦ÄÜʵÏÖ16
5.1 ÈÕ³ÌÎļþµÄʵÏÖ16
5.2 Winsock¿Ø¼þ´´½¨TCP/IPͨѶ17
5.3 ¶¨Ê±¹¦ÄܵÄʵÏÖ20
µÚ6Õ ½áÂÛ24
µÚÆßÕ ÖÂл25
µÚ8Õ ²Î¿¼ÎÄÏ×26
µÚ9Õ ¸½Â¼£¨Cisco»ù±¾ÃüÁ£©27