Sie sind auf Seite 1von 6

Bridging mini-Howto

Christopher Cole cole@coledd.com


v1.11, 7 1998
ethernet .
ethernet ;

.
, ,
. Macintosh Unix .
,
.
.

.
. --- , ,

: panos@veria1.freeserve.co.uk
______________________________________________________________________
Table of Contents
1. Setup
2.

______________________________________________________________________
1. Setup
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/networkscripts/ ( RedHat ) ifcfg-lo0 ifcfgeth0 & 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
tcpdump -i eth1

(in one window)


(in another window)

9. sniffer tcpdump
.
2.
1.
Question

ioctl(SIOCGIFBR) failed: Package not installed

;
Answer
bridging . 2.0
, BRIDGING
.
2.
Question
ping !
Answer
bridging ``brcfg -ena''; ( brcfg
``bridging is ENABLED'')
promiscuous mode? ( ``ifconfig''.
``PROMISC'' .)

.
.
3.
Question
telnet/ftp ! ;

Answer
IP .
.
4.
Question
;
Answer
! .
ethernet
brcfg debug mode:

brcfg -deb

5.
Question
, ``traceroute''
.
Answer
, ``traceroute''
. .
6.
Question
IP_FORWARD;
Answer
. bridging
. IP_FORWARD IP .
7.
Question
1 2
``brcfg''; ;
Answer
. ,
bridging.
8.
Question

bridging make config


. ;
Answer
, 'Y' : ``Prompt
for development and/or incomplete code/drivers
(CONFIG_EXPERIMENTAL) [Y/n/?]''.
9.
Question
(hubs, 4 )
ethernet.
hubs;
Answer
3/4/5 .
hub,
.
10.
Question
10Mb 100Mb;
;
Answer
, 10Mb
100Mb.
100Mb, TCP . ,
10Mb/s,
.