Find the answer to your Linux question:
Results 1 to 8 of 8
Hi, I have an overo gumstick with Tobi board expansion that gives it an Ethernet jack. If I plug my overo directly into my router than everything works just great. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2012
    Posts
    9

    Sharing internet from wlan0 to eth0 which runs to an overo gumstick.


    Hi,
    I have an overo gumstick with Tobi board expansion that gives it an Ethernet jack. If I plug my overo directly into my router than everything works just great.

    I bought a cross over cable and plugged it into the overo and into my ubuntu laptop. The laptop has a wireless interface wlan0 that I use to connect to the router.

    I want to forward all the packets from the overo over the ubuntu laptops wlan0 interface to the router so that the overo still uses dhcp and gets its own IP address from the router. How do I do that?

    I've tried reading the ubuntu forums and all over google, but every case seems different and a little confusing. I tried making a bridge using firestarter, but apparently you can't actually bridge from wlan to eth0.

    I'm thankful for any help.

    All the best,

    Anthony G.

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    Ensure that FORWARD is turned on in Ubuntu. without this Ubuntu will not forward the packets.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    Jun 2012
    Posts
    9
    If I do
    Code:
    $cat /proc/sys/net/ipv4/ip_forward
    1
    This seems to indicate that it is able to forward packets.

    In network manager, I have the wireless set to "Automatic DHCP", and the eth0 set to "Shared To Other Computers".

    Thanks for the help. What else should I try/do?

  4. #4
    Linux Newbie nplusplus's Avatar
    Join Date
    Apr 2010
    Location
    Charlotte, NC, USA
    Posts
    106
    Well, since you're having to go at this as a layer three problem and have set ip_forward, roughly what remains is the following.

    1) Set a static IP on eth0.
    2) Set a static route on the router that points to the wlan0 interface of the laptop as the next hop for the eth0 network, or setup the laptop and the router to dynamically share routes (i.e. through RIPv2, OSPF, or ISIS).
    3) Configure the laptop as a DHCP relay with the IP address of the DHCP server.
    4) Configure your DHCP server to hand out addresses for the network on the other side of eth0. Configure a scope for the network. Configure your options (gateway, DNS servers).

    It seems weird you wouldn't be able to bridge the interfaces. I would think linux bridging wouldn't care about the difference in the two kinds of encapsulation. I mean, most consumer grade wireless routers do that anyway.

    N

  5. #5
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    Quote Originally Posted by garland3 View Post
    If I do
    Code:
    $cat /proc/sys/net/ipv4/ip_forward
    1
    This seems to indicate that it is able to forward packets.
    OK, how did you come to this conclusion? What number does it provide?

    1=FORWARD
    0=OFF

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  6. #6
    Just Joined!
    Join Date
    Jun 2012
    Posts
    9
    I bought a wifi dongle so that I can connect wirelessly to the router all the time from the overo. It works well. It doesn't really answer the questions I was having though.

  7. #7
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    Do you have a firewall up and running?
    Is it masquerading the packets leaving wlan0?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  8. #8
    Just Joined!
    Join Date
    Jun 2012
    Posts
    9
    Can you give me step by step instructions on what to do??

    I'm not sure how to accomplish some of the steps given by nplusplus.

    In step 1. Do I sent the ubuntu computer to have a static IP? or the overo?
    Step 2. How do I set up the router of the laptop to dynamically share routes?
    Step 3. How do I configure the laptop as a dhcp relay?
    Step 4. I'm assuming I don't' have to change anything on the router to let it hand out dhcp addresses?

    Anthony G.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •