Re: 2 networkcards in 1 system

2009-01-13 Thread Ivailo Tanusheff
I suppose you use both NICs on a same network - you use common network 
segment or use common switch/hub.
This is an old issue - try to change the segment or use vlans on the 
switch :)

Regards,

Ivailo Tanusheff
Deputy Head of IT Department
ProCredit Bank (Bulgaria) AD




Pieter Donche  
Sent by: owner-freebsd-questi...@freebsd.org
13.01.2009 13:04
Please respond to
Pieter Donche 


To
"mail.list freebsd-questions" 
cc

Subject
2 networkcards in 1 system






I installed FreeBSD-amd64 on a system which has 2 networkcards and 
configured
1 networkcard with its IP parameters.

Now I want to add the second networkcard, and did:
# sysinstall
  do Post-Install Configuratio
   Configure additional Netwerk Services
Configure additional network interface
   and selected em1 and gave it its IP parameters
(I used the same hostname macos.cmi.ua.ac.be, in the DNS servers here
 macos.cmi.ua.ac.be is assigned to two IP addresses)

(After rebooting,  em1 appears in the boot messages with the correct
Mac- and IP address.. )

But I get many messages:
Jan 13 11:05:25  macos kernel: arp: 143.129.XX.YY is on em0 but got reply
from 00:1b:21:UU:VV:WW on em1
Jan 13 11:54.25  macos kernel: arp: 143.129.XX.YY is on em0 but got reply
from 03:ba:14:UU:VV:WW on em1

( 143.129.XX.YY is our gateway or other system, the MAC address
is the mac-addres of our gateway or that other system )

Why is this? How to remedy?

Or do I need to 'deconfigure' em1? How can I do that?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"freebsd-questions-unsubscr...@freebsd.org"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: 2 networkcards in 1 system

2009-01-13 Thread Odhiambo Washington
On Tue, Jan 13, 2009 at 2:03 PM, Pieter Donche wrote:

> I installed FreeBSD-amd64 on a system which has 2 networkcards and
> configured
> 1 networkcard with its IP parameters.
>
> Now I want to add the second networkcard, and did:
> # sysinstall
>  do Post-Install Configuratio
>  Configure additional Netwerk Services
>   Configure additional network interface
>  and selected em1 and gave it its IP parameters
>   (I used the same hostname macos.cmi.ua.ac.be, in the DNS servers here
>macos.cmi.ua.ac.be is assigned to two IP addresses)
>
> (After rebooting,  em1 appears in the boot messages with the correct
> Mac- and IP address.. )
>
> But I get many messages:
> Jan 13 11:05:25  macos kernel: arp: 143.129.XX.YY is on em0 but got reply
> from 00:1b:21:UU:VV:WW on em1
> Jan 13 11:54.25  macos kernel: arp: 143.129.XX.YY is on em0 but got reply
> from 03:ba:14:UU:VV:WW on em1
>
> ( 143.129.XX.YY is our gateway or other system, the MAC address
> is the mac-addres of our gateway or that other system )
>
> Why is this? How to remedy?


 You can add the following two lines to /etc/sysctl.conf:
net.inet.tcp.blackhole=2
net.inet.udp.blackhole=1

...and reboot or type, as root,

sysctl -w net.inet.tcp.blackhole=2
sysctl -w net.inet.udp.blackhole=1


>
> Or do I need to 'deconfigure' em1? How can I do that?


Edit /etc/rc.conf manually, either using ee or vi and comment out the lines
you don't want active. You have connected the two network cards to the same
switch, yes? don't do that.


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"Failure is the opportunity to begin again more intelligently." --Henry Ford
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: 2 networkcards in 1 system

2009-01-13 Thread Olivier Nicole
Hi,

>and selected em1 and gave it its IP parameters
> (I used the same hostname macos.cmi.ua.ac.be, in the DNS servers here
>  macos.cmi.ua.ac.be is assigned to two IP addresses)

First I doubt that this will work. You can assign several names to a
single IP address in DNS, but you cannot assign several IP to the same
name.

> (After rebooting,  em1 appears in the boot messages with the correct
> Mac- and IP address.. )
> 
> But I get many messages:
> Jan 13 11:05:25  macos kernel: arp: 143.129.XX.YY is on em0 but got reply
> from 00:1b:21:UU:VV:WW on em1
> Jan 13 11:54.25  macos kernel: arp: 143.129.XX.YY is on em0 but got reply
> from 03:ba:14:UU:VV:WW on em1

Let me guess, both NIC are connected to the same network? If so you
cannot predict what interface will reply first, so you can send a
packet through one interface and get a reply from the other interface.

In standard operation, you don't want to have your two NICs connected
to the same LAN with and IP in the same subnet.

> Or do I need to 'deconfigure' em1? How can I do that?

Edit /etc/rc.conf and remove all the lines that start with: ifconfig_em1

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


2 networkcards in 1 system

2009-01-13 Thread Pieter Donche

I installed FreeBSD-amd64 on a system which has 2 networkcards and configured
1 networkcard with its IP parameters.

Now I want to add the second networkcard, and did:
# sysinstall
 do Post-Install Configuratio
  Configure additional Netwerk Services
   Configure additional network interface
  and selected em1 and gave it its IP parameters
   (I used the same hostname macos.cmi.ua.ac.be, in the DNS servers here
macos.cmi.ua.ac.be is assigned to two IP addresses)

(After rebooting,  em1 appears in the boot messages with the correct
Mac- and IP address.. )

But I get many messages:
Jan 13 11:05:25  macos kernel: arp: 143.129.XX.YY is on em0 but got reply
from 00:1b:21:UU:VV:WW on em1
Jan 13 11:54.25  macos kernel: arp: 143.129.XX.YY is on em0 but got reply
from 03:ba:14:UU:VV:WW on em1

( 143.129.XX.YY is our gateway or other system, the MAC address
is the mac-addres of our gateway or that other system )

Why is this? How to remedy?

Or do I need to 'deconfigure' em1? How can I do that?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"