Find the answer to your Linux question:
Results 1 to 6 of 6
Hey, I've got a little problem. I am setting up a test-network which needs to connect to the internet through a Linux-Network-Bridge. I've got a server with Ubuntu 8.04 server ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    525

    Network bridge


    Hey,

    I've got a little problem. I am setting up a test-network which needs to connect to the internet through a Linux-Network-Bridge. I've got a server with Ubuntu 8.04 server with 2 LAN cards. One side is connected to the internet, the other to the local network.

    I can ping to both inside the network and to the internet from this little server, but I can't get other machines to connect through this server.

    I hope you guys can help me. I can only access this server on Thursday and Friday and sometimes on another day, so just throw your advices at me and don't wait until I respond.

    Thanks in advance.

  2. #2
    Linux User dxqcanada's Avatar
    Join Date
    Sep 2006
    Location
    Canada
    Posts
    259
    If this host is routing packets between the two interfaces' then it should be the default gateway for the other hosts on the network.
    Check the route table on those other hosts using "netstat -r"



    Men occasionally stumble over the truth,
    but most of them pick themselves up
    and hurry off as if nothing had happened.

    Winston Churchill


    ... then the Unix-Gods created "man" ...

  3. #3
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    525
    I am getting the following response:

    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    [ip]            *               255.255.255.489 U         0 0          0 eth0
    192.168.20.0    *               255.255.255.0   U         0 0          0 br0
    default         a80-127-165-25. 0.0.0.0         UG        0 0          0 eth0
    On the server this is. It's IP on eth1 = 192.168.20.1 This is on the clients:
    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    192.168.20.0    *               255.255.255.0   U         0 0          0 eth0
    default         192.168.20.1    0.0.0.0         UG        0 0          0 eth0

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User dxqcanada's Avatar
    Join Date
    Sep 2006
    Location
    Canada
    Posts
    259
    Ok, your clients appear to be using the correct default gateway.

    So this would mean that the Server is not routing the packets to the Eth0 interface.

    As I have never setup a Linux host this way, I have to admit that I cannot assist you any further.



    Men occasionally stumble over the truth,
    but most of them pick themselves up
    and hurry off as if nothing had happened.

    Winston Churchill


    ... then the Unix-Gods created "man" ...

  6. #5
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    525
    You say this way, so I guess there is another way to do this. What I am trying to accomplish is just :

    [Internet] - <Modem> - <Linux server> - [LAN]

    I you know how to get this done, please tell me?

  7. #6
    Linux User dxqcanada's Avatar
    Join Date
    Sep 2006
    Location
    Canada
    Posts
    259



    Men occasionally stumble over the truth,
    but most of them pick themselves up
    and hurry off as if nothing had happened.

    Winston Churchill


    ... then the Unix-Gods created "man" ...

Posting Permissions

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