   Bridging mini-Howto
  Christopher Cole  cole@coledd.com
  v1.11, 7  1998

          ethernet . 
    ethernet ;       
          
  .        
  ,      ,     
    .          Mac-
  intosh     Unix .     
     ,      
       .      
  .          
            
  .          
   . ---   , , 
          
    : panos@veria1.freeserve.co.uk
  ______________________________________________________________________

  Table of Contents


  1. Setup

  2.  



  ______________________________________________________________________

  [1m1.  Setup[0m


  1.   ``Bridge Config'':

       <ftp://shadow.cabi.net/pub/Linux/BRCFG.tgz>



  2.   ethernet     
     /etc/lilo.conf,  -  lilo:


       append = "ether=0,0,eth1"





             :


       append = "ether=0,0,eth1 ether=0,0,eth2"






         
  ether.           
    .         
    .

    ,      
  :


       linux ether=0,0,eth1





    3 :


       linux ether=0,0,eth1 ether=0,0,eth2






  3.      BRIDGING .

  4.        IP .     
         .     IP 
        ,           /etc/sysconfig/network-
     scripts/ ( RedHat )    ifcfg-lo0  ifcfg-
     eth0 & ifcfg-eth1.         
       ``DEVICE=lo''   ``DEVICE=eth0''  ``DEVICE=eth1''.
         ,  , !  
              
      .

  5. ,        
          IP .

  6.    ,   ethernet  
     promiscuous mode,       :


       ifconfig eth0 promisc ; ifconfig eth1 promisc





              
  promiscuous mode.

  7.   bridging    brcfg:


       brcfg -ena






  8.        :


       tcpdump -i eth0      (in one window)
       tcpdump -i eth1      (in another window)



  9.   sniffer   tcpdump        
         .

  [1m2.   [0m


  1.

     [1mQuestion[0m
          


          ioctl(SIOCGIFBR) failed: Package not installed





      ;

     [1mAnswer[0m
          bridging   .    2.0 
        ,       BRIDGING
        .


  2.

     [1mQuestion[0m
                ping  !

     [1mAnswer[0m

         bridging  ``brcfg -ena''; ( brcfg 
           ``bridging is ENABLED'')

           promiscuous mode?  ( ``ifconfig''.
         ``PROMISC''       .)

            
             .   
                .


  3.

     [1mQuestion[0m
            telnet/ftp   ! ;

     [1mAnswer[0m
              IP   . 
                .


  4.

     [1mQuestion[0m
                ;

     [1mAnswer[0m
        !        . 
           ethernet      
          brcfg  debug mode:



     brcfg -deb






  5.

     [1mQuestion[0m
            ,   ``traceroute''  
             .

     [1mAnswer[0m
            ,  ``traceroute''   
          .      .


  6.

     [1mQuestion[0m
               IP_FORWARD;

     [1mAnswer[0m
        .     bridging     
        .  IP_FORWARD      IP .


  7.

     [1mQuestion[0m
              1   2  
           ``brcfg'';      ;

     [1mAnswer[0m
        .         , 
             bridging.


  8.

     [1mQuestion[0m
         bridging       make config 
         .   ;

     [1mAnswer[0m
          ,  'Y'  : ``Prompt
        for development and/or incomplete code/drivers
        (CONFIG_EXPERIMENTAL) [Y/n/?]''.


  9.

     [1mQuestion[0m
          (hubs, 4  )    
           ethernet.     
              hubs;

     [1mAnswer[0m
              3/4/5 .   
              hub,  
            .


  10.

     [1mQuestion[0m
                10Mb  100Mb;
                ;

     [1mAnswer[0m
        ,        10Mb   
        100Mb.         
        100Mb,  TCP    . ,   
                 10Mb/s,  
              .
























































