From owner-freebsd-current Mon Feb 11 19: 9:29 2002 Delivered-To: freebsd-current@freebsd.org Received: from newman2.bestweb.net (newman2.bestweb.net [209.94.102.67]) by hub.freebsd.org (Postfix) with ESMTP id B00AD37B657 for ; Mon, 11 Feb 2002 18:19:12 -0800 (PST) Received: from okeeffe.bestweb.net (okeefe.bestweb.net [209.94.100.110]) by newman2.bestweb.net (Postfix) with ESMTP id 20C042331A for ; Mon, 11 Feb 2002 21:18:07 -0500 (EST) Received: by okeeffe.bestweb.net (Postfix, from userid 0) id B89489F3C4; Mon, 11 Feb 2002 21:12:43 -0500 (EST) Date: Thu, 07 Feb 2002 07:23:46 -0600 From: Jordan Breeding To: freebsd-current@freebsd.org Subject: Problems setting up TCP/IP in 5.0-CURRENT... Message-Id: <20020212021243.B89489F3C4@okeeffe.bestweb.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I have been using -current for a few weeks now after converting from linux and then finding that a lot of things I wanted to do only work in -current and not -stable. However the only thing which I can not get to work exactly as it did in Linux on -current are my TCP/IP settings. I have two ethernet cards, one which I use for outbound (default net) traffic and its responses, and one card which I use for inbound port forwards from my hardware router as well as inbound/outbound for my 192.168.1.0 net. I have been able to get this to work perfectly, but only in 4.5-RELEASE (well actually in -stable, ie. 4.4-RELEASE, 4.5-RC{1,2,3}, and 4.5-RELEASE). Here is a small session which shows a successful setup under -stable: #ifconfig -a xl0: flags=8802 mtu 1500 options=3 ether 00:01:02:3b:2b:c2 media: Ethernet autoselect (100baseTX ) status: active xl1: flags=8802 mtu 1500 options=3 ether 00:01:02:3b:2b:77 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 sl0: flags=c010 mtu 552 #ifconfig xl0 192.168.1.2 netmask 255.255.255.0 #ifconfig xl1 192.168.1.3 netmask 255.255.255.0 #ifconfig -a xl0: flags=8843 mtu 1500 options=3 inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::201:2ff:fe3b:2bc2%xl0 prefixlen 64 scopeid 0x1 ether 00:01:02:3b:2b:c2 media: Ethernet autoselect (100baseTX ) status: active xl1: flags=8843 mtu 1500 options=3 inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::201:2ff:fe3b:2b77%xl1 prefixlen 64 scopeid 0x2 ether 00:01:02:3b:2b:77 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 sl0: flags=c010 mtu 552 #route delete -net 192.168.1.0 #route add -net default 192.168.1.1 #route add -net 192.168.1.0 -interface 192.168.1.3 #netstat -r Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.1.1 UGSc 0 21 xl0 192.168.1 link#2 UCSc 4 0 xl1 Internet6: Destination Gateway Flags Netif Expire localhost localhost UH lo0 fe80::%xl0 link#1 UC xl0 fe80::201:2ff:fe3b 0:1:2:3b:2b:c2 UHL lo0 fe80::%xl1 link#2 UC xl1 fe80::201:2ff:fe3b 0:1:2:3b:2b:77 UHL lo0 fe80::%lo0 fe80::1%lo0 Uc lo0 fe80::1%lo0 link#3 UHL lo0 ff01:: localhost U lo0 ff02::%xl0 link#1 UC xl0 ff02::%xl1 link#2 UC xl1 ff02::%lo0 localhost UC lo0 This shows no problems at all and works whether I use the routing daemon or use static routes at boot up, however -current will not allow me to do the same thing that I have done above, instead I get the following: bash-2.05a# ifconfig -a xl0: flags=8843 mtu 1500 options=3 inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::201:2ff:fe3b:2bc2%xl0 prefixlen 64 scopeid 0x1 ether 00:01:02:3b:2b:c2 media: Ethernet autoselect (100baseTX ) status: active xl1: flags=8843 mtu 1500 options=3 inet 192.168.1.3 netmask 0xffffffff broadcast 192.168.1.3 inet6 fe80::201:2ff:fe3b:2b77%xl1 prefixlen 64 scopeid 0x2 ether 00:01:02:3b:2b:77 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=8010 mtu 1500 bash-2.05a# ifconfig xl1 192.168.1.3 netmask 255.255.255.0 ifconfig: ioctl (SIOCAIFADDR): File exists The only thing which I can think of is that either a) it is a userland change in -current, or b) I was only ever running the GENERIC kernel for 4.5-RELEASE and never recompiled my kernel until I was compiling with -current source so maybe it is some option in the GENERIC config file for the -current source. If it is b) could someone please tell me which option is causing this so that I may turn it back off. I would really like to try and get this working exactly as I have in Linux, Solaris, FreeBSD 4.5-RELEASE. Thanks for any help. Jordan Breeding To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message