From owner-freebsd-questions@FreeBSD.ORG Wed May 10 18:21:04 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 292D616A967 for ; Wed, 10 May 2006 18:21:04 +0000 (UTC) (envelope-from atom.powers@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AF1043E03 for ; Wed, 10 May 2006 18:19:15 +0000 (GMT) (envelope-from atom.powers@gmail.com) Received: by nz-out-0102.google.com with SMTP id l1so1783018nzf for ; Wed, 10 May 2006 11:19:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rGCkNZrR88/CsY7qNPrqMvReifRHuE+CZoktYnr4GHhRqI4qk/MueIFIJUCmA8FCL5x+gq3hTS6MjX1mnVZc2N+3R06f5ziTnkdsGgBvXK2aduhhSuOzu7ZfLYP1LSTI/v7WBJiomxG/Ehpnd933K5FGPqAuqTXXR2GWuobsXok= Received: by 10.65.222.9 with SMTP id z9mr679553qbq; Wed, 10 May 2006 11:19:06 -0700 (PDT) Received: by 10.65.150.9 with HTTP; Wed, 10 May 2006 11:19:06 -0700 (PDT) Message-ID: Date: Wed, 10 May 2006 11:19:06 -0700 From: "Atom Powers" To: john@cruzweb.net In-Reply-To: <44622AF5.90700@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1902670.1147233030936.JavaMail.root@elwamui-karabash.atl.sa.earthlink.net> <44622AF5.90700@gmail.com> Cc: questions@freebsd.org Subject: Re: Setting Default NIC X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2006 18:21:10 -0000 On 5/10/06, John Cruz wrote: > I Just upgraded my freebsd machine to a new board, this one has an > onboard NIC where as the old one just had a PCI 10/100 nic. I put the > old NIC on the new board as well so I can have 2 running out of the > machine, but I don't know how to set it so that the onboard NIC (vr0) is > the default and the PIC nic (r10) is not, because when I unplug the PCI > one all net connectivity shuts down. Here's my ifconfig and my rc.conf > as always help is much appreciated. rl0 already is the "default", if by default you mean the nic used when no nic is specified with command like tcpdump. This sounds like a routing problem. I am guessing that your default router is 192.168.42.1. If that is the case the systew will use the interface "closest" to the router to send packets out, which in this case is the vr0 interface. Try `ifconfig vr0 down` instead of unplugging it. Or give rl0 an IP in the range 192.168.42.2-8. > *********IFCONFIG > > rl0: flags=3D8843 mtu 1500 > options=3D8 > inet6 fe80::210:b5ff:fe5f:c324%rl0 prefixlen 64 scopeid 0x1 > inet 192.168.42.10 netmask 0xffffff00 broadcast 192.168.42.255 > ether 00:10:b5:5f:c3:24 > media: Ethernet autoselect (100baseTX ) > status: active > vr0: flags=3D8843 mtu 1500 > inet6 fe80::250:70ff:fee8:7fe%vr0 prefixlen 64 scopeid 0x2 > inet 192.168.42.9 netmask 0xffffff00 broadcast 192.168.42.255 > ether 00:50:70:e8:07:fe > media: Ethernet autoselect (100baseTX ) > status: active > plip0: flags=3D108810 mtu 1500 > lo0: flags=3D8049 mtu 16384 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 > inet 127.0.0.1 netmask 0xff000000 > > ***********RC.CONF > > # -- sysinstall generated deltas -- # Sun Jan 1 19:02:32 2006 > # Created: Sun Jan 1 19:02:32 2006 > # Enable network daemons for user convenience. > # Please make all changes to this file, not to /etc/defaults/rc.conf. > # This file now contains just the overrides from /etc/defaults/rc.conf. > hostname=3D"taurus.cruz" > #ifconfig_rl0=3D"DHCP" > inetd_enable=3D"YES" > moused_enable=3D"YES" > moused_flags=3D"-3" > moused_port=3D"/dev/psm0" > moused_type=3D"auto" > nfs_server_enable=3D"YES" > rpcbind_enable=3D"YES" > saver=3D"daemon" > sshd_enable=3D"YES" > usbd_enable=3D"YES" > apache2_enable=3D"YES" > apache_enable=3D"YES" > mysqld_enable=3D"YES" > mysql_enable=3D"YES" > mountd_flags =3D "-r" > > # -- sysinstall generated deltas -- # Sun Jan 15 11:40:28 2006 > # The Following specifies that the server is using a static IP address > ifconfig_rl0=3D"inet 192.168.42.10 netmask 255.255.255.0" > ifconfig_vr0=3D"inet 192.168.42.9 netmask 255.255.255.0" > > defaultrouter=3D"192.168.42.1" > hostname=3D"taurus.cruz" > # -- sysinstall generated deltas -- # Sun Apr 9 01:33:24 2006 > nfs_client_enable=3D"YES" > # -- sysinstall generated deltas -- # Sun Apr 23 21:29:11 2006 > font8x8=3D"swiss-8x8" > font8x14=3D"NO" > font8x16=3D"swiss-8x16" > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > -- -- Perfection is just a word I use occasionally with mustard. --Atom Powers--