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.
is it possible to bind both of them to 1 nic card on my linux server
so that i can have the linux server as one IP and 2 other computers connected to the box as a different IP and the other 2 computer connecting to the box via DHCP????
i would recommend you to use one ip for server. You can make with your two computers a LAN and on server (with ip) you cane use ip masquerading. That means, in your local network, every box has it's own ip, assigned by adminsitrator (you) and when you connect to internet via your server, the server memorizes incoming ip and transforms it into ip, which was given by ISP. So, you need for your server only one ip.
now how would i configure the machine to USE one of the ips for the internet and one of the ips as a dhcp server so my other computers can connect to that?
by the way i haven't ever set up a dhcp server before
so i am going to need a little help
the linux machine has 2 nic cards and i will put the 2 ips on on nice card and then the second card is where i will connect my switch so the other 2 computers will conect to the machine via dhcp thru the other IP
i just want to make sure the first ip is ONLY for the servers internet
and the second one is ONLY for the other computers
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287
Rep:
You want a DMZ and a NAT2LAN rig...
Ok for this to happen with only 2 nics you are going to have to do a bit of hack trickery.
The best method would be to have a router box set up with 3 nics (1 WAN both IPs, routed to- 1 nic, DMZ, 1 nic, LAN). But it can be done on one box.
You will need to insure iptables with NAT is compiled in your kernel as mods. Also you will have to edit the route tables to point the IP you want at the LAN nic.
See the firewall howtos for a good firewall script for NAT and edit accordingly. Doing so will insure that the "server" addy does not pass to the LAN nic. Also this is where the route tables come in ($>man route). It is much the same as making a router.
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287
Rep:
Yep quite a bit huh...
Here is where to find the HOWTO to set up a dhcp server using the dhcpd. If you installed the HOWTOS. See the server section. As I pointed out above you also have to "point" the dhcpd to the nic you want to provide dhcp to.
Note: MULTICAST must be complied into the kernel
HOWTO location
usr/doc/Linux-HOWTOs/DHCP
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.