Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > The Community > Everything BSD > Networking problem

Forgot Password?
 Everything BSD   For all discussions regarding Free/NetBSD and OpenBSD.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 11-10-2008   #1 (permalink)
Linux User
 
Join Date: Dec 2004
Posts: 324
Networking problem

I have installed FreeBSD in various incarnations, but one of the problems I continuously encounter is the networking part, namely connecting to the network or internet. In DesktopBSD this is done automatically during install, so I am wondering whether there is a script that can be utilised that connecting to the network can be done for every FreeBSD installation.
technossomy is offline  


Reply With Quote
Old 11-11-2008   #2 (permalink)
Trusted Penguin
 
daark.child's Avatar
 
Join Date: Apr 2006
Location: South Yorks, UK
Posts: 4,067
Can you explain a bit more about what you mean because I have used various versions of FreeBSD and have never had a problem setting up the network (it just works after configurng it at install time).
daark.child is offline   Reply With Quote
Old 11-12-2008   #3 (permalink)
Linux User
 
Join Date: Dec 2004
Posts: 324
When having a FreeBSD distribution installed, say PC-BSD, Frenzy or DragonflyBSD, and starting the local browser, it will respond with a not-connected error message. So when starting the networks menu, I can try DHCP through any of the NICs the system has detected, but no network will be detected. I can still do this manually by typing in the details of the network, but I do not think that is a user's job. Perhaps there is a better way, for instance the way some of the Linux distros do this?
technossomy is offline   Reply With Quote
Old 11-13-2008   #4 (permalink)
Content Team
 
sarumont's Avatar
 
Join Date: Apr 2003
Location: /dev/urandom
Posts: 3,682
Are you not using DHCP on your network? If not, you can assign your IP and netmask in /etc/rc.conf:

Code:
ifconfig_<ifname>="inet 192.168.1.100 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
__________________
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
sarumont is offline   Reply With Quote
Old 11-13-2008   #5 (permalink)
Linux User
 
Join Date: Dec 2004
Posts: 324
The whole network uses DHCP. The point is that some distributions connect automatically, but many others do not. I do not possess the technical expertise to connect computers to the network. And if this is not done automatically, this rules out trying many more BSD based distributions. Undoubtedly there is a better way.
technossomy is offline   Reply With Quote
Old 11-14-2008   #6 (permalink)
Content Team
 
sarumont's Avatar
 
Join Date: Apr 2003
Location: /dev/urandom
Posts: 3,682
If you're using DHCP, you had the option to set that up during installation (and that configuration would have persisted after installation). If not, you can enable it by adding the following line to your /etc/rc.conf:

Code:
ifconfig_<ifname>="DHCP"
And potentially running /etc/rc.d/netif restart
__________________
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
sarumont is offline   Reply With Quote
Old 11-14-2008   #7 (permalink)
Linux User
 
Join Date: Dec 2004
Posts: 324
rc.conf already contains ifconfig_rl0="DHCP" and the RealTek interface was correctly detected. From the network module two other interfaces (an old one and a wifi one) are detected too, but no carrier.
The following happens regarding netif:
Code:
desktopbsd# ./netif restart
Stopping network: lo0 rl0 fwe0 plip0.
rl0: no link .............. giving up
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        ether 00:50:fc:6e:0f:5b
        media: Ethernet autoselect (none)
        status: no carrier
This is in the live version of DesktopBSD. Kubuntu and Puppy correctly detect and connect to the network on the machine without any configuration.
technossomy is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:13 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2