Sharing Internet connection over firewire (IEEE1394) in Ubuntu 9.10Suppose we have 2 computers, one of them has an Internet connection. We can connect them over firewire and get a local network:
Code:
sudo modprobe eth1394 On 192.168.200.1 do the following: Code:
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE Code:
bash: /proc/sys/net/ipv4/conf/all/forwarding: Permission denied Code:
sudo gedit /etc/sysctl.conf Then apply the changes: Code:
sudo sysctl -p Code:
cat /proc/sys/net/ipv4/ip_forward Code:
cat /proc/sys/net/ipv4/ip_forward Code:
sudo route add default gw 192.168.200.1 p.s. Windows XP allowed to share Internet connection over firewire, but you can't do that in Windows Vista and Windows 7. But you still can use Windows XP, Linux or Mac OS... |
Re: Sharing Internet connection over firewire (IEEE1394) in Ubuntu 9.10Although Internet connection over firewire works fine, it stops working after rebooting.
You can repeat the following steps: on computer #1 Code:
sudo modprobe eth1394 Code:
sudo modprobe eth1394 |
Re: Sharing Internet connection over firewire (IEEE1394) in Ubuntu 9.10Please note that eth2 is used on my computer #1 for firewire, while eth8 is used on my computer #2 for firewire.
See what interfaces are used on your computer by running: Code:
sudo ifconfig -a Code:
sudo ifconfig -a |
Re: Sharing Internet connection over firewire (IEEE1394) in Ubuntu 9.10Great tutorial. I did not even know that I could share the internet connection via Firewire.
I haven't tried it out but it looks alright to me. echo 1 > /proc/sys/net/ipv4/conf/all/forwarding fails for you because you did not execute it as root. I'm saying this as sysctl is not recommended anymore. It will be removed in the next kernel releases. If the above command fails with sudo, try this: sudo sh -c 'echo 1 > /proc/sys/net/ipv4/conf/all/forwarding' |
Re: Sharing Internet connection over firewire (IEEE1394) in Ubuntu 9.10Thank you, elch.
Code:
sudo echo 1 > /proc/sys/net/ipv4/conf/all/forwarding But I tried the following Code:
sudo -i My firewire Internet connection sharing has stopped working. I couldn't find the reason. And I was really tired to type all the commands. I just got a router... didn't really want to waste my time onto the problem anymore. |
Re: Sharing Internet connection over firewire (IEEE1394) in Ubuntu 9.10What about
sudo sh -c 'echo 1 > /proc/sys/net/ipv4/conf/all/forwarding'. This should create a shell and execute the "echo 1 > /proc/..." command within it. The speed also interests me: Is this firewire connection faster than a Gbit ethernet connection? If you're going to retry it some day and then run into problems again, "dmesg" will most likely contain the culprit. Good luck. |
Re: Sharing Internet connection over firewire (IEEE1394) in Ubuntu 9.10Quote:
Quote:
Quote:
|
All times are GMT -6. The time now is 11:52 PM. |