From owner-freebsd-questions@FreeBSD.ORG Thu Oct 23 15:23:51 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A70D9206 for ; Thu, 23 Oct 2014 15:23:51 +0000 (UTC) Received: from mail-vc0-x22a.google.com (mail-vc0-x22a.google.com [IPv6:2607:f8b0:400c:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 659B6696 for ; Thu, 23 Oct 2014 15:23:51 +0000 (UTC) Received: by mail-vc0-f170.google.com with SMTP id hy10so1011118vcb.1 for ; Thu, 23 Oct 2014 08:23:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=uB5W0bDMt2iSX7A1DncfqmNrP8F3oNHAl6CMtJATXko=; b=a4tVBujtxEc/fXAbHheWZqC8URq/p6PIdhfx7/qCbdFnUj1ymUGU4rnUhnaqzjWH2P lcXAF76tVoig8WgpGFF3fppQCSLfYQADoknViBsqUgg0voSTPZY0CztABA5pvmRNbdtB LmGhkPfkjotUlg8FmYhb2Li06xjqu5gHKCN0xlrvkmAYHBufSjuOmkiMGm6qvJZBPJNz Ot3yuwZFH+jNwujky4tIUC9l3+0IuJP9Xe8jk1J67Uw91RI7HVEy+zfoSSdbzcq6kY6t wMDsGuYtoXboxCj9yj3FtkXsnluthsph6ZKqxFarg/sEsAK28ODQ6Z+cCC/CsUzFuj9h f4Zg== X-Received: by 10.52.26.82 with SMTP id j18mr3730526vdg.26.1414077830408; Thu, 23 Oct 2014 08:23:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.11.147 with HTTP; Thu, 23 Oct 2014 08:23:10 -0700 (PDT) In-Reply-To: <54491D94.5030907@hiwaay.net> References: <54491D94.5030907@hiwaay.net> From: Odhiambo Washington Date: Thu, 23 Oct 2014 18:23:10 +0300 Message-ID: Subject: Re: How to power down/up NIC interfaces .... To: "William A. Mahaffey III" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD Questions !!!! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2014 15:23:51 -0000 On 23 October 2014 18:24, William A. Mahaffey III wrote: > > > .... I am running FBSD 9.3p2: > > [root@kabini1, /etc, 10:16:05am] 459 % uname -a > FreeBSD kabini1.local 9.3-RELEASE-p2 FreeBSD 9.3-RELEASE-p2 #0: Mon Sep 15 > 16:44:27 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC > amd64 > [root@kabini1, /etc, 10:21:05am] 460 % > > I am trying to reset the (my) default netmask for my default network > interface from 255.255.255 to 255.255 . I changed the settings in rc.conf & > networks & did an 'infonfig re0 down/up' & nothing has changed :-/ .... > > [root@kabini1, /etc, 10:15:41am] 455 % ifconfig re0 down > [root@kabini1, /etc, 10:15:45am] 456 % ifconfig > re0: flags=8802 metric 0 mtu 1500 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ You see UP is missing? It's DOWN :) > options=8209b HWCSUM,WOL_MAGIC,LINKSTATE> > ether d0:50:99:13:e3:85 > inet 192.168.0.27 netmask 0xffffff00 broadcast 192.168.0.255 > inet6 fe80::d250:99ff:fe13:e385%re0 prefixlen 64 scopeid 0x1 > nd6 options=29 > media: Ethernet autoselect (100baseTX ) > status: active > plip0: flags=8810 metric 0 mtu 1500 > nd6 options=29 > lo0: flags=8049 metric 0 mtu 16384 > options=600003 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9 > inet 127.0.0.1 netmask 0xff000000 > nd6 options=21 > ipfw0: flags=8801 metric 0 mtu 65536 > nd6 options=21 > [root@kabini1, /etc, 10:15:51am] 457 % ifconfig re0 up > [root@kabini1, /etc, 10:16:03am] 458 % > [root@kabini1, /etc, 10:16:04am] 458 % > [root@kabini1, /etc, 10:16:04am] 458 % ifconfig > re0: flags=8843 metric 0 mtu 1500 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ You see the UP?? > options=8209b HWCSUM,WOL_MAGIC,LINKSTATE> > ether d0:50:99:13:e3:85 > inet 192.168.0.27 netmask 0xffffff00 broadcast 192.168.0.255 > inet6 fe80::d250:99ff:fe13:e385%re0 prefixlen 64 scopeid 0x1 > nd6 options=29 > media: Ethernet autoselect (none) > status: no carrier > ^^^^^^^^^^^^^^^^^^ This is odd. I suppose you need ifconfig INT ip netmask up > plip0: flags=8810 metric 0 mtu 1500 > nd6 options=29 > lo0: flags=8049 metric 0 mtu 16384 > options=600003 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9 > inet 127.0.0.1 netmask 0xff000000 > nd6 options=21 > ipfw0: flags=8801 metric 0 mtu 65536 > nd6 options=21 > [root@kabini1, /etc, 10:16:05am] 459 % > > > Do I have to do a full reboot to get this to take effect ? Please advise & > TIA .... > Try ifconfig re0 a.b.c.d x.x.x.x up Then of course route change default w.x.y.z, or maybe route add default... -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 "I can't hear you -- I'm using the scrambler."