There's no need to use a bridge, in Fedora 11 this is much easier.
Comp1 (Connected to internet via wlan0, connected to comp2 via cable from eth0)
================================================== ===
1. Open System -> Administration -> Firewall, and under 'Masquerading' select wlan0 (scroll down, if it's not there add it), then click 'Apply'
2. Set eth0 to ip 10.0.0.1, either via Network Manager or from the command line with
Code:
ifconfig eth0 10.0.0.1
(Assuming your wifi connection is in 192.168.*.* range)
Comp2 (Connected to Comp1 via cable from eth0)
=================================
1. Stop NetworkManager service since it's easier without:
Code:
service NetworkManager stop
2. Set eth0 ip address to 10.0.0.2 and default gateway to 10.0.0.1:
Code:
ifconfig eth0 10.0.0.2
route add default gw 10.0.0.1
Check you can ping 10.0.0.1, and an external ip such as 4.2.2.4
3. Now just set a DNS address in /etc/resolv.conf, eg if comp1 has dns address 192.168.1.1 then just put this line in /etc/resolv.conf
Code:
nameserver 192.168.1.1
(if unsure use a free external DNS like 4.2.2.x, x=1..6)
That's it, easy enough to script. I have to do this sometimes when I have no wifi connection on a portable machine and it's easier to plug into a internet connected laptop rather than the router, which is behind furniture.