LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-12-2003, 03:27 AM   #1
d33pdream
Member
 
Registered: Jan 2003
Distribution: LFS
Posts: 90

Rep: Reputation: 15
RH8 as router for win98 box - DHCP question


REDHAT 8.0 Machine
---------------------------
eth0 = Internet
eth1 = Internal (goes directly to the windows98 box)


I read up on iptables and understand it's NAT funtions and how to enable it but eth1 PLUS the windows98 machine do not have IP address. Do i need to setup dhcpd to run on that interface? Im a little confused as to how to get that going, it's mannual is rather cryptic (to me).

----

Coming off a fresh install of Redhat 8.0 i've done this;

modprobe iptable_nat

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

echo 1 > /proc/sys/net/ipv4/ip_forward

But have a funny funny feeling I need to do something about assigning eth1 an IP and setting it up to release an IP to the other machine.

OR(!) Seeming there is only one other machine on the nextwork (the windows 98 box) can I give 98 and the internal eth1 cards both a class C and tell 98 to use my RH8 eth1 as the gateway? hrm.. don't have access to the 98 box right now but -- would that work? seems like it would
 
Old 03-12-2003, 03:51 AM   #2
Rickdog
LQ Newbie
 
Registered: Feb 2003
Location: North Dakota
Distribution: Redhat 7.3, 8.0
Posts: 28

Rep: Reputation: 15
Check out the diagrams of how the IP addresses are set up in this manual section from Firestarter. It has worked for me dozens of times using NAT. Firestarter, BTW, makes setting up NAT and firewalls ridiculously easy. I never even bother with iptables (mainly cuz it's so friggin complicated) anymore. Firestarter gnome version 2.x.0.9.1 works great with RH 8.0 and I shamelessly plug it all the time.

http://firestarter.sourceforge.net/manual/nat.php

See where the internal device is configured? It says: Default gateway (IP): <leave empty> , it is important to leave the default gateway on the internal device blank, you can thank me for bringing this to their attention. Anyway, it works great and sets up filtering for all sorts of things, Samba included. You can set your IP's with the network device control gui, download firestarter, run the wizard, and have NAT working in about 5-10 minutes. It beats the heck out of banging your head over iptables for days on end.

Last edited by Rickdog; 03-12-2003 at 03:55 AM.
 
Old 03-13-2003, 07:14 PM   #3
estranged0877
Member
 
Registered: Jan 2003
Posts: 52

Rep: Reputation: 15
DHCP

You need to set an internal IP to your internal nic... say 192.168.1.254.

You need to start DHCP and create a dhcp.leases file and create the dhcpd.conf file.

If you need examples let me know and I would be happy to post.

Your internet card just needs to be able to connect to the internet
 
Old 03-13-2003, 07:25 PM   #4
d33pdream
Member
 
Registered: Jan 2003
Distribution: LFS
Posts: 90

Original Poster
Rep: Reputation: 15
Ty for the replies.

Since there is only one machine im connected to (internally) is it really necessary for DHCP? I assigned the internal nice the IP of 192.168.0.1 / 255.255.255.0

And set up the Windows machine to use 192.168.0.1 as it's default gateway.

The windows box is statically assigned 192.168.0.2 / 255.255.255.0
 
Old 03-13-2003, 07:27 PM   #5
estranged0877
Member
 
Registered: Jan 2003
Posts: 52

Rep: Reputation: 15
did you give the windows machine the ISP's DNS numbers?? How will the windows machine know where to resolve web addresses???
 
Old 03-13-2003, 07:28 PM   #6
estranged0877
Member
 
Registered: Jan 2003
Posts: 52

Rep: Reputation: 15
so to answer your question, I would assume after putting in DNS info on the windows machine, no you shouldn't need DHCP.
 
Old 03-13-2003, 07:30 PM   #7
d33pdream
Member
 
Registered: Jan 2003
Distribution: LFS
Posts: 90

Original Poster
Rep: Reputation: 15
hrm - Good idea - this i did not think of yet

Where do I obtain DNS info? Can I get such information via netstat on teh RH8 (internet connected) machine?
 
Old 03-13-2003, 07:36 PM   #8
estranged0877
Member
 
Registered: Jan 2003
Posts: 52

Rep: Reputation: 15
I have always gotten mine from my ISP provider. You can just use common DNS server IP's... for example... before I knew my pacbell dns numbers for my home DSL I used my work ISP DNS numbers and that worked fine.

Where are you getting your DSL/cable internet from - Provider name?
 
Old 03-13-2003, 07:42 PM   #9
d33pdream
Member
 
Registered: Jan 2003
Distribution: LFS
Posts: 90

Original Poster
Rep: Reputation: 15
Thanks -


Im using Roadrunner. So is the person im trying to help that has this problem. I found my DNS info here at home, I'll give her the same addresses. We're not on the same node but im sure it'll work.

Thanks again
 
Old 03-13-2003, 07:45 PM   #10
d33pdream
Member
 
Registered: Jan 2003
Distribution: LFS
Posts: 90

Original Poster
Rep: Reputation: 15
I do recall another problem.

After enabling NAT (via iptables) i tried to ping an IP address from the win98 box and that would not work...


However, I was able to ping the public IP on the RH8 machine...

Dunno. Will find out as soon as i go over there tonight.
 
Old 03-13-2003, 07:52 PM   #11
estranged0877
Member
 
Registered: Jan 2003
Posts: 52

Rep: Reputation: 15
I just tested it. I am not able to ping the internal IP but I am able to get online with everything done statically with no DHCP enabled. I may not be able to ping the internal IP on RHL8 as I have some stuff enable for security reasons. Although on the RHL I can ping the static windows machine... interesting... sorry I don't know about that one right now.
 
Old 03-13-2003, 07:57 PM   #12
d33pdream
Member
 
Registered: Jan 2003
Distribution: LFS
Posts: 90

Original Poster
Rep: Reputation: 15
Thank you for your help. I'll post my results later tonight.
 
Old 03-14-2003, 01:27 AM   #13
d33pdream
Member
 
Registered: Jan 2003
Distribution: LFS
Posts: 90

Original Poster
Rep: Reputation: 15
k, no go - im ready to freakin' loose it.
 
Old 03-14-2003, 03:49 AM   #14
fmotta
LQ Newbie
 
Registered: Mar 2003
Posts: 10

Rep: Reputation: 0
You said 'directly into your win98 box' - does that mean that you are not using a router/hub/switch? If you are not using a like device the n you need a crossover cable to do this - it is like a null modem of network cables - this may seem like a sill response - however I have had users make this mistake before.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
router box - unable to configure DHCP server BrianNJ Linux - Networking 1 06-09-2004 07:11 AM
DHCP server problems -- can't get my box to work as a router KingofBLASH Linux - Networking 1 03-21-2004 06:19 AM
Win98 / RH8 connection Fisherman Linux - Networking 11 10-28-2003 02:58 PM
RH8 & WIN98 Box - using firestarter -- need help d33pdream Linux - Networking 0 03-12-2003 11:33 PM
I need help networking a linux box to a win98 box... philfighter Linux - Networking 0 11-13-2001 09:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration