Re: Network Help

2008-02-14 Thread Derek Ragona

At 09:50 AM 2/14/2008, Victor Farah wrote:
Alright, I have the machine up to 6.3-STABLE #1 now.  I've changed subnets 
on the one card that pushes the traffic.  There is a run down of the 
machine now.  The machine is still having the weird network traffic 
problem of capping at around 100mbps and then dropping to 10~20mbps the 
next minute.  Any suggestions?


em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=1bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING
inet 192.168.X.X netmask 0xff00 broadcast 192.168.1.255
ether 00:1b:fc:ef:34:de
media: Ethernet autoselect (1000baseTX full-duplex)
status: active
em1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=1bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING
inet X.X.X.X netmask 0xff80 broadcast X.X.X.127
ether 00:1b:fc:ef:34:df
media: Ethernet 1000baseTX full-duplex
status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00


If your switch this system is connected to is managed, you can check the 
ports these connect to for collisions of other issues.


When ethernet throughput degrades it can be caused by many factors like the 
stream sending the packets slowing down, or transmit errors causing 
retransmission of packets.  Often once there are errors, they grow 
exponentially because of retransmission etc.


You should try to isolate the exact conditions you have when you see the 
traffic flow degrade.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network Help

2008-02-14 Thread Victor Farah
Alright, I have the machine up to 6.3-STABLE #1 now.  I've changed 
subnets on the one card that pushes the traffic.  There is a run down of 
the machine now.  The machine is still having the weird network traffic 
problem of capping at around 100mbps and then dropping to 10~20mbps the 
next minute.  Any suggestions?


em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=1bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING
inet 192.168.X.X netmask 0xff00 broadcast 192.168.1.255
ether 00:1b:fc:ef:34:de
media: Ethernet autoselect (1000baseTX full-duplex)
status: active
em1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=1bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING
inet X.X.X.X netmask 0xff80 broadcast X.X.X.127
ether 00:1b:fc:ef:34:df
media: Ethernet 1000baseTX full-duplex
status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00

Derek Ragona wrote:

At 10:01 AM 2/13/2008, Victor Farah wrote:

I'm updating the system to 6.3-release now.

All 13 machines are on the same subnet but they are scattered across 
different switchs.


netstat -m:
7716/399/8115 mbufs in use (current/cache/total)
7388/326/7714/25600 mbuf clusters in use (current/cache/total/max)
7380/41 mbuf+clusters out of packet secondary zone in use (current/cache)
0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
16705K/751K/17456K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/6/6656 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
193374 calls to protocol drain routines

ifconfig -a:
em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=bRXCSUM,TXCSUM,VLAN_MTU
inet 192.168.X.X netmask 0xff00 broadcast 192.168.X.255
ether 00:1b:fc:ef:34:de
media: Ethernet autoselect (1000baseTX full-duplex)
status: active
em1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=bRXCSUM,TXCSUM,VLAN_MTU
inet X.X.X.X netmask 0xff00 broadcast X.X.X.255
ether 00:1b:fc:ef:34:df
media: Ethernet 1000baseTX full-duplex
status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00


What IP's are you trying to configure on em0 and em1?  These cannot be 
on the same subnet unless you are trying to bond them, which I don't 
believe is available in 6.X.


-Derek


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network Help

2008-02-13 Thread Victor Farah

I'm updating the system to 6.3-release now.

All 13 machines are on the same subnet but they are scattered across 
different switchs.


netstat -m:
7716/399/8115 mbufs in use (current/cache/total)
7388/326/7714/25600 mbuf clusters in use (current/cache/total/max)
7380/41 mbuf+clusters out of packet secondary zone in use (current/cache)
0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
16705K/751K/17456K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/6/6656 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
193374 calls to protocol drain routines

ifconfig -a:
em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=bRXCSUM,TXCSUM,VLAN_MTU
inet 192.168.X.X netmask 0xff00 broadcast 192.168.X.255
ether 00:1b:fc:ef:34:de
media: Ethernet autoselect (1000baseTX full-duplex)
status: active
em1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=bRXCSUM,TXCSUM,VLAN_MTU
inet X.X.X.X netmask 0xff00 broadcast X.X.X.255
ether 00:1b:fc:ef:34:df
media: Ethernet 1000baseTX full-duplex
status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00

Derek Ragona wrote:

At 01:50 PM 2/12/2008, Victor Farah wrote:

Hello,
I have a machine setup with FreeBSD 6.3-PRERELEASE setup on a 
10/100/1000 switch.  There are a pair of em interfaces, and the 
network traffic on this machine is very spuratic.  Both EM interfaces 
reach 100Mbps and falls to 5~10Mbps, the very next minute, the traffic 
is very spuratic.  The media of the interfaces is as follows:

EM0: media: Ethernet autoselect (1000baseTX full-duplex)
EM1: media: Ethernet 1000baseTX full-duplex
Currently the EM1 card is in use.
I watch an MRTG that I have setup to see the machine failing at 
sustaining its bandwidth.
I have 13 other machines setup the same way but traffic is running 
fine and working very well, the only difference between those and the 
new one, is that it's pushing much more data through it; almost the 
same amount of data the 13 other machines push combined.


First you should update this system to 6.3 release.

Also you should post how your interfaces are configured, you can copy 
and paste the output from:

ifconfig -a

You also need to better explain the topology of your network.  For 
instance are all 13 systems on the same subnet?  or are you running 
multiple subnets with a switched backbone?  How many switches are you 
using?  Are you checking the throughput across a LAN segment or across 
multiple subnet segments?


-Derek


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network Help

2008-02-13 Thread Derek Ragona

At 10:01 AM 2/13/2008, Victor Farah wrote:

I'm updating the system to 6.3-release now.

All 13 machines are on the same subnet but they are scattered across 
different switchs.


netstat -m:
7716/399/8115 mbufs in use (current/cache/total)
7388/326/7714/25600 mbuf clusters in use (current/cache/total/max)
7380/41 mbuf+clusters out of packet secondary zone in use (current/cache)
0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
16705K/751K/17456K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/6/6656 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
193374 calls to protocol drain routines

ifconfig -a:
em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=bRXCSUM,TXCSUM,VLAN_MTU
inet 192.168.X.X netmask 0xff00 broadcast 192.168.X.255
ether 00:1b:fc:ef:34:de
media: Ethernet autoselect (1000baseTX full-duplex)
status: active
em1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=bRXCSUM,TXCSUM,VLAN_MTU
inet X.X.X.X netmask 0xff00 broadcast X.X.X.255
ether 00:1b:fc:ef:34:df
media: Ethernet 1000baseTX full-duplex
status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00


What IP's are you trying to configure on em0 and em1?  These cannot be on 
the same subnet unless you are trying to bond them, which I don't believe 
is available in 6.X.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network Help

2008-02-12 Thread Derek Ragona

At 01:50 PM 2/12/2008, Victor Farah wrote:

Hello,
I have a machine setup with FreeBSD 6.3-PRERELEASE setup on a 10/100/1000 
switch.  There are a pair of em interfaces, and the network traffic on 
this machine is very spuratic.  Both EM interfaces reach 100Mbps and falls 
to 5~10Mbps, the very next minute, the traffic is very spuratic.  The 
media of the interfaces is as follows:

EM0: media: Ethernet autoselect (1000baseTX full-duplex)
EM1: media: Ethernet 1000baseTX full-duplex
Currently the EM1 card is in use.
I watch an MRTG that I have setup to see the machine failing at sustaining 
its bandwidth.
I have 13 other machines setup the same way but traffic is running fine 
and working very well, the only difference between those and the new one, 
is that it's pushing much more data through it; almost the same amount of 
data the 13 other machines push combined.


First you should update this system to 6.3 release.

Also you should post how your interfaces are configured, you can copy and 
paste the output from:

ifconfig -a

You also need to better explain the topology of your network.  For instance 
are all 13 systems on the same subnet?  or are you running multiple subnets 
with a switched backbone?  How many switches are you using?  Are you 
checking the throughput across a LAN segment or across multiple subnet 
segments?


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network Help

2004-05-10 Thread Steven N. Fettig
Jeffrey P. Toth wrote:

Thank you for your response Ion-Mihai,

On the router question, no, the router is a separate device, a D-Link 
504H but is a loaner while my D-Link 804HV is in the shop. After 
changing them out is when I discovered I had problems. Apparently the 
DL804 handled whatever the problem was without a complaint.

Yes I have been through setup a few times. So far all I have been able 
to do is take the server off-line.

I have also looked up setup for NATD and I think I can enable it but 
would not be able to write the firewall rules for it to read yet, as I 
understand needs to be done. I also had a little help with setup 
originally and I know there is something of a firewall setup but 
without know what exactly I would be afraid of interfering with what 
is there and making a mess of it.

Sorry I am such a non-user.

Jeff

Jeff,

I've been reading this thread and I think you need to start from the 
beginning.  I am going to make a broad assumption that your D-Link is 
set up correctly and that it *is* a sort of broadband router that does 
NAT and has DHCP services.  This means that the D-Link should be somehow 
connected to your DSL modem and/or Cable modem (unless you are using 
some other sort of connection - I couldn't find the 504H on D-Link's 
site, but was able to find the 804HV and am *again* assuming that it is 
similar). 

So here is the assumption list:
- Your D-Link is capable of doing NAT and DHCP
- You can ping the D-Link from your FreeBSD box (Win box, etc.) - if you 
can't STOP - this is your first problem.
- Your router's internal address is 192.168.0.1 with a netmask of 
255.255.255.0
- You have chosen to statically assign your inside machines with addy's 
(although you could also get the addy assignment via DHCP from the 
D-Link, you may have chosen to go the static route for other reasons).

On the FreeBSD box:
in rc.conf you should keep:
ifconfig_xl0=inet 192.168.0.150  netmask 255.255.255.0 # -- no other 
machine on the network should have this address
defaultrouter=192.168.0.1

Assigning an address to rl0 is irrelevant - also, make sure that that 
interface is unplugged from your network.  Make sure the xl0 interface 
is plugged in correctly.
For now, also make sure the following is true:

natd_enable=NO
firewall_enable=NO
Save rc.conf
Now, take a look at resolv.conf.
It should show something like:
nameserver 192.168.0.1

or the address of a nameserver you know is valid.  Get rid of any other 
lines for now - you can simply comment them out by beginning the line 
with #.
Save resolv.conf

Although there are ways around this, reboot the machine.

Once back up and running, you should be able to ping the router and ping 
an address like yahoo.com.  If you can't ping a website outside your 
internal network - i.e. Yahoo's - then there is a problem probably 
related to the D-Link.

On every machine, you should (basically) have the following configuration:

IP: 192.168.0.x (NOT 1 or any address that you have used with another 
machine)
netmask: 255.255.255.0
gateway: 192.168.0.1
DNS: 192.168.0.1 (or other valid DNS cache server).

Since you are not doing NAT or firewalling on the FreeBSD machine, there 
is no need to enable them.  If you eventually want to do firewalling 
directly on the FreeBSD box, then you can enable it and configure it 
after you have solved your networking problems.
I would recommend simply allowing the IP addy's to be assigned via DHCP, 
though.  On FreeBSD, you simply put:

ifconfig_xl0=dhcp

in rc.conf and get rid of the other config info.  Also, leave the 
firewall and nat off.
In resolv.conf you can comment everything out with # as it will be 
assigned dynamically by the dhcp server.

This *should* get you going...

Steve
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network Help

2004-05-10 Thread Jeffrey P. Toth
Thanks for you time.

Ion-Mihai Tetcu wrote:

[ it would be nice if you would reply in the same thread and wrap to 72
chars ]
On Mon, 10 May 2004 13:17:43 +0930
Jeffrey P. Toth [EMAIL PROTECTED] wrote:
 

Thanks Ion-Mihai,

Well that is the problem. I cannot find any problems other than when I
try to open an http: on the box, or on one of the other computers on
the network, it fails and has the network error:
Making HTTP connection to www.any-site-on-the-box.com
Sending HTTP request
HTTP request sent; waiting for response.
Alert! Unexpected network read error; connection aborted.
Can't Access 'http://www.any-site-on-the-box.com'
Alert! Unable to access document.
   

fetch -vvv http://www.any-site-on-the-box.com/ 
output please

 

I can ping all machines and do a traceroute without problem. 
   

Good.

 

The server is online and working I just cannot seem to figure out why
I cannot use http on the box and suspect that is the same reason the
other computers on the network cannot access any of the sites on the
FreeBSD machine without causing a freeze up.
   

So you cannot access any web page *from* that box either on that box and
away ? Please be clear. And when you try to access a page _on_ the box
it freezes ? Maybe you have a firewall in between somewhere somehow ? If
you're machine is freezing the you have to dig *this* problem. Did you
played with sysctl or kernel settings ? Does ftp from or to the box work
? How much RAM do you have ? Did you disable swap ? Do the logs say
anything ?
I cannot acces any page on the FreeBSD box from the box itself or from 
any computer on the newtowrk. I can access all other websites outside of 
the network.

After I attempt to access a page on the  FreeBSD box from the box or one 
of the other computers on the netowork, at timeout the router freezes 
and goes offline. A power reboot fixes till the next time I try to 
access via http or ftp.

If I connect up my XP computer through my dial up account removing it 
from the router, then I am on different network and  I have no problem 
accessing any of the sites or ftp'ing into the box.

I have not done anything with sysctl or kernel settings

FTP works from outside the box but not from within the network.

I have 256 Megs opf RAM

Disable Swap?

Looking in the logs httpd-error.log , httpd-access.log, debug.log, ftpd, 
dmesg.today, security, and messages I find nothing about any errors 
relating to the problem. In fact I don't even get a log where it tried 
to access the box in httpd-access.log

Is this what you mean by not putting the text ontop and far as I can 
tell the setting says the message is wrapped 72 characters. did it work 
this time?

Thanks for all,

Jeff




 

Do I need to add all the websites to the hosts file? 
   

Only if you what to access the by name locally and they are Name Based
on apache in which case you have to add them to the hosts of all your
computers or setup a dns server.
 

Or the static IP of the box, xxx.xxx.xxx.150?
   

No. 

 

Or maybe add the IP of the router?
   

No.

 

The host file contains these items as setup:
127.0.0.1   localhost   localhost.name-of box.com
203.122.142.24  name-of-box.com.
Replace name-of-box with the actual name of the box.
   

Seems OK.
 



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network Help

2004-05-09 Thread Ion-Mihai Tetcu
On Mon, 10 May 2004 10:25:19 +0930
Jeffrey P. Toth [EMAIL PROTECTED] wrote:

 Hey All,
 
Is this the mailing list where a newbie can get some help with a 
 network problem? If not can you please advise. I have a network problem 
 that acts like a conflict but I suspect is is caused by the fact that I 
 have no idea what I am doing.

Well, this is the place. Please share some details.

(and, since you're a newbie ;), take a look at
http://www.lemis.com/questions.html to help us help you.) 

-- 
IOnut
Unregistered ;) FreeBSD user

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network Help

2004-05-09 Thread Jeffrey P. Toth
Thanks Dave,

  I am sure the problem is that I do not have the networking on the 
FreeBSD box setup correctly. Anyway, 3 computers on the network, 1 
FreeBSD, 1 XP and 1 Win98. All connected to router at IP xxx.xxx.xxx.1. 
The FreeBSD machine is set and should be set to xxx.xxx.xxx.150. OK, all 
work fine until, I try to call up the the static IP xxx.xxx.xxx.xxx, or 
call up and of the websites by http: from a browser or using lynx on the 
FreeBSD box, I get an error: Alert!: Unexpected network read error; 
connection aborted or on the Win boxes the browser just times out. 
Shortly after or at the timeout, the router freezes and I have to power 
reboot it.
  I am very sure that this is because I have not properly set it up 
and the error is just a symptom of that. In rc.conf for settings all I 
have right now is:

ifconfig_xl0=inet 192.168.0.150 netmask 255.255.255.0
defaultrouter=192.168.0.1
  I have read a lot about it and suspect this isn't right but 
really not sure how to make the change. I think it should be:

ifconfig_xl0=xxx.xxx.xxx.xxx#static IP address
ifconfig_rl0=inet 192.168.0.150 netmask 255.255.255.0
  Just afraid to proceed for fear of taking my server offline and 
not being able to get it back online. The boss would not be happy. LOL

Thanks for your time Dave, very nice of you.

Jeff







dave wrote:

Hello,
   What is your network problem?
Dave.
 



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network Help

2004-05-09 Thread Ion-Mihai Tetcu
On Mon, 10 May 2004 11:24:02 +0930
Jeffrey P. Toth [EMAIL PROTECTED] wrote:

 Thanks Dave,
 
I am sure the problem is that I do not have the networking on the 
 FreeBSD box setup correctly. Anyway, 3 computers on the network, 1 
 FreeBSD, 1 XP and 1 Win98. All connected to router at IP xxx.xxx.xxx.1. 
 The FreeBSD machine is set and should be set to xxx.xxx.xxx.150. OK, all 
 work fine until, I try to call up the the static IP xxx.xxx.xxx.xxx, or 
 call up and of the websites by http: from a browser or using lynx on the 
 FreeBSD box, I get an error: Alert!: Unexpected network read error; 
 connection aborted or on the Win boxes the browser just times out. 
 Shortly after or at the timeout, the router freezes and I have to power 
 reboot it.

This shouldn't happen what ever you configured you box (I mean from
networking point of view).

I am very sure that this is because I have not properly set it up 
 and the error is just a symptom of that. In rc.conf for settings all I 
 have right now is:
 
 ifconfig_xl0=inet 192.168.0.150 netmask 255.255.255.0
 defaultrouter=192.168.0.1
 
I have read a lot about it and suspect this isn't right but 
 really not sure how to make the change. I think it should be:
 
 ifconfig_xl0=xxx.xxx.xxx.xxx#static IP address
 ifconfig_rl0=inet 192.168.0.150 netmask 255.255.255.0

Well, I don't understand if you use you FreeBSD box as a router or not.

If yes, then you should have something like:
hostname=buh.cameradicommercio.ro
ifconfig_rl0=inet 81.196.25.19   netmask 255.255.255.0
ifconfig_rl1=inet 192.168.0.1  netmask 255.255.255.0
defaultrouter=81.196.25.1

where rl0 would be your outside interface connencted to your upstream
provider's router with ip address 81.196.25.1 and rl1 would be the
inside interface connected to a hub/switch with the internal machines.

You would also want to use natd on the router, because 192.168/24 is a
private address space. So you would add to you rc.conf:
natd_enable=YES
natd_interface=rl0
firewall_enable=YES
firewall_type=OPEN

You need FIREWALL=YES for natd to work.

All this is very well explained in the FreeBSD Handbook, tahe a look at:
6.8 Setting Up Network Interface Cards
19.3 Wireless Networking



-- 
IOnut
Unregistered ;) FreeBSD user

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network Help

2004-05-09 Thread Jeffrey P. Toth
Thank you for your response Ion-Mihai,

On the router question, no, the router is a separate device, a D-Link 
504H but is a loaner while my D-Link 804HV is in the shop. After 
changing them out is when I discovered I had problems. Apparently the 
DL804 handled whatever the problem was without a complaint.

Yes I have been through setup a few times. So far all I have been able 
to do is take the server off-line.

I have also looked up setup for NATD and I think I can enable it but 
would not be able to write the firewall rules for it to read yet, as I 
understand needs to be done. I also had a little help with setup 
originally and I know there is something of a firewall setup but without 
know what exactly I would be afraid of interfering with what is there 
and making a mess of it.

Sorry I am such a non-user.

Jeff





Ion-Mihai Tetcu wrote:

On Mon, 10 May 2004 11:24:02 +0930
Jeffrey P. Toth [EMAIL PROTECTED] wrote:
 

Thanks Dave,

  I am sure the problem is that I do not have the networking on the 
FreeBSD box setup correctly. Anyway, 3 computers on the network, 1 
FreeBSD, 1 XP and 1 Win98. All connected to router at IP xxx.xxx.xxx.1. 
The FreeBSD machine is set and should be set to xxx.xxx.xxx.150. OK, all 
work fine until, I try to call up the the static IP xxx.xxx.xxx.xxx, or 
call up and of the websites by http: from a browser or using lynx on the 
FreeBSD box, I get an error: Alert!: Unexpected network read error; 
connection aborted or on the Win boxes the browser just times out. 
Shortly after or at the timeout, the router freezes and I have to power 
reboot it.
   

This shouldn't happen what ever you configured you box (I mean from
networking point of view).
 

  I am very sure that this is because I have not properly set it up 
and the error is just a symptom of that. In rc.conf for settings all I 
have right now is:

ifconfig_xl0=inet 192.168.0.150 netmask 255.255.255.0
defaultrouter=192.168.0.1
  I have read a lot about it and suspect this isn't right but 
really not sure how to make the change. I think it should be:

ifconfig_xl0=xxx.xxx.xxx.xxx#static IP address
ifconfig_rl0=inet 192.168.0.150 netmask 255.255.255.0
   

Well, I don't understand if you use you FreeBSD box as a router or not.

If yes, then you should have something like:
hostname=buh.cameradicommercio.ro
ifconfig_rl0=inet 81.196.25.19   netmask 255.255.255.0
ifconfig_rl1=inet 192.168.0.1  netmask 255.255.255.0
defaultrouter=81.196.25.1
where rl0 would be your outside interface connencted to your upstream
provider's router with ip address 81.196.25.1 and rl1 would be the
inside interface connected to a hub/switch with the internal machines.
You would also want to use natd on the router, because 192.168/24 is a
private address space. So you would add to you rc.conf:
natd_enable=YES
natd_interface=rl0
firewall_enable=YES
firewall_type=OPEN
You need FIREWALL=YES for natd to work.

All this is very well explained in the FreeBSD Handbook, tahe a look at:
6.8 Setting Up Network Interface Cards
19.3 Wireless Networking
 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network Help

2004-05-09 Thread Ion-Mihai Tetcu

[ please don't post on top, it's hard to read ]

On Mon, 10 May 2004 12:16:50 +0930
Jeffrey P. Toth [EMAIL PROTECTED] wrote:

 Thank you for your response Ion-Mihai,
 
 On the router question, no, the router is a separate device, a D-Link 
 504H but is a loaner while my D-Link 804HV is in the shop. After 
 changing them out is when I discovered I had problems. Apparently the 
 DL804 handled whatever the problem was without a complaint.
 
 Yes I have been through setup a few times. So far all I have been able 
 to do is take the server off-line.

When having network problems you go from lower levels up.

- So the first thing to do is to see if you have physical connection
(e.g. is the led on the and on the router nic on). If it ain't there's
the problem; if not, well, that doesn't mean anything :)

- The you ping the router from your box. If you don't have 100% you
probably have physical problems, so check the cabling. The ping other
hosts on you net, the next (ISP) router, etc. Check the netmasks, are
they right ?

- The you would ping and tracroute ips outside your net that are know to
be working like one of yahoo's 216.109.118.73, freebsd.org
216.136.204.21, 216.136.204.117, if you don't get out your ISP's network
then the problem at his end..

- Next you would check you DNS setup, etc.
 


-- 
IOnut
Unregistered ;) FreeBSD user

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network Help

2004-05-09 Thread Ion-Mihai Tetcu

[ it would be nice if you would reply in the same thread and wrap to 72
chars ]

On Mon, 10 May 2004 13:17:43 +0930
Jeffrey P. Toth [EMAIL PROTECTED] wrote:

 Thanks Ion-Mihai,
 
 Well that is the problem. I cannot find any problems other than when I
 try to open an http: on the box, or on one of the other computers on
 the network, it fails and has the network error:
 
 Making HTTP connection to www.any-site-on-the-box.com
 Sending HTTP request
 HTTP request sent; waiting for response.
 Alert! Unexpected network read error; connection aborted.
 Can't Access 'http://www.any-site-on-the-box.com'
 Alert! Unable to access document.

fetch -vvv http://www.any-site-on-the-box.com/ 
output please

 I can ping all machines and do a traceroute without problem. 

Good.

 The server is online and working I just cannot seem to figure out why
 I cannot use http on the box and suspect that is the same reason the
 other computers on the network cannot access any of the sites on the
 FreeBSD machine without causing a freeze up.

So you cannot access any web page *from* that box either on that box and
away ? Please be clear. And when you try to access a page _on_ the box
it freezes ? Maybe you have a firewall in between somewhere somehow ? If
you're machine is freezing the you have to dig *this* problem. Did you
played with sysctl or kernel settings ? Does ftp from or to the box work
? How much RAM do you have ? Did you disable swap ? Do the logs say
anything ?

 Do I need to add all the websites to the hosts file? 

Only if you what to access the by name locally and they are Name Based
on apache in which case you have to add them to the hosts of all your
computers or setup a dns server.

 Or the static IP of the box, xxx.xxx.xxx.150?

No. 

 Or maybe add the IP of the router?

No.

 The host file contains these items as setup:
 127.0.0.1 localhost   localhost.name-of box.com
 203.122.142.24name-of-box.com.
 
 Replace name-of-box with the actual name of the box.

Seems OK.


-- 
IOnut
Unregistered ;) FreeBSD user

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network Help

2004-05-09 Thread Norberto Meijome
Jeffrey P. Toth wrote:

Thanks Ion-Mihai,

Well that is the problem. I cannot find any problems other than when I 
try to open an http: on the box, or on one of the other computers on 
the network, it fails and has the network error:

Making HTTP connection to www.any-site-on-the-box.com
Sending HTTP request
HTTP request sent; waiting for response.
Alert! Unexpected network read error; connection aborted.
Can't Access 'http://www.any-site-on-the-box.com'
Alert! Unable to access document.
I can ping all machines and do a traceroute without problem. The 
server is online and working I just cannot seem to figure out why I 
cannot use http on the box and suspect that is the same reason the 
other computers on the network cannot access any of the sites on the 
FreeBSD machine without causing a freeze up.

OK, so it seems it isn't a basic networking issue, but rather a problem 
talking to your Web server running on your FBsd box. You mentioned some 
kind of firewall. The 'unexpected network error' could be due to a 
firewall, OR to not having any web server running on your box.

1- Is your web server process running?
  Assuming you are using apache from the ports collection, what does
apachectl status
show you (run in your FreeBSD server) ?

2- If it's a firewall, then you should open incoming TCP traffic to port 
80 (and 443 if you plan to serve HTTPS).
You could post here the contents of (if they exist) to help us help you:
- /etc/rc.conf
- /etc/ipf.rules
- /etc/ipnat.rules
- if you have a line reading firewall_type=/path/to/file, please also 
include that file

( of course, feel free  to replace your public IP with something else to 
protect your privacy)

3- you could have tcpwrappers setup , blocking tcp traffic - I don't 
know from the top of my head how to check for this --someone else may 
want to.

4- or..in a strange setup, you may have apache running from your inetd, 
and have either inetd not setup to serve it properly OR actively 
blocking (tcp wrappers again)

Do I need to add all the websites to the hosts file? Or the static IP 
of the box, xxx.xxx.xxx.150?
if you have dns setup, u shouldn't need hosts file. Do you have DNS 
setup and working? can you ping your server by name rather than by IP only?

Just cannot seem to find what affects this problem.
too many things i'd say ;-)

Cheers from Sydney,
--
Norberto Meijome | freebsd at meijome dot net
 | numard at meijome dot net
Everything is interesting if you go into it deeply enough. - Richard 
Feynman
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network Help

2004-05-09 Thread mailist
Given your current network configuration as I understand it, there's no reason 
for running NAT on your FBSD box so don't even go there.

Is your router blocking http either inbound or outbound (port 80) ?

Why aren't you using dhclient to get the ip address for all your computers 
dynamically from the router?

Does /etc/resolv.conf have any information in it?


On Sunday 09 May 2004 10:46 pm, Jeffrey P. Toth wrote:

 On the router question, no, the router is a separate device, a D-Link
 504H but is a loaner while my D-Link 804HV is in the shop. After
 changing them out is when I discovered I had problems. Apparently the
 DL804 handled whatever the problem was without a complaint.


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]