The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Need Some help..
Author: Darknight 
Date:   21-02-00 08:19

I'm really new to freebsd an i'm having some networking problems. i can link my freebsd box up to the internet quite easily but when i add my second nic and assign in an internal ip i get this: /kernel: arp: 24.112.8.1 is on ed1 but got reply from 00:e0:f9:a8:40:28 on ed2, ne idea how to fix this? is so plz help

Reply To This Message
 
 RE: Need Some help..
Author: Dan Langille 
Date:   21-02-00 21:13

Two cards have the same IP. Compare the output of ifconfig ed1 and ifconfig ed2. See if one of the two contain "00:e0:f9:a8:40:28", as mentioned in your message. Then compare the IP addresses to make sure they are not the same.

Also, 24.112.8.1 is your public IP and should be on the NIC attached to the internet. Make sure the other nic does have an ip address.

If you can't get it going, show us the output of 'ifconfig -a' and 'netstat -nr'.

Reply To This Message
 
 RE: Need Some help..
Author: Darknight 
Date:   21-02-00 22:33

still the same thing
i'll give you the outputs of those two commands
btw 24.112.8.1 is my default gateway..
netstat -nr:
Internet:
Destination Gateway Flags Refs Use Netifs Expire
default 24.112.8.1 UGSc 2 121 ed1
24.112.8/22 link#1 UC 0 0 ed1
24.112.8.1 link#1 UHRLW 3 0 ed1
24.112.10.129 0:0:21:6a:a7:99 UHLW 0 4 lo0
127.0.0.1 127.0.0.1 UH 0 0 lo0
198.162 link#2 UC 0 0 ed2
198.162.0.1 0:60:67:66:d4:d7 UHLW 0 6 lo0

ifconfig -a
ed1: flags=8843<UP, BRODCAST, RUNNING, SIMPLEX, MULTICAST> mtu 1500
inet 24.112.10.129 netmask 0xfffffc00 broadcast 24.112.11.255
ether 0:0:21:6a:a7:99

ed2: flags=8843<UP, BRODCAST, RUNNING, SIMPLEX, MULTICAST> mtu 1500
inet 198.162.0.1 netmask 0xffffff00 broadcast 198.162.0.255
ether 0:60:67:66:d4:d7
lp0: flags=8810<POINTOPOINT, SIMPLEX, MULTICAST> mtu 1500
tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2, MULTICAST> mtu 552
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
lo0: flags=8810<UP, LOOPBACK, RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000

damn that took a while to type hehe

Reply To This Message
 
 RE: Need Some help..
Author: Darknight 
Date:   22-02-00 00:55

hmm well i seemed to have fixed it hehe so thanks for the help

Reply To This Message
 
 RE: Need Some help..
Author: Dan Langille 
Date:   22-02-00 20:58

What was wrong? What did you change?

Reply To This Message
 
 RE: Need Some help..
Author: Gareth Boulton 
Date:   23-02-00 04:23

The usual cause of this error (not saying it's the case for Darknight) is to have the following setup:

Cable/DSL net connection --> Hub --> Both network cards

If you break it up and do:
Cable/DSL net connection --> NIC1 (external IP)
Hub --> NIC2 (internal IP)

then you don't get the problem.

The issue is because the hub just sends back to whichever connection will take it first, so data destined for one particular MAC address ends up at the other and gives you the error. This is overly simplistic, but is the best way I can describe it. :-)


Reply To This Message
 
 RE: Need Some help..
Author: Dan Langille 
Date:   23-02-00 10:39

The topology you are suggesting is much like the one I use and as shown at <a href="http://www.freebsddiary.org/topology.html">http://www.freebsddiary.org/topology.html</a>.

There are also security reasons for putting the firewall box in between the hub and the cable modem. It seems to be the most common setup.

Darknight, does the suggestion by Gareth apply to your configuration?

Reply To This Message
 
 RE: Need Some help..
Author: Darkight 
Date:   25-02-00 06:38

yes, thats the same way i have it set up here cablemodem ->Freebsd box->hub->network.. my problem was simple and my own fault, i'm not sure how freebsd determines which card will be ed1 ed2 ect but when i set up my cable madem i only had one card in then i added the next but when i did it changed ed1>ed2 ad meesed up everything so it was me just getting confused, the only way i figured this out was by looking at the mac addresses... hehe well i am a newbie so i guess we can let this screw up slide eh? :P

Reply To This Message
 
 dns
Author: deni 
Date:   02-03-00 12:03


i have a problem setting DNS, in-addr.arpa, is there any a body can help me?

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org