Re: Network not working correctly without promiscuous mode beingset?

2003-07-10 Thread David
there are 2 redundant routes on xl1 side, but I'll let that be for now.  I
have upgraded the source and have since noticed VLAN_MTU which makes me
wonder.  If this card is enabling a virtual lan and it sends packets out,
but can't get them back this would make sense, and when i set promisc mode
it basically bypasses the vlan settings.  I'm new to VLAN support so I might
as well ask for any info on this and how to disable it, or atleast set it
correctly ;)

thanks again.


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


Re: Network not working correctly without promiscuous mode beingset?

2003-07-10 Thread David
localhost# netstat -rn
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default65.35.120.1UGSc   13 6054xl1
65.35.120/21   link#2 UC  20xl1
65.35.120.100:06:2a:ce:64:54  UHLW   120xl1   1200
65.35.124.33   00:06:2a:ce:64:8c  UHLW0   24xl1448
65.35.126.31   127.0.0.1  UGHS0  319lo0
127.0.0.1  127.0.0.1  UH  1   63lo0
172.16.16/24   link#1 UC  20xl0
172.16.16.100:01:03:c1:ac:19  UHLW0   27lo0
172.16.16.10   00:01:03:c1:89:1a  UHLW4   592918xl0   1024



I'm using the normal RC files to setup my interfaces, when it tries to setup
DHCP on xl1 it stalls and i have to ^C it, then login and run tcpdump
locally.  This is my routing table currently with tcpdump and promisc flag
set on both interfaces (only reason i can get online atm)


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


Re: Network not working correctly without promiscuous mode beingset?

2003-07-10 Thread stan
Sounds like a routing problem.

What does netstat -rn show?

On Thu, Jul 10, 2003 at 04:28:41PM -0400, David wrote:
> my setup is basically like this: I have a freebsd machine that is supposed
> to act as a gateway, it has 2 ethernet cards xl0 (local network) and xl1
> (internet).  xl1 is plugged directly into the cable modem and off it goes,
> and xl0 is plugged into a switch where all the other machines are plugged
> into locally.  xl1 is 65.35.123.123 for example and internally xl0 is
> 172.16.16.1.
> 
> If i attempt to ping 172.16.16.10 from .1 it does not work/go through.  if I
> run tcpdump -i xl0, then try to ping again it will go through just fine and
> i see the packets going both ways now.  Without tcpdump in promisc it wasn't
> working?  Now when i try to get a DHCP lease on xl1 it sits there and sends
> requests with no replies, then when i run tcpdump -i xl1 it will get a lease
> and the internet will work fine.  This is as best I can describe the issue
> and below is some included information.
> 
> damn# ifconfig -a
> xl0: flags=8943 mtu 1500
> options=3
> inet 172.16.16.1 netmask 0xff00 broadcast 172.16.16.255
> ether 00:01:03:c1:ac:19
> media: Ethernet autoselect (100baseTX )
> status: active
> xl1: flags=8943 mtu 1500
> options=3
> inet 65.35.126.31 netmask 0xf800 broadcast 255.255.255.255
> ether 00:01:03:c1:4a:b9
> media: Ethernet autoselect (10baseT/UTP)
> status: active
> lp0: flags=8810 mtu 1500
> lo0: flags=8049 mtu 16384
> inet 127.0.0.1 netmask 0xff00
> 
> damn# grep nat /etc/rc.conf
> natd_program="/sbin/natd"   # path to natd, if you want a different one.
> natd_enable="YES"   # Enable natd (if firewall_enable == YES).
> natd_interface="xl1"# Public interface or IPaddress to use.
> natd_flags=""   # Additional flags for natd.
> 
> damn# grep ifconfig /etc/rc.conf
> ifconfig_xl1="DHCP"
> ifconfig_xl0="inet 172.16.16.1  netmask 255.255.255.0"
> 
> damn# ipfw show
> 00100 34686  5360662 divert 8668 ip from any to any via xl1
> 65535 70033 10711879 allow ip from any to any
> 
> damn# arp -a
> 1.120.35.65.cfl.rr.com (65.35.120.1) at 00:06:2a:ce:64:54 on xl1 [ethernet]
> ? (172.16.16.1) at 00:01:03:c1:ac:19 on xl0 permanent [ethernet]
> ? (172.16.16.10) at 00:01:03:c1:89:1a on xl0 [ethernet]
> 
> 
> 
> 
> 
> 
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"