Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Mar 2003 18:04:14 +0100
From:      Are-Harald Brenne <are-harald.brenne@econ.uib.no>
To:        questions@freebsd.org
Subject:   Bridge problem
Message-ID:  <20030302180414.00007ebf.are-harald.brenne@econ.uib.no>

next in thread | raw e-mail | index | archive | help

Hi all,

I have one old p166-box running 5.0 and an athlon. I am trying to let the athlon connect to the net through a bridge on the p166. I have a 100 mbit socket in the wall at my room which is at a student's house. The dhcp servers assignes 10.10.X.X adresses, and the internet connection is set up with a tunnel (vpn/mpd) against a gateway server. The athlon also runs MS Windows with netbeui and ipx/spx which is why I want the Freebsd-machine to work as a bridge and not as a router.

Everything works fine, except my two machines cannot contact one another at the dhcp-assigned 10.10-adresses. Pinging simply times out. I get contact using the internet adresses through the internet connection tunnels, but linking up through the vpn gateway is ten times slower than what a direct connection should be. Setting up smb/nfs-shares through such a tunnel is also unpractical.

I have two realtek-cards and one 3com card using the xl driver and I have tried different combinations of setups with no difference. I have used the athlon as a bridge with MS windows, and it worked perfectly. 

the handbook section 19.4.6 says it is a bad idea to assign both interfaces an address prior to bridging them.

I could by a switch, but it costs money. I could use the athlon as a bridge, but I don't want the uptime of the p166 to depend on the athlon.

I suspect this might be a routing issue, and I have played around abit with adding a route with the athlon-10.10.-ip pointing to the network card connected to it (rl0) with no luck. I have also tried to add routes on the athlon. I've tried assiging rl0 the ip adress it usually gets from the dhcp-server, which is based on its mac-adress, 10.10.75.180, prior to issuing the bridging command. 

Below is the output of netstat -r and ifconfig. xl0 is connected to the plug in the wall, rl0 is connected to the athlon which gets an adress of 10.10.66.194 from dhcp. 

Pinging 10.10.75.180 from the athlon gives response with time<1ms even though this adress does not appear anywhere in the freebsd-box.


Any suggestions?


Cheers,
Are



# netstat -r
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            uib-gw3.uib.no     UGSc        1        3    ng0
10                 fantoft-gw.fantoft UGSc        2        0    xl0
10.10.64/20        link#1             UC          1        0    xl0
fantoft-gw.fantoft 00:10:2f:ef:c4:1c  UHLW        3        0    xl0   1071
localhost          localhost          UH          0        0    lo0
uib-gw3.uib.no     tunnel-43-204.vpn. UH          2        0    ng0
# ifconfig
xl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        inet 10.10.74.177 netmask 0xfffff000 broadcast 10.10.79.255
        ether 00:60:08:92:a5:68
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
rl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        ether 00:50:bf:e7:69:f1
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500
        inet 129.177.43.204 --> 129.177.43.1 netmask 0xffffffff

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030302180414.00007ebf.are-harald.brenne>