Hi,

   I want to connect 2 Computers (C1 and C2) to the
LAN of my dorm, but I only have one connection to it.
Instead of buying a hub/switch i opted for making a
non-transparen bridge. 

    I want both computers to be able to use the
internet and I want both computers to be able to have
services running in the LAN.

Internet <-> [ Gateway <-> ( eth0 C1 eth1 ) <-> C2 ]

   The LAN is represented by the computers in the [ ],
C1 is the bridge.

Gateway:      192.168.10.161
C2:           192.168.10.198
eth0 and eth1 192.168.10.178
C1 should be  192.168.10.178

   I got the bridge working, meaning that C2 can be a
server and can use the internet, but I can't ping the
virtual interface from C1 from any computer and i
can't ping any computer from Computer C1. I tried
setting the IPs of eth0 and eth1 to 0.0.0.0, but it
didn`t help.

   Any help would be apreciated.

PS: Further relevant information follows
(startup-script, route and ifconfig):

Thanks in Advance

Leonardo Weiss Chaves

Script to start the bridge:

brctl addbr br1
brctl addif br1 eth1
brctl addif br1 eth0
brctl stp br1 off
ifconfig br1 192.168.10.178 up

route -n without bridge:

Destination     Gateway         Genmask         Flags
Metric Ref    Use Iface
0.0.0.0         0.0.0.0         255.255.255.0   U    
0      0        0 eth2
192.168.10.0    0.0.0.0         255.255.255.0   U    
0      0        0 eth1
192.168.10.0    0.0.0.0         255.255.255.0   U    
0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U    
0      0        0 lo
0.0.0.0         192.168.10.161  0.0.0.0         UG   
0      0        0 eth0

route -n with bridge:

Destination     Gateway         Genmask         Flags
Metric Ref    Use Iface
0.0.0.0         0.0.0.0         255.255.255.0   U    
0      0        0 eth2
192.168.10.0    0.0.0.0         255.255.255.0   U    
0      0        0 eth1
192.168.10.0    0.0.0.0         255.255.255.0   U    
0      0        0 eth1
192.168.10.0    0.0.0.0         255.255.255.0   U    
0      0        0 br1
127.0.0.0       0.0.0.0         255.0.0.0       U    
0      0        0 lo
0.0.0.0         192.168.10.161  0.0.0.0         UG   
0      0        0 eth0

ifconfig without bridge:

eth0      Link encap:Ethernet  HWaddr
00:00:E2:1A:BE:53  
          inet addr:192.168.10.178 
Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          RX packets:369707 errors:0 dropped:0
overruns:0 frame:1
          TX packets:2061 errors:0 dropped:0
overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:28240539 (26.9 Mb)  TX bytes:203694
(198.9 Kb)
          Interrupt:19 Base address:0xc000 

eth1      Link encap:Ethernet  HWaddr
00:00:21:09:07:A0  
          inet addr:192.168.10.178 
Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          RX packets:49672 errors:0 dropped:0
overruns:0 frame:0
          TX packets:404778 errors:0 dropped:0
overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:3433106 (3.2 Mb)  TX
bytes:153180119 (146.0 Mb)
          Interrupt:18 Base address:0x6000 

eth2      Link encap:Ethernet  HWaddr
10:00:5A:BA:45:03  
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0
frame:0
          TX packets:0 errors:1 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:0 (0.0 b)  TX bytes:120 (120.0 b)
          Interrupt:3 Base address:0x280 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:744 errors:0 dropped:0 overruns:0
frame:0
          TX packets:744 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:77112 (75.3 Kb)  TX bytes:77112
(75.3 Kb)

ifconfig with bridge:

br1       Link encap:Ethernet  HWaddr
00:00:21:09:07:A0  
          inet addr:192.168.10.178 
Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          RX packets:185572 errors:0 dropped:0
overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:9302695 (8.8 Mb)  TX bytes:42 (42.0
b)

eth0      Link encap:Ethernet  HWaddr
00:00:E2:1A:BE:53  
          inet addr:192.168.10.178 
Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          RX packets:367844 errors:0 dropped:0
overruns:0 frame:1
          TX packets:2056 errors:0 dropped:0
overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:28120555 (26.8 Mb)  TX bytes:202539
(197.7 Kb)
          Interrupt:19 Base address:0xc000 

eth1      Link encap:Ethernet  HWaddr
00:00:21:09:07:A0  
          inet addr:192.168.10.178 
Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          RX packets:49672 errors:0 dropped:0
overruns:0 frame:0
          TX packets:403742 errors:0 dropped:0
overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:3433106 (3.2 Mb)  TX
bytes:153112667 (146.0 Mb)
          Interrupt:18 Base address:0x6000 

eth2      Link encap:Ethernet  HWaddr
10:00:5A:BA:45:03  
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0
frame:0
          TX packets:0 errors:1 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:0 (0.0 b)  TX bytes:120 (120.0 b)
          Interrupt:3 Base address:0x280 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:741 errors:0 dropped:0 overruns:0
frame:0
          TX packets:741 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:0
          RX bytes:76520 (74.7 Kb)  TX bytes:76520
(74.7 Kb)




__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
_______________________________________________
Bridge mailing list
[EMAIL PROTECTED]
http://www.math.leidenuniv.nl/mailman/listinfo/bridge

Reply via email to