Need a bridge from an ethernet interface to a serial interface

This is my situation

DOS pc         serial cable (sl0)  Linux Pc       eth1
192.168.0.10 <-------------------->192.168.0.2 <------------>192.168.0.1 (router)

I connected the linux pc and the dos pc with a SLIP (serial line internet protocol), so they can communicate in the sl0 interface.

I need the DOS pc can reach the router at 192.168.0.1 and the Internet, so i tried to make a bridge between sl0 and eth1

# brctl addbr br0
# brctl addif eth1
# brctl addif sl0
can't add sl0 to bridge br0: Invalid argument

Can anyone help me? Thank you for any reply.

I'm pretty sure you skipped some steps. Here is a really good howto:

Linux Online - Set Up The Bridge

I think that you need to run something like:

route add default 192.168.0.1 

on the DOS machine, or just add 192.168.0.1 as the default gateway.
Where this is added though will depend on the TCP software that you are using.

On the DOS machine I'm using Trumpet Winsock on Win3.11. I tried to set 192.168.0.1 as gateway, but now it doesn't connect at all. It cannot reach Internet, the router at 192.168.0.1nor the ubuntu box at 192.168.0.2.

In fact I can set up the SLIP connection only if I set the ubuntu box as gateway.

I tried to enable ip forwarding in the ubuntu box but the Dos pc still doesn't reach the internet...

Help! :frowning: