RossClement
2007-12-26, 07:46 AM CST
I've got internet network sharing almost working smoothly, and am looking for the easiest way to finish it off.
I have a speedtouch 330 modem on the main desktop (FC8) which I configured successfully with speedtouchconf (http://steve-parker.org/speedtouchconf/). This comes up when the machine boots, and works well.
The second machine is a laptop also running FC8. The laptop is setup fine, with different connections created in system-config-network for both home (internet connection sharing) and work (dhcp). This configures the laptop to run with IP address 192.168.0.2, with demon internet's DNS servers through /etc/resolv.conf
I use the desktop's onboard network for internet sharing. The machines are connected via a twisted pair. The way I set this up on the desktop is by hand. So, as superuser I run:
# /sbin/ifconfig eth0 192.168.0.1
# ./nat.sh
Where "nat.sh" sets up ip masquerading (?). This fine is copied unused from my FC4 installation, and I can't remember how I built it. Except that I probably copied it from somewhere on the net and then edited the names of the LAN and WAN at the top. I've attached the nat.sh (named nat_sh.txt) to this message in case it's useful to someone like Soloman from the other thread on internet connection sharing.
In any case, this works. But it's annoying to have to run these commands by hand whenever I start up the computer.
So, where can I put these commands so that they're run automatically (as superuser) when the computer boots? Can I put them in a shellscript file in the /etc/rc.init.d directory?
Alternatively, how difficult would it be to get my desktop to function as a DHCP server so that the laptop can connect to the internet in the same way at home or work, and also that would allow me to go online with my laptop running windows. I can easily find beginner's guides to DHCP such as (http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch08_:_Configuring_the_DHCP_Server), but does FC8 have more advanced software potentially not covered in these guides?
I have a speedtouch 330 modem on the main desktop (FC8) which I configured successfully with speedtouchconf (http://steve-parker.org/speedtouchconf/). This comes up when the machine boots, and works well.
The second machine is a laptop also running FC8. The laptop is setup fine, with different connections created in system-config-network for both home (internet connection sharing) and work (dhcp). This configures the laptop to run with IP address 192.168.0.2, with demon internet's DNS servers through /etc/resolv.conf
I use the desktop's onboard network for internet sharing. The machines are connected via a twisted pair. The way I set this up on the desktop is by hand. So, as superuser I run:
# /sbin/ifconfig eth0 192.168.0.1
# ./nat.sh
Where "nat.sh" sets up ip masquerading (?). This fine is copied unused from my FC4 installation, and I can't remember how I built it. Except that I probably copied it from somewhere on the net and then edited the names of the LAN and WAN at the top. I've attached the nat.sh (named nat_sh.txt) to this message in case it's useful to someone like Soloman from the other thread on internet connection sharing.
In any case, this works. But it's annoying to have to run these commands by hand whenever I start up the computer.
So, where can I put these commands so that they're run automatically (as superuser) when the computer boots? Can I put them in a shellscript file in the /etc/rc.init.d directory?
Alternatively, how difficult would it be to get my desktop to function as a DHCP server so that the laptop can connect to the internet in the same way at home or work, and also that would allow me to go online with my laptop running windows. I can easily find beginner's guides to DHCP such as (http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch08_:_Configuring_the_DHCP_Server), but does FC8 have more advanced software potentially not covered in these guides?