Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My target setup is as follows:

  1. Ubuntu 11.04 64 bit server which has a WiFi USB dongle that connects to a Linksys WRT160NL wireless router (and from them to the net).
  2. A Drobo FS that connects directly to the Ethernet port of Ubuntu.
  3. Laptops and iPhones connecting to the Linksys router wirelessly.

I want all devices to be on the same network (like The only problem I can't solve is how to make the Ubuntu server act as proxy/bridge (not sure what the right word is) for all packets going to and from the Drobo.

share|improve this question

I would not advise bridging wifi and wired networks. Keep them separate and use routing, that way your ethernet traffic won't be broadcast to the world with the wifi slowing down your wired traffic.

(Instead of buying a new wifi router, I configured a spare ASUS EEE PC to do the same job with 100mbps internet traffic on external usb, the ethernet port on and the wifi as an access point with dhcp on - it works brilliantly, but your arrangement is much simpler.)

If you split your wifi/wired subnets with /25, then you could still make your network look like 192.168.1.x :-) Set dhcp on the router for 3-127 for wifi and 128-253 for wired if poss, otherwise might need to do static addresses or configure dhcp on the server for eth0 net with appropriate firewall rules to separate the dhcp traffic. In any case, traffic should be tidied with iptables to avoid leaking broadcasts etc.

on the server:

echo 1 > /proc/sys/net/ipv4/ip_forward
route add default gw dev wlan0 # to linksys
route add -net netmask dev wlan0
route add -net netmask dev eth0

This probably isn't complete or correct, but I hope should give you a start with a little googling.

share|improve this answer
the problem is that I need both legs on the same network (so broadcast will transmit from one to the other). What should I set the eth0 ip in that case (my understanding is that you cant have a server with two legs with ips from the same network)? – DrorCohen Jul 29 '11 at 13:54
I expected it would be .254 (hence dhcp 128-253). Should be able to make broadcasts traverse subnets, while keeping local traffic local to each subnet. Not sure I follow your last point - a server can have many addresses from lots of networks, and interfaces can also have many addresses. We are splitting a network into two pieces, one for wired, one for wireless, FF.FF.FF.80. If broadcast mask is then it should cover both subnets. – Andy Lee Robinson Jul 29 '11 at 18:40

That router has four ethernet ports on it, so I can only see two reasons why you wouldn't plug your Drobo into it:

  1. All 4 ports are already taken (not too hard to imagine), or

  2. You don't want a noisy Drobo wherever your router is.

If the second case is true, I would suggest doing what I did and get an ethernet cable long enough so that you can put your Drobo someplace else. A nearby closet for instance.

If it's the first case, add a switch to the mix. 8 port gigabit switches can be had for less than $50, and you've already spent a whole lot more than that on your Drobo. Also, you probably have enough wired gadgets to make it worth your while.

share|improve this answer
Actually the reason is that the server and Drobo are in a different room than the phone and the adsl wifi router – DrorCohen Aug 1 '11 at 7:21
I still qualify that as reason 2. If it's not that difficult to string a cable I would do that. Powerline modems might also be an option. – MBraedley Aug 1 '11 at 12:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .