How do I get both my PCs connected to the modem on the other end of the house. The 2 PCs are next to each other and the Ethernet cable is just enough to connect the PCs together. Only one of the PCs has working wireless connection.
|
feedback
|
|
as root
you could copy and paste that into the end of the file, but i think it's better to understand it and the eth0 interface with a static ip of 192.168.254.1 would be a pretty reasonable setup sudo service dhcp3-server restart change any pertinent firewall rules - adding the following lines to the end of rc.local should do it to enable nat on next boot /sbin/iptables -P FORWARD ACCEPT I have a shell script that does this for me on startup depending on the cards, the cable might need to be a crossover cable one additional note, for ip_forward to be set at boot time edit /etc/sysctl.conf a more in depth tutorial is here: http://ubuntuforums.org/showthread.php?t=713874 | |||||||||||
feedback
|
