Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-12-2001, 01:51 AM
|
#1
|
LQ Newbie
Registered: Oct 2001
Posts: 2
Rep:
|
Need help with DHCP
Hi all,
I'm new to linux and i've installed redhat 7.1. I've been following a dhcp howto and have not had any luck. I'm trying to use my linux box (connected to road runner eth0) as a router. The box is hooked to a netgear switch on eth1. Dhcp seems to start fine and when I hook up my win2k machine to the switch, the /var/log/messages says that dhcp is listening and sending on eth1 and there was a dhcp reqest and dhcp awk. I can ping eth1 from my win2k and vice versa. I can't use http however. Is there something I'm missing?
Please help,
Thanks
|
|
|
10-12-2001, 02:06 PM
|
#2
|
Member
Registered: Oct 2001
Location: Ontario, Canada
Distribution: Redhat 9
Posts: 43
Rep:
|
Do you have the correct _routing_ information in the _iptables_ ??
Does your win2k machine get an ip address from your linux machine?
(get a command prompt and type
> ipconfig /renew
to see if it can get an ip from your linux machine.
Also, make sure that in your dhcpd.conf file you have all the option
option domain-name-servers x.x.x.x;
option domain-name "yourdomin.com";
|
|
|
10-12-2001, 04:15 PM
|
#3
|
LQ Newbie
Registered: Oct 2001
Posts: 2
Original Poster
Rep:
|
I didn't know that I had to setup iptables. Where can I get info on this. That wasn't mentioned in the howto's. I beleive my windows does get an ip address from my linux box but I will try your suggestion. Also I did have the dns option in the dhcp.conf file using the isp's DNS. I don't have DNS setup yet.
Thanks.
|
|
|
10-12-2001, 06:02 PM
|
#4
|
Member
Registered: Oct 2001
Location: Ontario, Canada
Distribution: Redhat 9
Posts: 43
Rep:
|
Go here for a great site on how to use, and sample scripts for, iptables.
http://www.linuxguruz.org/iptables/
|
|
|
10-17-2001, 12:20 AM
|
#5
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
Once you get NAT working you can play around with some of these dhcp options
[david@ccxxxxxx-x xinetd.d]$ cat /etc/dhcpd.conf
authoritative;
default-lease-time 32400;
max-lease-time 64800;
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.2 10.0.0.45;
option routers 10.0.0.1;
option broadcast-address 10.0.0.255;
option subnet-mask 255.255.255.0;
option domain-name "HOME";
option netbios-dd-server 10.0.0.1;
option netbios-node-type 8;
option netbios-name-servers 10.0.0.1;
}
put dhcpd eth1 in your startup scripts if eth1 is your lan interface
|
|
|
All times are GMT -5. The time now is 04:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|