Results 1 to 1 of 1

Thread: Need Help Bridging 2 interfaces

  1. #1
    Join Date
    Dec 2007
    Beans
    104
    Distro
    Ubuntu 12.04 Precise Pangolin

    Need Help Bridging 2 interfaces

    so what i am trying to do is connect my xbox360 through one of my spare ethernet interfaces on my computer running ubuntu 10.10,

    so far i did these steps below

    Code:
    sudo ifconfig eth0 down
    sudo ifconfig eth1 down
    sudo brctl addbr bridge0
    sudo brctl addif bridge0 eth0
    sudo brctl addif bridge0 eth1
    sudo ifconfig bridge0 192.168.2.100 netmask 255.255.255.0
    sudo ifconfig eth0 192.168.2.50 netmask 255.255.255.0
    sudo ifconfig eth1 192.168.2.102 netmask 255.255.255.0
    sudo iptables -A FORWARD --in-interface eth1 --out-interface eth0 --source 192.168.2.0/255.255.255.0 -m state --state NEW -j ACCEPT
    sudo iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
    sudo iptables -A POSTROUTING -t nat -j MASQUERADE
    sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
    this crates a bridge and bridges the 2 interfaces to the bridg0 but when i try to connect with my xbox360 it says it cant find the DNS server?

    i tried doing it automatically but it wont get the setting automatically.

    my router/gateway is at 192.168.2.254
    Last edited by sky5564; January 21st, 2011 at 12:51 AM.

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
  •