Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting confused

Status
Not open for further replies.

BIS

Technical User
Jun 1, 2001
1,893
NL
Hi all,
I am getting more and more confused here. I have a FreeBSD 4.4 box with 2 NICs. The idea is to use this as a router for my cablemodem. I have assigned a static ip to both (cablemodem to xl0, 192.168.0.1 to xl1). The idea is to have xl1 connected to a hub, and have a range of internal fixed ips (192.168.0.2 - 192.168.0.5 for example). What do I need? I also want some kind of security (ipfw). My guess is natd, do I need anything else. If anybody can point me in the right direction I would be grateful.
 
 
Thanks. Certainly enought to get me started - I will let you know when I get stuck.
 
Thanks rycamor. Here's the first question. Why do I get in ifconfig status:no carrier., media : Ethernet Autoselect (none). Bad nic?
 
Well, I need more info: exactly what command-line options did you use with ifconfig? Was it 'ifconfig -a'? What do you get for the other NIC? If this is the only output you get for 'ifconfig', then something else is probably wrong.

What brand/model NICs are you using? Did FreeBSD let you configure them during install? -------------------

Current reading --
 
I used ifconfig -a. For the other NIC I have it says :media: Ethernet autoselect (100baseTX <full-duplex>), status: active. This of course is not the only output, there are the inet, netmask etc stuff as well. The NIC (both) are 3Com (one is a 3C905B, the other a 3C905C. As far as I remembered I configured them with GUI during install. It just looks to me as if the NIC is not recognized or such...
 
Can't you only configure one card during install. When I set mine up I had to go back to /stand/sysinstall to set up the second card. Just a thought.
 
I can't remember whether (during install) you can only do one or both. But the long and short of it is, if you didn't configure the second one, then of course ifconfig will show nothing. You can run /stand/systinstall, choose the 'Configure', and then 'Networking' options, and set up your second card. The sysinstall script simply places the appropriate config lines in /etc/rc.conf, so you can go there to do any further tweaking of your NIC configurations.

If you have configured the second NIC and still get no response from ifconfig, then run the 'dmesg' script, and look for any lines relating to detection of your NICs. If you don't see the second NIC in there, then you might need either another NIC card. Or, the NIC might be detected, but the name is different from the name being referred to in rc.conf.

Other than that, I dunno, maybe there is a resource conflict. You might just try putting the card in another PCI slot. Are these both PCI, or is one or both an ISA card? As I recall, ISA cards sometimes take a little more work to setup. -------------------

Current reading --
 
Sorry guys, I was being stupid. As soon as I connected a cable to a hub, the status changed....I now have an active connection to WAN (I can ping etc), and the LAN side is the 192.168.0.1 I was planning to use as a gateway. How do I tell the LAN that it must use a 192.168.0.2 - 192.168.0.5 range? (for example).
 
..I have set up a win98 box, assigned it 192.168.0.2 255.255.255.0 with gateway 192.168.0.1. When I try to ping it from the FreeBSD box I get :ping: sendto: host is down&quot; , any ideas? Both NICs are shown as active in ifconfig -a...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top