goyle
11-15-2000, 11:58 PM
I don't have any troubles getting samba to work, I just need to know if having DHCP and getting a new ip every once in a while is going to be a problem?
Thanx
Thanx
|
Click to See Complete Forum and Search --> : DHCP with Samba goyle 11-15-2000, 11:58 PM I don't have any troubles getting samba to work, I just need to know if having DHCP and getting a new ip every once in a while is going to be a problem? Thanx Fandelem 11-15-2000, 11:59 PM only with your firewall (sometimes/maybe). samba will be fine. goyle 11-16-2000, 12:19 AM Thanx for the quick reply, that's a load off except in the NHF for Samba it tells you to map the host names to ips' in the 'hosts' file. Won't that cause a problem since the other machines ips' will change from whatever I put in there? The 3 other machines here also use dhcp to get an ip from my router so they would never be the same. Fandelem 11-16-2000, 12:32 PM yes, it will create a problem. here is my fix: in my /etc/dhcpd.conf i have: host backup { hardware ethernet 00:50:BA http://www.linuxnewbie.org/ubb/biggrin.gif1:F7:37; fixed-address 192.168.0.2; } host kdavis { hardware ethernet 00:50:BA http://www.linuxnewbie.org/ubb/biggrin.gif8:BB:0E; fixed-address 192.168.0.3; } host ldavis { hardware ethernet 00:50:ba:d1:fb:07; fixed-address 192.168.0.4; } host rdavis { hardware ethernet 00:e0:7d:8f:62:31; fixed-address 192.168.0.5; } host jdavis1 { hardware ethernet 00:e0:7d:8f:a8:cd; fixed-address 192.168.0.6; } host laptop { hardware ethernet 00:80:C8:83:8B:51; fixed-address 192.168.0.10; } i'm going to cut and paste a section from my home networking howto (www.fandelem.com/nhf.html): --start snippet-- 3.2 Deciding on how you want it setup Keep in mind you need to edit this file to change the IP addresses, subnets, and fixed computer names to whatever you would like to have them setup to be. The file as is will result in DHCP server giving a client an IP address from the range 192.168.1.10 through 192.168.1.200 with fixed addresses (which will only work in my network, so you *will* need to find out our own computer's MAC addresses, because MAC addresses are unique for each network card) of .2,.3,.4,.10. Don't misunderstand me, this file will work as is, but you might want to change some things around, just make sure you make a backup copy before you want to test anything out. These are Class C IP addresses. Feel free to change them accordingly (Don't forget to alter the subnet mask too!!). I have included some fixed-addresses in this file. This can be useful for a number of reasons, but the main reason for doing something like this is that the DHCP server will always assign the given fixed-IP-address to that certain computer on your network, and if any of your friends want to come over, it will just assign them a sequential number (starting at .10 and working up to .200 eventually). Note: You *WILL* need to change the hardware ethernet to each of your network cards (this is done in windows by clicking start -> run -> winipcfg, then select your ethernet card and write down the number that looks similar to in the file (such as: 00:50:ba:d1:fb:07). If you don't want to bother with this right now, or if it seems too overwhelming, just erase the every host entry at the bottom of this file. --end snippet-- your mileage may vary, any other specific questions, feel free to ask away. regards, ~kyle goyle 11-17-2000, 09:09 AM Thanks Kyle, I'll give it a go and see what happens. justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |