¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 160°Ç
   
ºê¸®Áö ¸í·É¾î (brctl)
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2010-05-27 (¸ñ) 22:57 Á¶È¸ : 9304
±ÛÁÖ¼Ò :
                          

brctl ¿É¼Ç

Usage: brctl [commands]
commands:
        addbr           <bridge>                add bridge
        delbr           <bridge>                delete bridge
        addif           <bridge> <device>       add interface to bridge
        delif           <bridge> <device>       delete interface from bridge
        setageing       <bridge> <time>         set ageing time
        setbridgeprio   <bridge> <prio>         set bridge priority
        setfd           <bridge> <time>         set bridge forward delay
        sethello        <bridge> <time>         set hello time
        setmaxage       <bridge> <time>         set max message age
        setpathcost     <bridge> <port> <cost>  set path cost
        setportprio     <bridge> <port> <prio>  set port priority
        show                                    show a list of bridges
        showmacs        <bridge>                show a list of mac addrs
        showstp         <bridge>                show bridge stp info
        stp             <bridge> {on|off}       turn stp on/off


ex)

[root@mojily bridge]# brctl show br0
bridge name     bridge id               STP enabled     interfaces
br0             8000.00e0ed0b2d26       no              eth1
                 
                                       eth2
[root@mojily bridge]# brctl showmacs br0
port no mac addr                is local?       ageing timer
  1     00:04:96:1e:c4:d0       no                 0.00
  2     00:d0:cb:79:3e:62       no                 0.00
  1     00:e0:2b:00:00:01       no                 5.51
  1     00:e0:ed:0b:2d:26       yes                0.00
  2     00:e0:ed:0b:2d:27       yes                0.00


[root@mojily bridge]# brctl showstp br0
br0
 bridge id              8000.00e0ed0b2d26
 designated root        8000.00e0ed0b2d26
 root port                 0                    path cost                  0
 max age                   3.99                 bridge max age             3.99
 hello time                0.99                 bridge hello time          0.99
 forward delay             3.99                 bridge forward delay       3.99
 ageing time             299.95
 hello timer               0.93                 tcn timer                  0.00
 topology change timer     0.00                 gc timer                   1.93
 flags

eth1 (0)
 port id                0000                    state                forwarding
 designated root        8000.00e0ed0b2d26       path cost                  4
 designated bridge      8000.00e0ed0b2d26       message age timer          0.00
 designated port        8001                    forward delay timer        0.00
 designated cost           0                    hold timer                 0.93
 flags

eth2 (0)
 port id                0000                    state                forwarding
 designated root        8000.00e0ed0b2d26       path cost                  4
 designated bridge      8000.00e0ed0b2d26       message age timer          0.00
 designated port        8002                    forward delay timer        0.00
 designated cost           0                    hold timer                 0.92
 flags



 


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.