How to correctly use 2 on board nics

2007-06-05 Thread Ivan Carey

Hello
I have a server board with 2 onboard nic's
I have set them up in rc.conf as follows

defaultrouter=192.168.1.1
network_interfaces=em0 em1 lo0
ifconfig_em0=inet 192.168.1.3 netmask 255.255.255.0
ifconfig_em1=inet 192.168.1.4 netmask 255.255.255.0

The question, is this the correct configuration?

If I have both nic's connected to the switch I can ping 192.168.1.1 and 
192.168.1.3 and 192.168.1.4


If I have only em0 connected I can ping 192.168.1.1 and 192.168.1.3

If I have only em1 connected I can ping 192.168.1.3.

What could the 2 onboard nic's be best used for. I was thinking that in 
the event on was to fail then the other would still be ok.


Any ideas would help.
Thanks,
Ivan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to correctly use 2 on board nics

2007-06-05 Thread Tom Judge

Ivan Carey wrote:

Hello
I have a server board with 2 onboard nic's
I have set them up in rc.conf as follows

defaultrouter=192.168.1.1
network_interfaces=em0 em1 lo0
ifconfig_em0=inet 192.168.1.3 netmask 255.255.255.0
ifconfig_em1=inet 192.168.1.4 netmask 255.255.255.0

The question, is this the correct configuration?

If I have both nic's connected to the switch I can ping 192.168.1.1 and 
192.168.1.3 and 192.168.1.4


If I have only em0 connected I can ping 192.168.1.1 and 192.168.1.3

If I have only em1 connected I can ping 192.168.1.3.

What could the 2 onboard nic's be best used for. I was thinking that in 
the event on was to fail then the other would still be ok.


Any ideas would help.
Thanks,
Ivan



You may want to take a look at if_lacc.

Tom
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to correctly use 2 on board nics

2007-06-05 Thread Ivan Carey

Tom Judge wrote:

Ivan Carey wrote:

Hello
I have a server board with 2 onboard nic's
I have set them up in rc.conf as follows

defaultrouter=192.168.1.1
network_interfaces=em0 em1 lo0
ifconfig_em0=inet 192.168.1.3 netmask 255.255.255.0
ifconfig_em1=inet 192.168.1.4 netmask 255.255.255.0

The question, is this the correct configuration?

If I have both nic's connected to the switch I can ping 192.168.1.1 
and 192.168.1.3 and 192.168.1.4


If I have only em0 connected I can ping 192.168.1.1 and 192.168.1.3

If I have only em1 connected I can ping 192.168.1.3.

What could the 2 onboard nic's be best used for. I was thinking that 
in the event on was to fail then the other would still be ok.


Any ideas would help.
Thanks,
Ivan



You may want to take a look at if_lacc.

Tom



What is if_lacc ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to correctly use 2 on board nics

2007-06-05 Thread Tom Judge

Ivan Carey wrote:

Tom Judge wrote:

Ivan Carey wrote:

Hello
I have a server board with 2 onboard nic's
I have set them up in rc.conf as follows

defaultrouter=192.168.1.1
network_interfaces=em0 em1 lo0
ifconfig_em0=inet 192.168.1.3 netmask 255.255.255.0
ifconfig_em1=inet 192.168.1.4 netmask 255.255.255.0

The question, is this the correct configuration?

If I have both nic's connected to the switch I can ping 192.168.1.1 
and 192.168.1.3 and 192.168.1.4


If I have only em0 connected I can ping 192.168.1.1 and 192.168.1.3

If I have only em1 connected I can ping 192.168.1.3.

What could the 2 onboard nic's be best used for. I was thinking that 
in the event on was to fail then the other would still be ok.


Any ideas would help.
Thanks,
Ivan



You may want to take a look at if_lacc.

Tom



What is if_lacc ?



My bad, sorry should be if_lagg.

Tom
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: How to correctly use 2 on board nics

2007-06-05 Thread Bob
The most common configuration for using two nic's is one nic is used for
your dsl or cable modem connection to your ISP and the second nic services
your local LAN.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ivan Carey
Sent: Tuesday, June 05, 2007 6:55 AM
To: freebsd-questions@freebsd.org
Subject: How to correctly use 2 on board nics

Hello
I have a server board with 2 onboard nic's
I have set them up in rc.conf as follows

defaultrouter=192.168.1.1
network_interfaces=em0 em1 lo0
ifconfig_em0=inet 192.168.1.3 netmask 255.255.255.0
ifconfig_em1=inet 192.168.1.4 netmask 255.255.255.0

The question, is this the correct configuration?

If I have both nic's connected to the switch I can ping 192.168.1.1 and
192.168.1.3 and 192.168.1.4

If I have only em0 connected I can ping 192.168.1.1 and 192.168.1.3

If I have only em1 connected I can ping 192.168.1.3.

What could the 2 onboard nic's be best used for. I was thinking that in
the event on was to fail then the other would still be ok.

Any ideas would help.
Thanks,
Ivan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to correctly use 2 on board nics

2007-06-05 Thread magikman

Bob wrote:

The most common configuration for using two nic's is one nic is used for
your dsl or cable modem connection to your ISP and the second nic services
your local LAN.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ivan Carey
Sent: Tuesday, June 05, 2007 6:55 AM
To: freebsd-questions@freebsd.org
Subject: How to correctly use 2 on board nics

Hello
I have a server board with 2 onboard nic's
I have set them up in rc.conf as follows

defaultrouter=192.168.1.1
network_interfaces=em0 em1 lo0
ifconfig_em0=inet 192.168.1.3 netmask 255.255.255.0
ifconfig_em1=inet 192.168.1.4 netmask 255.255.255.0

The question, is this the correct configuration?

If I have both nic's connected to the switch I can ping 192.168.1.1 and
192.168.1.3 and 192.168.1.4

If I have only em0 connected I can ping 192.168.1.1 and 192.168.1.3

If I have only em1 connected I can ping 192.168.1.3.

What could the 2 onboard nic's be best used for. I was thinking that in
the event on was to fail then the other would still be ok.

Any ideas would help.
Thanks,
Ivan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
  
I guess the 'correct' way of using two NICs is really dependent upon 
what your goal of using two NICs is. Do you want to be able to serve two 
networks out of the NICs, one from each interface? Do you want to create 
a gateway of some sort? What is it, exactly, you are trying to 
accomplish by doing this?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to correctly use 2 on board nics

2007-06-05 Thread John Nielsen

Quoting Ivan Carey [EMAIL PROTECTED]:

I have a server board with 2 onboard nic's
I have set them up in rc.conf as follows

defaultrouter=192.168.1.1
network_interfaces=em0 em1 lo0
ifconfig_em0=inet 192.168.1.3 netmask 255.255.255.0
ifconfig_em1=inet 192.168.1.4 netmask 255.255.255.0

The question, is this the correct configuration?


Manually specifying network_interfaces is deprecated (take that line 
out). Putting both NIC's on the same subnet and segment but with 
different IP's like this may not be too useful..


If I have both nic's connected to the switch I can ping 192.168.1.1 
and 192.168.1.3 and 192.168.1.4


If I have only em0 connected I can ping 192.168.1.1 and 192.168.1.3

If I have only em1 connected I can ping 192.168.1.3.


That is because the route to 192.168.1.1 is associated with em0 at this point.

What could the 2 onboard nic's be best used for. I was thinking that 
in the event on was to fail then the other would still be ok.


For that to be most useful you'll want to set something up so they can 
share the same IP. The lagg(4) (link aggregation) virtual interface has 
already been mentioned, but I believe it is still only available in 
-CURRENT. Other possibilities might include attaching ifconfig scripts 
to link up/down events or [lack of] ping responses on one or both 
interfaces.


JN

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to correctly use 2 on board nics

2007-06-05 Thread Tom Judge

John Nielsen wrote:

Quoting Ivan Carey [EMAIL PROTECTED]:

I have a server board with 2 onboard nic's
I have set them up in rc.conf as follows

defaultrouter=192.168.1.1
network_interfaces=em0 em1 lo0
ifconfig_em0=inet 192.168.1.3 netmask 255.255.255.0
ifconfig_em1=inet 192.168.1.4 netmask 255.255.255.0

The question, is this the correct configuration?


Manually specifying network_interfaces is deprecated (take that line 
out). Putting both NIC's on the same subnet and segment but with 
different IP's like this may not be too useful..


If I have both nic's connected to the switch I can ping 192.168.1.1 
and 192.168.1.3 and 192.168.1.4


If I have only em0 connected I can ping 192.168.1.1 and 192.168.1.3

If I have only em1 connected I can ping 192.168.1.3.


That is because the route to 192.168.1.1 is associated with em0 at this 
point.


What could the 2 onboard nic's be best used for. I was thinking that 
in the event on was to fail then the other would still be ok.


For that to be most useful you'll want to set something up so they can 
share the same IP. The lagg(4) (link aggregation) virtual interface has 
already been mentioned, but I believe it is still only available in 
-CURRENT. Other possibilities might include attaching ifconfig scripts 
to link up/down events or [lack of] ping responses on one or both 
interfaces.


JN


I thought I saw if_lagg MFC'd to RELENG_6 a few weeks back on 
[EMAIL PROTECTED]  After checking cvsweb it is available in RELENG_6.


Tom
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]