Mutiple nics on Freebsd 7.0

Login or Register for Dates, Times and to Reply

Thread Tools Search this Thread
# 1  
Mutiple nics on Freebsd 7.0

I had the pleasure of having a gig nic given to me this week, which also appears on the hardware list of FreeBSD.

What I would LIKE to do is:
1). Set my 10/100 nick as the dedicated outside/internet connection with a lan ip of
2). Set the gig nick as the dedicated inside/lan connection with a lan ip of, eh, 192.168.1.(different number).

This is my home file server, and the gig nic I think would be better served for the lan then outside connections. Other then weekly remote backupus from a buisness machine, there is no trafic coming in to this box from the outside world.

This is what I think I should do:
BSD Guides :: Doing Stuff With FreeBSD, NetBSD, OpenBSD, & Mac OS X

In other words, set an alias entry into my rc.conf for one of the nics.

But, here is where my questions are.
1). Which nick should be the primary? (internal lan or external internet). My guess is the primary address should be the internet nick.
2). Will both ip's/connections appear in my router? So that I can shut down all internet trafic to the one nic?
**** I'll be doing firewall rules here also.

I know, stupid questions...

Any and all help is greatly appriceated.

# 2  
Yeah, pretty basic questions. As for (1), sometimes you have dependencies that require an outside connection for things to work right, such as DNS lookups. For instance, your other servers might have DNS-addressable IP addresses and for your computer to boot, you need a service from one of those servers. Therefore, you either hardcode the IP/host entry in /etc/hosts, OR you set the NIC to boot up with the external interface fully configured. Other than that, which NIC is "primary" really doesn't matter.

Both IPs will not appear in your router. Only the external IP will. In fact, unless you set up your file server ALSO as a router, there's no need to do any special routing. Your internal addresses will be identified because of their subnet and IP range, and all other traffic will go through the "default" route, which will be on the same subnet as your external IP address.
# 3  
Another take on this might be if you want the secondary nic and lan to be serviced through your bsd server. You might for example want to give the second nic an address within a different subnet (such as if your netmask is a class C --- or just choose another address/mask combination such as You would need to enable routing of this second nic to the outside world. Your clients on this new subnet would have default route set to be your bsd server. All of this also would assume you run a separate physical wire for the second nic to keep the traffic separate. There are also other benefits here if you want to for example to have your bsd server act as the dhcpd server for this secondary lan. Lastly, I am not sure about bsd but LINUX does offer the ability to masquerade so that you could have your bsd server act as the single access point to the outside world. Why do all of this? It does give you the ability to control traffic between your client workstations and the outside world if that is you end goal. The implication/downside is that your bsd server would need to kept online to service the secondary lan clients. Lots of options/fun to play with.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #985
Difficulty: Medium
386BSD and FreeBSD were both derived from BSD releases.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Linux with two NICs

Hello All, I have Linux box with two interface cards. Every card has it's own IP Address and Gateway, IP addresses are from different subnets. eth0 GW eth1 GW Third PC is located in network and is trying to access... (2 Replies)
Discussion started by: AndreiM
2 Replies

2. IP Networking

Networking 2 NICs

Hi all, Host - Ubuntu 12.04 desktop 64bit Virtualizer - Oracle VirtualBox 2 NICs Where can I find relevant document to set up 2 NICs, one for inward bound and another for outward bound, separate channel, both connected to the same router Would following document be appropriate for my... (1 Reply)
Discussion started by: satimis
1 Replies

3. Red Hat

how to combine nics for DM Multipath

I don't undestand how to combine 4 nics in order to use DM Multipath. Do I have to install each nic with its IP address? If yes, do I need a group IP address? This concept is not clear for me. The connection beetwen the server (DELL Poweredge T710) and the SAN through iscsi works well, I used... (1 Reply)
Discussion started by: gnupinux
1 Replies

4. UNIX for Dummies Questions & Answers

multiple NICS in one box

Help, I have a Ubuntu headless server that has 5 NICs in it. The eth0-4 interfaces keep moving from NIC to NIC on boot up. I am told that there is a file that I can edit that will allow me to stabilize this but I need some help in determining the exact file and format for that file. All help will... (0 Replies)
Discussion started by: poundjd
0 Replies

5. Programming

Application crashes in FreeBSD 7.1 while working ok in FreeBSD 6.3

Hello there, My mulithreaded application (which is too large to represent the source code here) is crashing after installing FreeBSD 7.1-RELEASE/amd64. It worked properly on others machines (Dual Cores with 4GB of RAM - FreeBSD 6.2-RELEASE/i386). The current machine has 2x Core 2 Duo... (1 Reply)
Discussion started by: Seenquev
1 Replies

6. Linux

Two NICs one IP address

I'm looking for a way in RHL 5.1 to use two NICs on one host with two physical IP addresses and map them under one virtual IP address, i.e. NIC 1 NIC2 VIP Basically I want either one of the NICs to ARP for the VIP. No load balancing required just HA. (2 Replies)
Discussion started by: wschmied
2 Replies

7. Solaris

How many NICS do I have?

Hi, is there a way in Solaris 8 to determine how many total NIC's say a Sun Sparc box has installed - plumbed or unplumbed - and find out its capable network speeds and MAC address? I know ifconfig -a but that only shows the plumbed and used interfaces. thx cc (2 Replies)
Discussion started by: bigapple100
2 Replies

8. IP Networking

FreeBSD and two NICs

FreeBSD 4.8, Apache 1.3.27 - two NICs, one with a real-world IP plugged into a switch outside the PIX firewall, the other with a private IP plugged into a switch inside the PIX firewall. Apache listens on both IPs. my domain is so in /etc/rc.conf i have something like this (these... (10 Replies)
Discussion started by: ednix
10 Replies

9. AIX

Merge NICs

Hi friends, I installed oracle 10g ( RAC on 2 IBM p5 570 servers running AIX 5.3ML04 and HACMP5.2 (used Raw devices, not used GPFS). Each server has 4 x 1Gbps ethernet cards (NICs), en0 and en1 for boot address, en2 and en3 for oracle interconnect. Now i want to merge 2 NICs (en2 and... (1 Reply)
Discussion started by: bong02
1 Replies

10. UNIX for Dummies Questions & Answers

Mac addresses of NICs (why are they the same)

I am training to be support on our solaris based network and was wondering why solaris seems to assign the same mac address to all NICs placed in the machine regardless of how many NICs are in there, when i do a ifconfig -a all nics have same MAC. Presumably this is a feature and there is... (1 Reply)
Discussion started by: hcclnoodles
1 Replies

Featured Tech Videos