1.\" $NetBSD: ifconfig.8,v 1.84 2006/06/30 15:51:36 drochner Exp $ 2.\" 3.\" Copyright (c) 1983, 1991, 1993 4.\" The Regents of the University of California. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. Neither the name of the University nor the names of its contributors 15.\" may be used to endorse or promote products derived from this software 16.\" without specific prior written permission. 17.\" 18.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 19.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" SUCH DAMAGE. 29.\" 30.\" @(#)ifconfig.8 8.4 (Berkeley) 6/1/94 31.\" 32.Dd April 29, 2006 33.Dt IFCONFIG 8 34.Os 35.Sh NAME 36.Nm ifconfig 37.Nd configure network interface parameters 38.Sh SYNOPSIS 39.Nm 40.Ar interface address_family 41.Oo 42.Ar address 43.Op Ar dest_address 44.Oc 45.Op Ar parameters 46.Nm 47.Op Fl hLmvz 48.Ar interface 49.Op Ar protocol_family 50.Nm 51.Fl a 52.Op Fl bdhLmsuvz 53.Op Ar protocol_family 54.Nm 55.Fl l 56.Op Fl bdsu 57.Nm 58.Fl s 59.Ar interface 60.Nm 61.Fl C 62.Sh DESCRIPTION 63.Nm 64is used to assign an address 65to a network interface and/or configure 66network interface parameters. 67.Nm 68must be used at boot time to define the network address 69of each interface present on a machine; it may also be used at 70a later time to redefine an interface's address 71or other operating parameters. 72.Pp 73Available operands for 74.Nm : 75.Bl -tag -width Ds 76.It Ar address 77For the 78.Tn DARPA-Internet 79family, 80the address is either a host name present in the host name data 81base, 82.Xr hosts 5 , 83or a 84.Tn DARPA 85Internet address expressed in the Internet standard 86.Dq dot notation . 87For the Xerox Network Systems(tm) family, 88addresses are 89.Ar net:a.b.c.d.e.f , 90where 91.Ar net 92is the assigned network number 93.Pq in decimal , 94and each of the six bytes of the host number, 95.Ar a 96through 97.Ar f , 98are specified in hexadecimal. 99The host number may be omitted on Ethernet interfaces, 100which use the hardware physical address, 101and on interfaces other than the first. 102For the 103.Tn ISO 104family, addresses are specified as a long hexadecimal string, 105as in the Xerox family. 106However, two consecutive dots imply a zero 107byte, and the dots are optional, if the user wishes to 108.Pq carefully 109count out long strings of digits in network byte order. 110.It Ar address_family 111Specifies the 112.Ar address_family 113which affects interpretation of the remaining parameters. 114Since an interface can receive transmissions in differing protocols 115with different naming schemes, specifying the address family is recommended. 116The address or protocol families currently 117supported are 118.Dq inet , 119.Dq inet6 , 120.Dq atalk , 121.Dq iso , 122and 123.Dq ns . 124.It Ar interface 125The 126.Ar interface 127parameter is a string of the form 128.Dq name unit , 129for example, 130.Dq en0 131.El 132.Pp 133The following parameters may be set with 134.Nm : 135.Bl -tag -width dest_addressxx 136.It Cm advbase Ar n 137If the driver is a 138.Xr carp 4 139pseudo-device, set the base advertisement interval to 140.Ar n 141seconds. 142This ia an 8-bit number; the default value is 1 second. 143.It Cm advskew Ar n 144If the driver is a 145.Xr carp 4 146pseudo-device, skew the advertisement interval by 147.Ar n . 148This is an 8-bit number; the default value is 0. 149.Pp 150Taken together the 151.Cm advbase 152indicate how frequently, in seconds, the host will advertise the fact that it 153considers itself the master of the virtual host. 154The formula is 155.Cm advbase 156+ 157.Pf ( Cm advskew 158/ 256). 159If the master does not advertise within three times this interval, this host 160will begin advertising as master. 161.It Cm alias 162Establish an additional network address for this interface. 163This is sometimes useful when changing network numbers, and 164one wishes to accept packets addressed to the old interface. 165.It Fl alias 166Remove the specified network address alias. 167.It Cm arp 168Enable the use of the Address Resolution Protocol in mapping 169between network level addresses and link level addresses 170.Pq default . 171This is currently implemented for mapping between 172.Tn DARPA 173Internet 174addresses and Ethernet addresses. 175.It Fl arp 176Disable the use of the Address Resolution Protocol. 177.It Cm anycast 178.Pq inet6 only 179Set the IPv6 anycast address bit. 180.It Fl anycast 181.Pq inet6 only 182Clear the IPv6 anycast address bit. 183.It Cm broadcast Ar mask 184.Pq Inet only 185Specify the address to use to represent broadcasts to the 186network. 187The default broadcast address is the address with a host part of all 1's. 188.It Cm carpdev Ar iface 189If the driver is a 190.Xr carp 4 191pseudo-device, attach it to 192.Ar iface. 193If not specified, the kernel will attempt to select an interface with 194a subnet matching that of the carp interface. 195.It Cm debug 196Enable driver dependent debugging code; usually, this turns on 197extra console error logging. 198.It Fl debug 199Disable driver dependent debugging code. 200.ne 1i 201.It Cm delete 202Remove the network address specified. 203This would be used if you incorrectly specified an alias, or it 204was no longer needed. 205If you have incorrectly set an NS address having the side effect 206of specifying the host portion, removing all NS addresses will 207allow you to respecify the host portion. 208.Cm delete 209does not work for IPv6 addresses. 210Use 211.Fl alias 212with explicit IPv6 address instead. 213.It Ar dest_address 214Specify the address of the correspondent on the other end 215of a point to point link. 216.It Cm down 217Mark an interface ``down''. 218When an interface is 219marked ``down'', the system will not attempt to 220transmit messages through that interface. 221If possible, the interface will be reset to disable reception as well. 222This action does not automatically disable routes using the interface. 223.It Cm ipdst 224This is used to specify an Internet host who is willing to receive 225ip packets encapsulating NS packets bound for a remote network. 226An apparent point to point link is constructed, and 227the address specified will be taken as the NS address and network 228of the destination. 229IP encapsulation of 230.Tn CLNP 231packets is done differently. 232.It Cm media Ar type 233Set the media type of the interface to 234.Ar type . 235Some interfaces support the mutually exclusive use of one of several 236different physical media connectors. 237For example, a 10Mb/s Ethernet 238interface might support the use of either 239.Tn AUI 240or twisted pair connectors. 241Setting the media type to 242.Dq 10base5 243or 244.Dq AUI 245would change the currently active connector to the AUI port. 246Setting it to 247.Dq 10baseT 248or 249.Dq UTP 250would activate twisted pair. 251Refer to the interfaces' driver 252specific man page for a complete list of the available types. 253.It Cm mediaopt Ar opts 254Set the specified media options on the interface. 255.Ar opts 256is a comma delimited list of options to apply to the interface. 257Refer to the interfaces' driver specific man page for a complete 258list of available options. 259.It Fl mediaopt Ar opts 260Disable the specified media options on the interface. 261.It Cm mode Ar mode 262If the driver supports the media selection system, set the specified 263operating mode on the interface to 264.Ar mode . 265For IEEE 802.11 wireless interfaces that support multiple operating modes 266this directive is used to select between 802.11a 267.Pq Dq 11a , 268802.11b 269.Pq Dq 11b , 270and 802.11g 271.Pq Dq 11g 272operating modes. 273.It Cm instance Ar minst 274Set the media instance to 275.Ar minst . 276This is useful for devices which have multiple physical layer interfaces 277.Pq PHYs . 278Setting the instance on such devices may not be strictly required 279by the network interface driver as the driver may take care of this 280automatically; see the driver's manual page for more information. 281.It Cm metric Ar n 282Set the routing metric of the interface to 283.Ar n , 284default 0. 285The routing metric is used by the routing protocol 286.Pq Xr routed 8 . 287Higher metrics have the effect of making a route 288less favorable; metrics are counted as addition hops 289to the destination network or host. 290.It Cm mtu Ar n 291Set the maximum transmission unit of the interface to 292.Ar n . 293Most interfaces don't support this option. 294.It Cm netmask Ar mask 295.Pq inet, inet6, and ISO 296Specify how much of the address to reserve for subdividing 297networks into sub-networks. 298The mask includes the network part of the local address 299and the subnet part, which is taken from the host field of the address. 300The mask can be specified as a single hexadecimal number 301with a leading 0x, with a dot-notation Internet address, 302or with a pseudo-network name listed in the network table 303.Xr networks 5 . 304The mask contains 1's for the bit positions in the 32-bit address 305which are to be used for the network and subnet parts, 306and 0's for the host part. 307The mask should contain at least the standard network portion, 308and the subnet field should be contiguous with the network 309portion. 310.Pp 311For INET and INET6 addresses, the netmask can also be given with 312slash-notation after the address 313.Pq e.g 192.168.17.3/24 . 314.\" see 315.\" Xr eon 5 . 316.It Cm nsellength Ar n 317.Pf ( Tn ISO 318only) 319This specifies a trailing number of bytes for a received 320.Tn NSAP 321used for local identification, the remaining leading part of which is 322taken to be the 323.Tn NET 324.Pq Network Entity Title . 325The default value is 1, which is conformant to US 326.Tn GOSIP . 327When an ISO address is set in an ifconfig command, 328it is really the 329.Tn NSAP 330which is being specified. 331For example, in 332.Tn US GOSIP , 33320 hex digits should be 334specified in the 335.Tn ISO NSAP 336to be assigned to the interface. 337There is some evidence that a number different from 1 may be useful 338for 339.Tn AFI 34037 type addresses. 341.It Cm state Ar state 342Explicitly force the 343.Xr carp 4 344pseudo-device to enter this state. 345Valid states are 346.Ar init , 347.Ar backup , 348and 349.Ar master . 350.It Cm ssid Ar id 351.Pq IEEE 802.11 devices only 352Configure the Service Set Identifier (a.k.a. the network name) 353for IEEE 802.11-based wireless network interfaces. 354The 355.Ar id 356can either be any text string up to 32 characters in length, 357or a series of up to 64 hexadecimal digits preceded by 358.Dq 0x . 359Setting 360.Ar id 361to the empty string allows the interface to connect to any available 362access point. 363.It Cm nwid Ar id 364Synonym for 365.Dq ssid . 366.It Cm hidessid 367.Pq IEEE 802.11 devices only 368When operating as an access point, do not broadcast the SSID 369in beacon frames or respond to probe request frames unless 370they are directed to the ap (i.e., they include the ap's SSID). 371By default, the SSID is included in beacon frames and 372undirected probe request frames are answered. 373.It Fl hidessid 374.Pq IEEE 802.11 devices only 375When operating as an access point, broadcast the SSID 376in beacon frames and answer and respond to undirected probe 377request frames (default). 378.It Cm nwkey Ar key 379.Pq IEEE 802.11 devices only 380Enable WEP encryption for IEEE 802.11-based wireless network interfaces 381with the 382.Ar key . 383The 384.Ar key 385can either be a string, a series of hexadecimal digits preceded by 386.Dq 0x , 387or a set of keys in the form 388.Ar n:k1,k2,k3,k4 , 389where 390.Ar n 391specifies which of keys will be used for all transmitted packets, 392and four keys, 393.Ar k1 394through 395.Ar k4 , 396are configured as WEP keys. 397Note that the order must be match within same network if multiple keys 398are used. 399For IEEE 802.11 wireless network, the length of each key is restricted to 40040 bits, i.e. 5-character string or 10 hexadecimal digits, 401while the WaveLAN/IEEE Gold cards accept the 104 bits 402.Pq 13 characters 403key. 404.It Cm nwkey Cm persist 405.Pq IEEE 802.11 devices only 406Enable WEP encryption for IEEE 802.11-based wireless network interfaces 407with the persistent key written in the network card. 408.It Cm nwkey Cm persist: Ns Ar key 409.Pq IEEE 802.11 devices only 410Write the 411.Ar key 412to the persistent memory of the network card, and 413enable WEP encryption for IEEE 802.11-based wireless network interfaces 414with the 415.Ar key . 416.It Fl nwkey 417.Pq IEEE 802.11 devices only 418Disable WEP encryption for IEEE 802.11-based wireless network interfaces. 419.It Cm apbridge 420.Pq IEEE 802.11 devices only 421When operating as an access point, pass packets between 422wireless clients directly (default). 423.It Fl apbridge 424.Pq IEEE 802.11 devices only 425When operating as an access point, pass packets through 426the system so that they can be forwared using some other mechanism. 427Disabling the internal bridging is useful when traffic 428is to be processed with packet filtering. 429.It Cm pass Ar passphrase 430If the driver is a 431.Xr carp 4 432pseudo-device, set the authentication key to 433.Ar passphrase . 434There is no passphrase by default 435.It Cm powersave 436.Pq IEEE 802.11 devices only 437Enable 802.11 power saving mode. 438.It Fl powersave 439.Pq IEEE 802.11 devices only 440Disable 802.11 power saving mode. 441.It Cm powersavesleep Ar duration 442.Pq IEEE 802.11 devices only 443Set the receiver sleep duration in milliseconds for 802.11 power saving mode. 444.It Cm bssid Ar bssid 445.Pq IEEE 802.11 devices only 446Set the desired BSSID for IEEE 802.11-based wireless network interfaces. 447.It Fl bssid 448.Pq IEEE 802.11 devices only 449Unset the desired BSSID for IEEE 802.11-based wireless network interfaces. 450The interface will automatically select a BSSID in this mode, which is 451the default. 452.It Cm chan Ar chan 453.Pq IEEE 802.11 devices only 454Select the channel 455.Pq radio frequency 456to be used for IEEE 802.11-based wireless network interfaces. 457.It Fl chan 458.Pq IEEE 802.11 devices only 459Unset the desired channel to be used 460for IEEE 802.11-based wireless network interfaces. 461It doesn't effect the channel to be created for IBSS or hostap mode. 462.It Cm tunnel Ar src_addr Ar dest_addr 463.Pq IP tunnel devices only 464Configure the physical source and destination address for IP tunnel 465interfaces, including 466.Xr gif 4 . 467The arguments 468.Ar src_addr 469and 470.Ar dest_addr 471are interpreted as the outer source/destination for the encapsulating 472IPv4/IPv6 header. 473.It Cm deletetunnel 474Unconfigure the physical source and destination address for IP tunnel 475interfaces previously configured with 476.Cm tunnel . 477.It Cm create 478Create the specified network pseudo-device. 479.It Cm destroy 480Destroy the specified network pseudo-device. 481.It Cm pltime Ar n 482.Pq inet6 only 483Set preferred lifetime for the address. 484.It Cm prefixlen Ar n 485.Pq inet and inet6 only 486Effect is similar to 487.Cm netmask . 488but you can specify by prefix length by digits. 489.It Cm deprecated 490.Pq inet6 only 491Set the IPv6 deprecated address bit. 492.It Fl deprecated 493.Pq inet6 only 494Clear the IPv6 deprecated address bit. 495.It Cm tentative 496.Pq inet6 only 497Set the IPv6 tentative address bit. 498.It Fl tentative 499.Pq inet6 only 500Clear the IPv6 tentative address bit. 501.It Cm eui64 502.Pq inet6 only 503Fill interface index 504.Pq lowermost 64bit of an IPv6 address 505automatically. 506.It Cm link[0-2] 507Enable special processing of the link level of the interface. 508These three options are interface specific in actual effect, however, 509they are in general used to select special modes of operation. 510An example 511of this is to enable SLIP compression, or to select the connector type 512for some ethernet cards. 513Refer to the man page for the specific driver 514for more information. 515.ne 1i 516.It Fl link[0-2] 517Disable special processing at the link level with the specified interface. 518.It Cm up 519Mark an interface ``up''. 520This may be used to enable an interface after an ``ifconfig down.'' 521It happens automatically when setting the first address on an interface. 522If the interface was reset when previously marked down, 523the hardware will be re-initialized. 524.It Cm vhid Ar n 525If the driver is a 526.Xr carp 4 527pseudo-device, set the virtual host ID to 528.Ar n . 529Acceptable values are 1 to 255. 530.It Cm vlan Ar tag 531If the interface is a 532.Xr vlan 4 533pseudo-interface, set the VLAN tag to 534.Ar tag . 535This is a 16-bit number which is used to create an 802.1Q VLAN header for 536packets sent from the 537.Xr vlan 4 538interface. 539Note that 540.Cm vlan 541and 542.Cm vlanif 543must be set at the same time. 544.It Cm vlanif Ar iface 545If the interface is a 546.Xr vlan 4 547pseudo-interface, associate the physical interface 548.Ar iface 549with it. 550Packets transmitted through the 551.Xr vlan 4 552interface will be diverted to the specified physical interface 553.Ar iface 554with 802.1Q VLAN encapsulation. 555Packets with 802.1Q encapsulation received 556by the physical interface with the correct VLAN tag will be diverted to the 557associated 558.Xr vlan 4 559pseudo-interface. 560The VLAN interface is assigned a copy of the physical 561interface's flags and 562.Tn Ethernet 563address. 564If the 565.Xr vlan 4 566interface already has a physical interface associated with it, this command 567will fail. 568To change the association to another physical interface, the 569existing association must be cleared first. 570Note that 571.Cm vlanif 572and 573.Cm vlan 574must be set at the same time. 575.It Cm agrport Ar iface 576Add 577.Ar iface 578to the 579.Xr agr 4 580interface. 581.It Cm -agrport Ar iface 582Remove 583.Ar iface 584from the 585.Xr agr 4 586interface. 587.It Cm vltime Ar n 588.Pq inet6 only 589Set valid lifetime for the address. 590.It Cm ip4csum 591Shorthand of 592.Dq ip4csum-tx ip4csum-rx 593.It Cm -ip4csum 594Shorthand of 595.Dq -ip4csum-tx -ip4csum-rx 596.It Cm tcp4csum 597Shorthand of 598.Dq tcp4csum-tx tcp4csum-rx 599.It Cm -tcp4csum 600Shorthand of 601.Dq -tcp4csum-tx -tcp4csum-rx 602.It Cm udp4csum 603Shorthand of 604.Dq udp4csum-tx udp4csum-rx 605.It Cm -udp4csum 606Shorthand of 607.Dq -udp4csum-tx -udp4csum-rx 608.It Cm tcp6csum 609Shorthand of 610.Dq tcp6csum-tx tcp6csum-rx 611.It Cm -tcp6csum 612Shorthand of 613.Dq -tcp6csum-tx -tcp6csum-rx 614.It Cm udp6csum 615Shorthand of 616.Dq udp6csum-tx udp6csum-rx 617.It Cm -udp6csum 618Shorthand of 619.Dq -udp6csum-tx -udp6csum-rx 620.It Cm ip4csum-tx 621Enable hardware-assisted IPv4 header checksums for the out-bound direction. 622.It Cm -ip4csum-tx 623Disable hardware-assisted IPv4 header checksums for the out-bound direction. 624.It Cm ip4csum-rx 625Enable hardware-assisted IPv4 header checksums for the in-bound direction. 626.It Cm -ip4csum-rx 627Disable hardware-assisted IPv4 header checksums for the in-bound direction. 628.It Cm tcp4csum-tx 629Enable hardware-assisted TCP/IPv4 checksums for the out-bound direction. 630.It Cm -tcp4csum-tx 631Disable hardware-assisted TCP/IPv4 checksums for the out-bound direction. 632.It Cm tcp4csum-rx 633Enable hardware-assisted TCP/IPv4 checksums for the in-bound direction. 634.It Cm -tcp4csum-rx 635Disable hardware-assisted TCP/IPv4 checksums for the in-bound direction. 636.It Cm udp4csum-tx 637Enable hardware-assisted UDP/IPv4 checksums for the out-bound direction. 638.It Cm -udp4csum-tx 639Disable hardware-assisted UDP/IPv4 checksums for the out-bound direction. 640.It Cm udp4csum-rx 641Enable hardware-assisted UDP/IPv4 checksums for the in-bound direction. 642.It Cm -udp4csum-rx 643Disable hardware-assisted UDP/IPv4 checksums for the in-bound direction. 644.It Cm tcp6csum-tx 645Enable hardware-assisted TCP/IPv6 checksums for the out-bound direction. 646.It Cm -tcp6csum-tx 647Disable hardware-assisted TCP/IPv6 checksums for the out-bound direction. 648.It Cm tcp6csum-rx 649Enable hardware-assisted TCP/IPv6 checksums for the in-bound direction. 650.It Cm -tcp6csum-rx 651Disable hardware-assisted TCP/IPv6 checksums for the in-bound direction. 652.It Cm udp6csum-tx 653Enable hardware-assisted UDP/IPv6 checksums for the out-bound direction. 654.It Cm -udp6csum-tx 655Disable hardware-assisted UDP/IPv6 checksums for the out-bound direction. 656.It Cm udp6csum-rx 657Enable hardware-assisted UDP/IPv6 checksums for the in-bound direction. 658.It Cm -udp6csum-rx 659Disable hardware-assisted UDP/IPv6 checksums for the in-bound direction. 660.It Cm tso4 661Enable hardware-assisted TCP/IPv4 segmentation on interfaces that 662support it. 663.It Cm -tso4 664Disable hardware-assisted TCP/IPv4 segmentation on interfaces that 665support it. 666.El 667.Pp 668.Nm 669displays the current configuration for a network interface 670when no optional parameters are supplied. 671If a protocol family is specified, 672.Nm 673will report only the details specific to that protocol 674family. 675.Pp 676If the 677.Fl s 678flag is passed before an interface name, 679.Nm 680will attempt to query the interface for its media status. 681If the 682interface supports reporting media status, and it reports that it does 683not appear to be connected to a network, 684.Nm 685will exit with status of 1 686.Pq false ; 687otherwise, it will exit with a 688zero 689.Pq true 690exit status. 691Not all interface drivers support media 692status reporting. 693.Pp 694If the 695.Fl m 696flag is passed before an interface name, 697.Nm 698will display all of the supported media for the specified interface. 699If the 700.Fl L 701flag is supplied, address lifetime is displayed for IPv6 addresses, 702as time offset string. 703.Pp 704Optionally, the 705.Fl a 706flag may be used instead of an interface name. 707This flag instructs 708.Nm 709to display information about all interfaces in the system. 710.Fl d 711limits this to interfaces that are down, 712.Fl u 713limits this to interfaces that are up, 714.Fl b 715limits this to broadcast interfaces, and 716.Fl s 717omits interfaces which appear not to be connected to a network. 718.Pp 719The 720.Fl l 721flag may be used to list all available interfaces on the system, with 722no other additional information. 723Use of this flag is mutually exclusive 724with all other flags and commands, except for 725.Fl d 726.Pq only list interfaces that are down , 727.Fl u 728.Pq only list interfaces that are up , 729.Fl s 730.Pq only list interfaces that may be connected , 731.Fl b 732.Pq only list broadcast interfaces . 733.Pp 734The 735.Fl C 736flag may be used to list all of the interface cloners available on 737the system, with no additional information. 738Use of this flag is 739mutually exclusive with all other flags and commands. 740.Pp 741The 742.Fl v 743flag prints statistics on packets sent and received on the given 744interface. 745If 746.Fl h 747is used in conjunction with 748.Fl v , 749the byte statistics will be printed in "human-readable" format. 750The 751.Fl z 752flag is identical to the 753.Fl v 754flag except that it zeros the interface input and output statistics 755after printing them. 756.Pp 757Only the super-user may modify the configuration of a network interface. 758.Sh DIAGNOSTICS 759Messages indicating the specified interface does not exist, the 760requested address is unknown, or the user is not privileged and 761tried to alter an interface's configuration. 762.Sh SEE ALSO 763.Xr netstat 1 , 764.Xr agr 4 , 765.Xr ifmedia 4 , 766.Xr netintro 4 , 767.Xr carp 4 , 768.Xr vlan 4 , 769.Xr ifconfig.if 5 , 770.\" .Xr eon 5 , 771.Xr rc 8 , 772.Xr routed 8 773.Sh HISTORY 774The 775.Nm 776command appeared in 777.Bx 4.2 . 778