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.
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
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.
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.
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
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.