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 
 adding freebsd box to win lan
Author: AlCapone 
Date:   27-12-01 19:17

Okie, I have just installed freebsd on one of my boxes and I would like to add it to my home lan. I have read handbook part about networking and it seems that my configuration is fine.


/etc/rc.conf (part with networking)
defaultrouter="192.168.0.1" #my winxp gateway box
hostname="gangster.chicago30s.com" #complitely fake, I do not have a domain
ifconfig_ep0="inet 192.168.0.3 netmask 255.255.255.0"


ifcoinfig -m ep0 (ep0 my network, 3com 3c509)
ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255
inet6 fe80::220:afff:fe58:e700%ep0 prefixlen 64 scopeid 0x1
ether 00:20:af:58:a7:00
media: Ethernet 10baseT/UTP

supported media:
media 10baseT/UTP
media 10base5/AUI


OK. I am using box with winxp on it as a gateway, another box with win98 is in the lan and works fine - can use internet, pings, all nice. My freebsd 4.4 box pings itself as 192.168.0.3, but does not ping gateway (192.168.0.1) and another lan box (192.168.0.2), those 2 win boxes do not ping bsd either.
NIC is fine, just checked by plugging into another pc, physical connection is fine too - my hub's light is led showing that.

Bottom line - I wan to add my freebsd box to home lan (2 more win boxes) and then use my winxp box as a gateway for freebsd's internet.

I am new to both freebsd and unix, so don't blame me if I missed something important :)

Reply To This Message
 
 Re: adding freebsd box to win lan
Author: Daniel Schrock 
Date:   27-12-01 20:40

try this:

ifconfig | grep UP | grep ep0

if nothing shows up, then try bringing it up with:

ifconfig ep0 up

also, if that card has 2 physical interfaces, you need to distinguish which one you would be using.
if this is the case, use:

ifconfig ep0 link0 up

all of this info is available in the man page (man ifconfig)

Reply To This Message
 
 Re: adding freebsd box to win lan
Author: AlCapone 
Date:   28-12-01 01:37

Thank you for help, I have done that before (actually ifconfig|grep 'ep0.*UP') to make sure nic is up, but its good to know someone else does checking with greps. Card has one rj45 and one coaxil exit, and now when I come to think about it it might be the problem if freebsd looks for coaxil connect and I use twisted pair... Any idea how to check/fix that?

Reply To This Message
 
 Re: adding freebsd box to win lan
Author: Daniel Schrock 
Date:   28-12-01 02:21

on a card that i have, the coax was default so it was considered link0. I used ifconfig ne0 link1 up, tested it, and it worked. Probably not the most efficient way to get it working, but I didn't care at the time... i just needed it up so i could ditch the monitor and keyboard on that system.

Reply To This Message
 
 Re: adding freebsd box to win lan
Author: AlCapone 
Date:   28-12-01 02:51

Uhm... ifconfig says:

ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255
inet6 fe80::220:afff:fe58:e700%ep0 prefixlen 64 scopeid 0x1
ether 00:20:af:58:e7:00
media: Ethernet 10baseT/UTP

lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6: ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
faith0: flags=8000<MULTICAST> mtu 1500

now, AFAIK, ppp0 is kernel ppp, lo0 is loopback, lp0 is parallel
I do not know what sl0 and faith0 are, but ep0 and lo0 are probably coming from my nic. Also I think lo0 is coaxil since ep0 has "media: Ethernet 10baseT/UTP" thingy, and utp makes me thing twisted pair :( Thats too bad, because in that way configuration is correct, but I still cannot ping...
Any ideas?

Reply To This Message
 
 Re: adding freebsd box to win lan
Author: AlCapone 
Date:   28-12-01 02:54

One more thing, ony guy told me there should be line 'status' right by 'media' in ifconfig, but there isn't one... so should there be 'status' or not?

Reply To This Message
 
 Re: adding freebsd box to win lan
Author: Daniel Schrock 
Date:   28-12-01 03:13

lo0 is the loopback...required for the system to talk to itself.

your friend is right...there should be a status... i assumed it was accidenatlly left out the output in the previous example...


what does netstat -i and netstat -r show?

Reply To This Message
 
 Re: adding freebsd box to win lan
Author: AlCapone 
Date:   28-12-01 04:06

netstat -i

Name Mtu Network Address IpktsIerrsOpkrtsOerrs
ep0 1500 <Link#1> 00:20:af:58:e7:00 1664 0 184 183
ep 1500 192.168.0 gangster 491 - 183 -
ep 1500 fe80:1::220 fe80:1::220:afff: 0 - 0 -
lp* 1500 <Link#2> 0 0 0 0
lo 16384 <Link#3> 10 0 10 0
lo 16384 ::1 ::1 0 - 0 -
lo 16384 fe80:3::1 fe80:3:1 0 - 0 -
lo 16384 127 localhost 4 - 4 -
ooo* 1500 <Link#4> 0 0 0 0
sl0* 552 <Link#5> 0 0 0 0
faith 1500 <Link#6> 0 0 0 0
(last column - Coll - did not fit, but its exactly like last on in here - oerrs)

netstat -r

Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
default 1337g UGSc 0 0 ep0
localhost localhost UH 0 4 lo0
192.168.0 link#1 UC 2 0 ep0
1337g 0:50:ba:53:ef:a5 UHLW 2 187 ep0 942
gangster 0:20:af:58:e7:0 UHLW 0 6 lo0

Internet6:
Destination Gateway Flags Netif Expire
:: ::1 UGRSc lo0
::1 ::1 UH lo0
::ffff:0.0.0.0 ::1 UGRSc lo0
fe80:: ::1 UGRSc lo0
fe80::%ep0 link#1 UC ep0
fe80::220:afff:fe5 0:20:af:58:e7:0 UHL lo0
fe80::%lo0 fe80::1%lo0 Uc lo0
fe80::1%lo0 link#3 UHL lo0
ff01:: ::1 U lo0
ff02:: ::1 UGRSc lo0
ff02::%ep0 link#1 UC ep0
ff02LL%lo0 ::1 UC lo0


uhm. lots of right alright. Now let me clarify, because I might have used different computer names before.

1337g -> 192.168.0.1 -> winxp gateway for freebsd
eugene -> 192.168.0.2 -> doesnt appear here, another lan box
gangster -> 192.168.0.3 -> freebsd box itself

Thank you for any help guys! I really appreciate that, hopefully on of these days I'll be able to help out others who are new to unix/bsd! Thanks again.

Reply To This Message
 
 Re: adding freebsd box to win lan
Author: vadersolo 
Date:   03-01-02 01:21

hey
s up capone i'm having the same problem
but i can ping the freebsd box from the windows box
but i cant ssh it or ftp it
: (
if u know somethingletme know

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