LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 02-01-2011, 04:40 AM   #1
ashlyjay
Member
 
Registered: Dec 2006
Posts: 32

Rep: Reputation: 16
NIC configuration


FreeBSD 6.3

Hi guys,

We have this very old system running in our company, I dont know who installed it but on our inventory, it says that this server has this ip address 1.1.1.1. now, when I check the rc.conf file, it has no ipaddress defined...also, when I try to check the ip though sysintall, it says "no network devices available!"

Im really confuse how did they configure this server. Guys, do have any idea where can I find the NIC config file?
 
Old 02-01-2011, 02:21 PM   #2
wafflesausage
Member
 
Registered: Oct 2010
Distribution: FreeBSD(preferred), Fedora 15, WebOS, Mac OS, NetBSD, Ubuntu (if I have no other choice)
Posts: 46

Rep: Reputation: 1
Quote:
Originally Posted by ashlyjay View Post
FreeBSD 6.3

Hi guys,

We have this very old system running in our company, I dont know who installed it but on our inventory, it says that this server has this ip address 1.1.1.1. now, when I check the rc.conf file, it has no ipaddress defined...also, when I try to check the ip though sysintall, it says "no network devices available!"

Im really confuse how did they configure this server. Guys, do have any idea where can I find the NIC config file?
I'm not entirely sure how sysinstall configures networks, but I'm guessing it's through ifconfig. Have you tried running ifconfig? If not, post the results and I'll see if I can tell you anything. Also, check if the NIC is properly seated if you can.
 
Old 02-01-2011, 06:00 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
@ashlyjay:

Maybe you should post your /etc/rc.conf contents here.

Run:
Code:
%pciconf -lv
See any network cards there? If not, you might want to follow the previous suggestion and physically examine whether one exists (onboard or PCI).

BTW, an IP of 1.1.1.1 might indicate someone's shorthand for "no IP was ever assigned". (Which would be rather odd for a server, but I digress..)
 
Old 02-01-2011, 07:30 PM   #4
wafflesausage
Member
 
Registered: Oct 2010
Distribution: FreeBSD(preferred), Fedora 15, WebOS, Mac OS, NetBSD, Ubuntu (if I have no other choice)
Posts: 46

Rep: Reputation: 1
Also, you should see something like
Code:
ifconfig_nfe0="YES"
ifconfig_nfe0="inet 192.168.1.169  netmask 255.255.255.0"
in your rc.conf
If you find that your NIC is working properly, add that line and substitute nfe0 (if necessary) for the appropriate device.
 
Old 02-02-2011, 12:36 AM   #5
ashlyjay
Member
 
Registered: Dec 2006
Posts: 32

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by wafflesausage View Post
I'm not entirely sure how sysinstall configures networks, but I'm guessing it's through ifconfig. Have you tried running ifconfig? If not, post the results and I'll see if I can tell you anything. Also, check if the NIC is properly seated if you can.
Here's the output of ifconfig


web-dev3# ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
inet 1.1.1.1 netmask 0xffffffff broadcast 1.1.1.2
ether 00:15:17:95:b2:d2
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
ether 00:15:17:95:b2:d3
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384

FYI: The inet address is not the actual address, I change It for security purpose. But the address is a public ip.
 
Old 02-02-2011, 12:40 AM   #6
ashlyjay
Member
 
Registered: Dec 2006
Posts: 32

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by wafflesausage View Post
Also, you should see something like
Code:
ifconfig_nfe0="YES"
ifconfig_nfe0="inet 192.168.1.169  netmask 255.255.255.0"
in your rc.conf
If you find that your NIC is working properly, add that line and substitute nfe0 (if necessary) for the appropriate device.
Hi,
i dont see any of that line on my rc.conf...that is the reason where did the nic config was configure?
here's the content of the rc.conf

web-dev3# cat /etc/rc.conf
sshd_enable="YES"

named_enable="YES"
named_chrootdir=""
named_chroot_autoupdate="NO"
named_symlink_enable="NO"

apache_enable="YES"
snmpd_enable="YES"


FYI: this server has internet connection
 
Old 02-02-2011, 10:50 AM   #7
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Can you bounce the server without causing customer (or personal) headaches? (IOW, do not do it unless you can deal with the consequences.)

If the IP is assigned again at boot time, it's being done in an unusual / non-standard way.

If the IP is not assigned at boot time, then the previous admin did so from the command line, post boot. Add the entries to /etc/rc.conf.
 
Old 02-02-2011, 01:05 PM   #8
wafflesausage
Member
 
Registered: Oct 2010
Distribution: FreeBSD(preferred), Fedora 15, WebOS, Mac OS, NetBSD, Ubuntu (if I have no other choice)
Posts: 46

Rep: Reputation: 1
Quote:
Originally Posted by ashlyjay View Post
Hi,
i dont see any of that line on my rc.conf...that is the reason where did the nic config was configure?
here's the content of the rc.conf

web-dev3# cat /etc/rc.conf
sshd_enable="YES"

named_enable="YES"
named_chrootdir=""
named_chroot_autoupdate="NO"
named_symlink_enable="NO"

apache_enable="YES"
snmpd_enable="YES"


FYI: this server has internet connection
Are you using DHCP or do you want a static IP? For a static IP, you're going to want to add the line I mentioned before to your rc.conf. Make sure you change the address and device appropriately! Also, I'm not sure if FreeBSD uses a NIC configuration file, as I've never ahd to mess much with it. According to the documentation http://www.freebsd.org/doc/en_US.ISO...ork-setup.html, the configuration of the network is done in /etc/rc.conf
 
Old 03-29-2011, 06:34 AM   #9
wgac
LQ Newbie
 
Registered: Dec 2007
Location: Warsaw, Poland
Distribution: Arch Linux/NetBSD 5.1
Posts: 18

Rep: Reputation: 1
Hi
It might be that someone configured the system to setup the NIC via a call to ifconfig from some obscure location in a rc script. You could grep /etc/rc.d (or even /etc) for 'ifconfig' or the IP of the machine. If it's true, that's sure a creepy way to setup a connection .
Regards
Wojtek
 
Old 05-05-2011, 12:33 AM   #10
scorpions84
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
You can try to check if it was set in the "default" rc.conf.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NIC Configuration venky_2_2000 Linux - Networking 1 08-22-2005 11:22 PM
NIC configuration eddy98 Slackware 8 04-24-2005 11:15 AM
NIC configuration tran_colin Linux - Networking 3 12-21-2004 07:38 AM
NE2000 NIC configuration GrandTheft *BSD 2 07-12-2003 07:04 PM
NIC Configuration firestorm2123 Slackware 6 04-21-2003 08:54 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 11:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration