Discussion Locked

How to configure a LAN with 2 or more IP

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have to PCs in my office and I need to do the following:
The first PC has 2 LAN cards with UTP cables. One of them is connected to a local HUB and the other one to the second PC I have, which is an Internet server.
How to configure the IP addresses of the two LAN cards on my PC, and this which is a server, if the OS is FreeBSD or WindowsNT ?

8 replies

by mckaytech

I'm not clear on what you're trying to do. Usually, the server would have the two NIC cards and one would go to the Internet and the other to your internal network.

Beyond that, it makes a great deal of difference whether you are going to chooseFreeBSD or NT because the range of products is different for each. WIth NT, you would probably want to run Proxy Server. With FreeBSD, you can use the routing and firewall software to set it up any way you would like.

It would be helpful if youcould post more information particularly if you could let us know what you want to accomplish.

paul

by barry hensley

I am a little confused by your question. It sounds like you are wanting to use a FreeBSD box as a server with 2 NICs, each on a different ip subnet. This is relatively easy. Use the "ifconfig" utility to configure the interfaces. You can assign multiple IP addresses to an interface but, in your case it looks like you just need to assign one ip address to each of 2 Ethernet interfaces. Your OS will identify the interfaces for you, usually as eth0 and eth1.

Use the man page for ifconfig for specific instructions.

by markchen

Make sure that the two network card are on different subnet. Example subnet mask
1. 255.255.0.0 2. 255.255.255.0

This discussion is closed to new replies.