Results 1 to 7 of 7

Thread: how do i setup ubuntu home network

  1. #1
    Join Date
    Sep 2009
    Beans
    6
    Distro
    Ubuntu 8.04 Hardy Heron

    Question how do i setup ubuntu home network

    i found a tutorial which shows how to setup ubuntu server as a router and i have it working but my ubuntu server has 3 ethernet ports one plugs directly into the cable modem and the other into my windows Pc via crossover cable and i can access the internet on both machines

    my problem is when i try adding another crossover cable in the 3rd port to my laptop i cannot access the internet now i know that i could use a switch on the second ethernet port but it would be pointless because i only want to connect one more Pc to the network so i thought of using a crossover cable in the 3rd ethernet port instead but i can't get it to work does anyone know if its possible in ubuntu ?

    because i know it is easy done on windows via bridging 2 connections together while the 3rd plugs directly into the cable modem

    thanks in advance

  2. #2
    Join Date
    Sep 2009
    Beans
    6
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how do i setup ubuntu home network

    this is the link to the tutorial i followed http://server-servers.com/ubuntu-int...ay-and-router/

    do i need to create a network bridge between eth1 and eth2 ?

  3. #3
    Join Date
    Sep 2009
    Beans
    6
    Distro
    Ubuntu 8.04 Hardy Heron

    Question Re: how do i setup ubuntu home network

    anyone ?

  4. #4
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: how do i setup ubuntu home network

    Here is a bridging How-To, but it would seem that some (more) iptables rules should make Ubuntu act as a switch/router. Perhaps something in this ICS help page will be useful.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  5. #5
    Join Date
    Sep 2009
    Beans
    6
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how do i setup ubuntu home network

    which ethernet ports do i need to bridge ? heres my setup

    internet
    |
    modem
    |
    |
    eth0 <=== gets ip via dhcp
    --------------
    ubuntu/router
    --------------
    eth1 eth2
    | |
    | |
    Pc1 Pc2

    i can only access the internet on Pc1 using crossover cable but i want Pc2 to access the internet heres my network interfaces settings
    Code:
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto eth0
    iface eth0 inet dhcp
    
    auto br0
    iface br0 inet static
    address 192.168.10.1
    netmask 255.255.255.0
    network 192.168.10.0
    broadcast 192.168.10.255
    bridge_ports eth1 eth2
    bridge_maxwait 0
    Last edited by dannyz; September 11th, 2009 at 10:19 PM.

  6. #6

    Re: how do i setup ubuntu home network

    In the guide i wrote, it was meant eth0 for your internet address and eth1 for your local network address. Following the setup, you will create the router or bridge he internet connection with your local network by setting up the firewall definitions further in the guide.

  7. #7

    Re: how do i setup ubuntu home network

    Quote Originally Posted by dannyz View Post
    which ethernet ports do i need to bridge ? heres my setup

    internet
    |
    modem
    |
    |
    eth0 <=== gets ip via dhcp
    --------------
    ubuntu/router
    --------------
    eth1 eth2
    | |
    | |
    Pc1 Pc2

    i can only access the internet on Pc1 using crossover cable but i want Pc2 to access the internet heres my network interfaces settings
    Code:
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto eth0
    iface eth0 inet dhcp
    
    auto br0
    iface br0 inet static
    address 192.168.10.1
    netmask 255.255.255.0
    network 192.168.10.0
    broadcast 192.168.10.255
    bridge_ports eth1 eth2
    bridge_maxwait 0
    I would just buy a switch and hook it to one ethernet connection. The only cost $30

Bookmarks

Posting Permissions

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