From owner-freebsd-questions@FreeBSD.ORG Thu Oct 23 15:45:23 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 DC8E1802 for ; Thu, 23 Oct 2014 15:45:23 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A652B930 for ; Thu, 23 Oct 2014 15:45:23 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-19-17.adsl.hiwaay.net [216.180.19.17]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id s9NFjMJ3026939 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 23 Oct 2014 10:45:22 -0500 Message-ID: <54492409.4040208@hiwaay.net> Date: Thu, 23 Oct 2014 10:51:37 -0500 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 CC: "FreeBSD Questions !!!!" Subject: Re: How to power down/up NIC interfaces .... References: <54491D94.5030907@hiwaay.net> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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:45:23 -0000 On 10/23/14 10:23, Odhiambo Washington wrote: > 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... > > > Thx for your reply, I missed the UP flag :-/. I tried (w/ interface down to start with): [root@kabini1, /etc, 10:45:26am] 478 % ifconfig re0: flags=8802 metric 0 mtu 1500 options=8209b ether d0:50:99:13:e3:85 inet 192.168.0.27 netmask 0xffff0000 broadcast 192.168.255.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:45:32am] 479 % ifconfig re0 inet address 192.168.111.27 255.255.0.0 up ifconfig: address: bad value [root@kabini1, /etc, 10:45:49am] 480 % ifconfig re0: flags=8802 metric 0 mtu 1500 options=8209b ether d0:50:99:13:e3:85 inet 192.168.0.27 netmask 0xffff0000 broadcast 192.168.255.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:45:52am] 481 % ifconfig re0 up [root@kabini1, /etc, 10:45:59am] 482 % ifconfig re0: flags=8843 metric 0 mtu 1500 options=8209b ether d0:50:99:13:e3:85 inet 192.168.0.27 netmask 0xffff0000 broadcast 192.168.255.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:46:01am] 483 % I got the mask reset earlier, & can ping more stuff now, just can't get this address reset. I need to do this to configure a newly acquired WatchGuard FireBox Edge firewall appliance (to be later possibly reprovisioned w/ NetBSD/FreeBSD/OpenBSD, as per earlier post on another topic). TIA for any further help :-) .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.