From owner-freebsd-questions Wed Jan 26 14:44:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mx2.x-treme.gr (mx2.x-treme.gr [212.120.192.15]) by hub.freebsd.org (Postfix) with ESMTP id 2545315261 for <freebsd-questions@FreeBSD.ORG>; Wed, 26 Jan 2000 14:44:28 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (pat40.x-treme.gr [212.120.197.232]) by mx2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id AAA32601; Thu, 27 Jan 2000 00:44:04 +0200 Received: (from charon@localhost) by hades.hell.gr (8.9.3/8.9.3) id PAA01230; Wed, 26 Jan 2000 15:59:30 +0200 (EET) (envelope-from keramida@diogenis.ceid.upatras.gr) Date: Wed, 26 Jan 2000 15:59:29 +0200 From: Giorgos Keramidas <charon@hades.hell.gr> To: gcanongo@sidek.com.mx Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Help Message-ID: <20000126155929.E883@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <86256872.00099B33.00@mail.sidek.com.mx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <86256872.00099B33.00@mail.sidek.com.mx>; from gcanongo@sidek.com.mx on Tue, Jan 25, 2000 at 07:44:55PM -0600 X-PGP-Fingerprint: 62 45 D1 C9 26 F9 95 06 D6 21 2A C8 8C 16 C0 8E X-Phone-Number: +30-94-6203692, +30-93-2886457 X-Address: Theodorou Kirinaiou 61, 26334 Patra, Greece Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [message reformatted, see http://www.lemis.org/questions.html] On Tue, Jan 25, 2000 at 07:44:55PM -0600, gcanongo@sidek.com.mx wrote: > > Sorry, but i need to know what's de command that i can use to disable > one interface card, actualy a have 2 interfaces cards but i need to > disable one of them... You can either bring temporarily down the interface of the card, or bring it down and clear any user-defined parameters. The commands for this are: # ifconfig -au This will show you the currently active interfaces. You have to pick the right one, and then issue: # ifconfig ifaceN down where ifaceN is the name of the interface. You have to replace `ifaceN' with the actual name of your interface for this to work, i.e. replace `ifaceN' with `ed0', `fxp0', `xl0', etc. Note that if you 'ifconfig down' an interface, you can later 'ifconfig up' it and it will still work, having the same parameters. This is nice for temporarily bringing down the interface, without having to rerun /etc/rc.network to bring it up. If you just want to wipe this interface clean, and reconfigure it manually (which I'm almost certain you are not up to now), you can replace 'down' with 'delete'. Careful if you use this, because the parameters of the interface (IP address, netmask, etc.) are wiped clean with 'ifconfig delete'. Nevertheless, the command (if that has any practical use to you) is: # ifconfig ifaceN down For all this and more exciting stuff about networking with FreeBSD, see the manual pages networking(4), ifconfig(8), netstat(8), etc. Ciao. PS: Try not to use so many dots in your messages. They only take up space, and clutter the rest of the mail message body, making it look like a table of contents or something. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > "Don't let your schooling interfere with your education." [Mark Twain] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message