Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Trying to set up my REdHat 7.3 installation to access the internet and provide a network for my local machines at the same time. However, I have a few problems and would appreciate any help.
I use eth0 to access the inetnet and that works fine. I have all the scripts in place to provide masquerading for eth1 and I gave it an IP of 192.168.1.0. Spelled out the params in /etc/dhcpd.conf per instructions but when I try start dhcpd, I get an error that eth0 is not defined.
The program starts up fine without an error now. However, PC's on that net do not get and address fron the server. They are connected through a mini-hub and when I boot under Windows XP, it works fine. (this is dual boot system).
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.1.128 192.168.1.255;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
# host ns {
# next-server marvin.redhat.com;
#hardware ethernet 12:34:56:78:AB:CD;
#fixed-address 207.175.42.254;
#}
}
If I remember right any IP number that end with x.x.x.0 or x.x.x.255 is reserved and you can not use it. Try setting the IP to 192.168.0.1. I think that this will take care of your problem.
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range 192.168.0.10 192.168.0.100;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
# host ns {
# next-server marvin.redhat.com;
#hardware ethernet 12:34:56:78:AB:CD;
#fixed-address 207.175.42.254;
#}
}
I get the error:
Address range 192.168.0.10 to 192.168.0.100 not on net 192.168.0.1/255.255.255.0!
When I changed the subnet to x.x.x.0, there were no errors when starting dhcpd on eth1. However, I still can't get any addresses to be assigned on my internal network.
I don't know why, but when I tried using 192.168.0.x as my internal network, I got lots of weird errors... Just try using 192.168.1.x, and you should be fine. Keep the netmask the same.
IP addresses in the form x.x.x.0 and x.x.x.255 are indeed reserved (but I don't think you can't override that). The x.x.x.0 address is the network address by default, the x.x.x.255 address is the network broadcast address, by default. I believe that x.x.x.1 is the network gateway default address, but I may be wrong... Need to brush up on my IP fundamentals...
be careful when specifying network ie
192.168.1.1/24 wrong
192.168.1.0/24 right (network need to have zero for the class you specify)
or
192.168.0.0/16 = 192.168.0.0 mask 255.255.0.0
+
you have defined range for bootp clients, that isn't dhcp from windows, that is for machines that boot from network.
Can you ping your server by ip number? if not stop the IP masquerading, this maybe your problem. Just stick with getting dhcp working first.
One more thing, there is a book named Linux for Windows NT/2000 Administrators, published by Sybex. This book gives easy to understand how-to's and examples. It's writen by Mark Minasi with help from Dan york and Craig Hunt..
The ISBN number is 0-7821-2730-4.
Thanks. Yes, I can ping the server from any of the PC's, no problem. I changed the range by removing the bootp statement.. Still can't get an IP!!!! I really don't understand it! It's driving me nuts. I removed the masq stuff too and still nothing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.