ifconfig.8 (195618) | ifconfig.8 (197138) |
---|---|
1.\" Copyright (c) 1983, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" From: @(#)ifconfig.8 8.3 (Berkeley) 1/5/94 | 1.\" Copyright (c) 1983, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" From: @(#)ifconfig.8 8.3 (Berkeley) 1/5/94 |
29.\" $FreeBSD: head/sbin/ifconfig/ifconfig.8 195618 2009-07-11 15:02:45Z rpaulo $ | 29.\" $FreeBSD: head/sbin/ifconfig/ifconfig.8 197138 2009-09-12 22:08:20Z hrs $ |
30.\" | 30.\" |
31.Dd July 8, 2009 | 31.Dd September 2, 2009 |
32.Dt IFCONFIG 8 33.Os 34.Sh NAME 35.Nm ifconfig 36.Nd configure network interface parameters 37.Sh SYNOPSIS 38.Nm 39.Op Fl L --- 553 unchanged lines hidden (view full) --- 593.Dq up . 594This may be used to enable an interface after an 595.Dq Nm Cm down . 596It happens automatically when setting the first address on an interface. 597If the interface was reset when previously marked down, 598the hardware will be re-initialized. 599.El 600.Pp | 32.Dt IFCONFIG 8 33.Os 34.Sh NAME 35.Nm ifconfig 36.Nd configure network interface parameters 37.Sh SYNOPSIS 38.Nm 39.Op Fl L --- 553 unchanged lines hidden (view full) --- 593.Dq up . 594This may be used to enable an interface after an 595.Dq Nm Cm down . 596It happens automatically when setting the first address on an interface. 597If the interface was reset when previously marked down, 598the hardware will be re-initialized. 599.El 600.Pp |
601The following parameters are for ICMPv6 Neightbor Discovery Protocol: 602.Bl -tag -width indent 603.It Cm accept_rtadv 604Set a flag to enable accepting ICMPv6 Router Advertisement messages. 605.It Cm -accept_rtadv 606Clear a flag 607.Cm accept_rtadv . 608.It Cm auto_linklocal 609Set a flag to perform automatic link-local address configuration when 610the interface becomes avalilable. 611.It Cm -auto_linklocal 612Clear a flag 613.Cm auto_linklocal . 614.It Cm defaultif 615Set the specified interface as the default route when there is no 616default router. 617.It Cm -defaultif 618Clear a flag 619.Cm defaultif . 620.It Cm ifdisabled 621Set a flag to disable all of IPv6 network communications on the 622specified interface. 623.It Cm -ifdisabled 624Clear a flag 625.Cm ifdisabled . 626When this flag is cleared and 627.Cm auto_linklocal 628flag is enabled, automatic configuration of a link-local address is 629performed. 630.It Cm nud 631Set a flag to enable Neighbor Unreachability Detection. 632.It Cm -nud 633Clear a flag 634.Cm nud . 635.It Cm prefer_source 636Set a flag to prefer addesses on the interface as candidates of the 637source address for outgoing packets. 638.It Cm -prefer_source 639Clear a flag 640.Cm prefer_source . 641.El 642.Pp |
|
601The following parameters are specific to cloning 602IEEE 802.11 wireless interfaces with the 603.Cm create 604request: 605.Bl -tag -width indent 606.It Cm wlandev Ar device 607Use 608.Ar device --- 1807 unchanged lines hidden (view full) --- 2416.Dl # ifconfig ed0 inet 192.0.2.45/28 add 2417.Pp 2418Remove the IPv4 address 2419.Li 192.0.2.45 2420from the interface 2421.Li ed0 : 2422.Dl # ifconfig ed0 inet 192.0.2.45 -alias 2423.Pp | 643The following parameters are specific to cloning 644IEEE 802.11 wireless interfaces with the 645.Cm create 646request: 647.Bl -tag -width indent 648.It Cm wlandev Ar device 649Use 650.Ar device --- 1807 unchanged lines hidden (view full) --- 2458.Dl # ifconfig ed0 inet 192.0.2.45/28 add 2459.Pp 2460Remove the IPv4 address 2461.Li 192.0.2.45 2462from the interface 2463.Li ed0 : 2464.Dl # ifconfig ed0 inet 192.0.2.45 -alias 2465.Pp |
2466Enable IPv6 functionality of the interface: 2467.Dl # ifconfig em0 inet6 -ifdisabled 2468.Pp |
|
2424Add the IPv6 address 2425.Li 2001:DB8:DBDB::123/48 2426to the interface 2427.Li em0 : 2428.Dl # ifconfig em0 inet6 2001:db8:bdbd::123 prefixlen 48 alias 2429Note that lower case hexadecimal IPv6 addresses are acceptable. 2430.Pp 2431Remove the IPv6 address added in the above example, --- 38 unchanged lines hidden (view full) --- 2470The 2471.Nm 2472utility appeared in 2473.Bx 4.2 . 2474.Sh BUGS 2475Basic IPv6 node operation requires a link-local address on each 2476interface configured for IPv6. 2477Normally, such an address is automatically configured by the | 2469Add the IPv6 address 2470.Li 2001:DB8:DBDB::123/48 2471to the interface 2472.Li em0 : 2473.Dl # ifconfig em0 inet6 2001:db8:bdbd::123 prefixlen 48 alias 2474Note that lower case hexadecimal IPv6 addresses are acceptable. 2475.Pp 2476Remove the IPv6 address added in the above example, --- 38 unchanged lines hidden (view full) --- 2515The 2516.Nm 2517utility appeared in 2518.Bx 4.2 . 2519.Sh BUGS 2520Basic IPv6 node operation requires a link-local address on each 2521interface configured for IPv6. 2522Normally, such an address is automatically configured by the |
2478kernel on each interface added to the system; this behaviour may 2479be disabled by setting the sysctl MIB variable 2480.Va net.inet6.ip6.auto_linklocal 2481to 0. | 2523kernel on each interface added to the system or enabled; this behavior may 2524be disabled by setting per-interface flag 2525.Cm -auto_linklocal . 2526The default value of this flag is 1 and can be disabled by using the sysctl 2527MIB variable 2528.Va net.inet6.ip6.auto_linklocal . |
2482.Pp | 2529.Pp |
2483If you delete such an address using 2484.Nm , 2485the kernel may act very odd. 2486Do this at your own risk. | 2530Do not configure IPv6 addresses with no link-local address by using 2531.Nm . 2532It can result in unexpected behaviors of the kernel. |