summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifconfig.8
Commit message (Collapse)AuthorAgeFilesLines
* Merge r256824 from head:glebius2013-10-291-2/+2
| | | | | | | | | | | | | | | | Provide a working example line for an interface with 1 address running with CARP. Currently, we've got a problem that interface isn't IFF_UP at the time we assign it a redundant address, and the latter gets stuck in INIT state. Additional SIOCSIFFLAGS from ifconfig(8) kicks it to a working state. A proper fix is kernel side and appeared to be non-trivial, not to be checked in before 10.0-RELEASE. Submitted by: Ole Myhre <ole.myhre dataoppdrag.no> Approved by: re (kib)
* mdoc sweepjoel2013-05-131-3/+9
|
* Add no_prefer_iface option.ume2013-01-091-1/+8
| | | | | | | | | | It stops treating the address on the interface as special by source address selection rule even when the interface is outgoing interface. This is desired in some situation. Requested by: hrs Reviewed by: IHANet folks including hrs MFC after: 1 week
* Actually change "silent" to "silence" this time (reviewed by adri@).wblock2012-11-071-1/+1
| | | | MFC after: 1 week
* Remove fifteen-year-old notes on media selection (suggested by simon@).wblock2012-11-071-20/+17
| | | | | | | Add commas after "e.g." and "i.e.". Change "silent" to "silence" in wireless create section (reviewed by adri@). MFC after: 1 week
* Add devd.conf(5) and devd(8) to SEE ALSO xrefs. Give users a pointer towblock2012-11-071-1/+3
| | | | | | | | | seemingly mysterious actions that are not done by ifconfig itself, but by devd triggering on events caused by ifconfig. PR: docs/173405 Submitted by: Mateusz Kwiatkowski <mateusz.kwiatkowski@atlashost.eu> MFC after: 1 week
* Remove "prefer_source" address selection option. FreeBSD has had anhrs2012-07-091-7/+1
| | | | | implementation of RFC 3484 for this purpose for a long time and "prefer_source" was never implemented actually. ND6_IFF_PREFER_SOURCE macro is left intact.
* Remove repeated words.joel2012-06-051-1/+1
|
* It turns out that too many drivers are not only parsing the L2/3/4bz2012-05-281-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | headers for TSO but also for generic checksum offloading. Ideally we would only have one common function shared amongst all drivers, and perhaps when updating them for IPv6 we should introduce that. Eventually we should provide the meta information along with mbufs to avoid (re-)parsing entirely. To not break IPv6 (checksums and offload) and to be able to MFC the changes without risking to hurt 3rd party drivers, duplicate the v4 framework, as other OSes have done as well. Introduce interface capability flags for TX/RX checksum offload with IPv6, to allow independent toggling (where possible). Add CSUM_*_IPV6 flags for UDP/TCP over IPv6, and reserve further for SCTP, and IPv6 fragmentation. Define CSUM_DELAY_DATA_IPV6 as we do for legacy IP and add an alias for CSUM_DATA_VALID_IPV6. This pretty much brings IPv6 handling in line with IPv4. TSO is still handled in a different way and not via if_hwassist. Update ifconfig to allow (un)setting of the new capability flags. Update loopback to announce the new capabilities and if_hwassist flags. Individual driver updates will have to follow, as will SCTP. Reported by: gallatin, dim, .. Reviewed by: gallatin (glanced at?) MFC after: 3 days X-MFC with: r235961,235959,235958
* MFp4 bz_ipv6_fast:bz2012-05-191-1/+17
| | | | | | | | | | | | Allow tso4 and tso6 be set individually given we have the bits. This will help with drivers not working as expected during the transition time and later. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn MFC After: 1 week
* Update man page date to the date of the last commit.monthadar2012-05-021-1/+1
| | | | Approved by: adrian
* * Added new command to ifconfig to activate Mesh Gate Announcement calledmonthadar2012-05-011-0/+6
| | | | | | meshgate with corresponding explanation; Approved by: adrian
* Remove end of line whitespace introduced in previous commit.joel2012-04-071-1/+1
|
* Document syncdev, syncpeer and defer keywords forglebius2012-04-031-1/+19
| | | | pfsync(4) interfaces.
* Remove trailing whitespace per mdoc lint warningeadler2012-03-291-13/+13
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* Fix typo and bump the document date which I also forgot.thompsa2012-03-071-2/+2
| | | | Spotted by: Andrey Zonov
* Add the ability to set which packet layers are used for the load balance hashthompsa2012-03-061-0/+15
| | | | calculation.
* Update bridge(4) default values.brueffer2012-02-291-3/+3
| | | | | | PR: 164564 Submitted by: "Rudy (bulk)" <crapsh@monkeybrains.net> MFC after: 2 weeks
* Correct capitalization of "Hz" in user-visible text (manpages, printf(),gavin2012-02-281-2/+2
| | | | | | etc). MFC after: 3 days
* Adjust the VLAN section of the ifconfig(8) man page to better reflectrwatson2012-01-041-4/+5
| | | | | | | | | | | | reality: 1. Only 12-bit VLAN Identifiers, not full 16-bit VLAN tags can be set using ifconfig vlan. 2. When we mean VLAN Identifiers, spell it that way, rather than as VLAN tag. MFC after: 3 days Sponsored by: Adara Networks, Inc.
* Allow toggling of IFCAP_VLAN_HWCSUM for hardware that supports checksumbz2011-12-171-3/+3
| | | | | | | offloading on vlans and document the new option. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* A major overhaul of the CARP implementation. The ip_carp.c was startedglebius2011-12-161-11/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from scratch, copying needed functionality from the old implemenation on demand, with a thorough review of all code. The main change is that interface layer has been removed from the CARP. Now redundant addresses are configured exactly on the interfaces, they run on. The CARP configuration itself is, as before, configured and read via SIOCSVH/SIOCGVH ioctls. A new prefix created with SIOCAIFADDR or SIOCAIFADDR_IN6 may now be configured to a particular virtual host id, which makes the prefix redundant. ifconfig(8) semantics has been changed too: now one doesn't need to clone carpXX interface, he/she should directly configure a vhid on a Ethernet interface. To supply vhid data from the kernel to an application the getifaddrs(8) function had been changed to pass ifam_data with each address. [1] The new implementation definitely closes all PRs related to carp(4) being an interface, and may close several others. It also allows to run a single redundant IP per interface. Big thanks to Bjoern Zeeb for his help with inet6 part of patch, for idea on using ifam_data and for several rounds of reviewing! PR: kern/117000, kern/126945, kern/126714, kern/120130, kern/117448 Reviewed by: bz Submitted by: bz [1]
* Bump date.adrian2011-11-121-1/+1
|
* Add documentation for the new quiet time IE options.adrian2011-11-121-0/+32
| | | | | Submitted by: Himali Patel <himali.patel@sibridgetech.com> Sponsored by: Sibridge Technologies
* - Document inet6 no_radr flag.hrs2011-09-191-1/+26
| | | | | | | - Add descriptions of sysctl(8) variables which can control the default configuration of the inet6 flags. Approved by: re (kib)
* Add infrastructure to allow all frames/packets received on an interfacebz2011-07-031-1/+14
| | | | | | | | | | | | | | to be assigned to a non-default FIB instance. You may need to recompile world or ports due to the change of struct ifnet. Submitted by: cjsp Submitted by: Alexander V. Chernikov (melifaro ipfw.ru) (original versions) Reviewed by: julian Reviewed by: Alexander V. Chernikov (melifaro ipfw.ru) MFC after: 2 weeks X-MFC: use spare in struct ifnet
* Conditionally compile in the af_inet and af_inet6, af_nd6 modules.bz2011-05-311-4/+6
| | | | | | | | | | | | | | | | | | | | | If compiled in for dual-stack use, test with feature_present(3) to see if we should register the IPv4/IPv6 address family related options. In case there is no "inet" support we would love to go with the usage() and make the address family mandatory (as it is for anything but inet in theory). Unfortunately people are used to ifconfig IF up/down etc. as well, so use a fallback of "link". Adjust the man page to reflect these minor details. Improve error handling printing a warning in addition to the usage telling that we do not know the given address family in two places. Reviewed by: hrs, rwatson Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC after: 2 weeks
* Correct 'list scan' description in the examples. The previous descriptiongjb2011-04-061-1/+1
| | | | | | | | | was incorrect - 'list scan' does not actually do a scan, but instead lists the results of the background 'scan' cache. Submitted by: Fabian Keil (freebsd-listen of fabiankeil de) (via email) Discussed with: bschmidt MFC after: 3 days
* Bump date from previous commit.gjb2011-03-211-1/+1
|
* Use 'list scan' in favor of 'scan', as 'scan' has a different purpose.gjb2011-03-201-1/+1
| | | | | Pointed out by: bschmidt MFC after: 1 day
* Remove unneeded newline.gjb2011-03-121-1/+0
| | | | MFC after: 1 week
* Add example of using 'scan' for wireless networks, similarly togjb2011-03-121-0/+4
| | | | | | | | OpenBSD's ifconfig(8). PR: 151952 Submitted by: Jared (rhyous of yahoo com) MFC after: 1 week
* Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whilejoel2010-08-161-5/+5
| | | | | | translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
* Fix typos and spelling mistakes.joel2010-08-061-2/+2
|
* Spelling fixes.joel2010-07-311-4/+4
|
* Document the 'short preamble' capability for 802.11bg.bz2010-05-141-1/+9
| | | | | Reviewed by: sam MFC after: 4 days
* Bump man page date.rpaulo2010-04-281-1/+1
|
* Fix typos.rpaulo2010-04-281-2/+2
| | | | Obtained from: DragonFlyBSD
* Add TSO support on VLAN in fconfig(8).yongari2010-02-201-7/+7
| | | | Reviewed by: thompsa
* Revised revision 199201 (add interface description capability as inspireddelphij2010-01-271-1/+11
| | | | | | | | by OpenBSD), based on comments from many, including rwatson, jhb, brooks and others. Sponsored by: iXsystems, Inc. MFC after: 1 month
* Revert revision 199201 for now as it has introduced a kernel vulnerabilitydelphij2009-11-121-11/+1
| | | | and requires more polishing.
* Add interface description capability as inspired by OpenBSD.delphij2009-11-111-1/+11
| | | | MFC after: 3 months
* Fix several logic bugs in the previous IPv6 variable change andhrs2009-09-261-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | re-add $ipv6_enable support for backward compatibility. From UPDATING: 1. To use IPv6, simply define $ifconfig_IF_ipv6 like $ifconfig_IF for IPv4. For aliases, $ifconfig_IF_aliasN should be used. Note that both variables need the "inet6" keyword at the head. Do not set $ipv6_network_interfaces manually if you do not understand what you are doing. It is not needed in most cases. $ipv6_ifconfig_IF and $ipv6_ifconfig_IF_aliasN still work, but they are obsolete. 2. $ipv6_enable is obsolete. Use $ipv6_prefer and/or "inet6 accept_rtadv" keyword in ifconfig(8) instead. If you define $ipv6_enable=YES, it means $ipv6_prefer=YES and all configured interfaces have "inet6 accept_rtadv" in the $ifconfig_IF_ipv6. These are for backward compatibility. 3. A new variable $ipv6_prefer has been added. If NO, IPv6 functionality of interfaces with no corresponding $ifconfig_IF_ipv6 is disabled by using "inet6 ifdisabled" flag, and the default address selection policy of ip6addrctl(8) is the IPv4-preferred one (see rc.d/ip6addrctl for more details). Note that if you want to configure IPv6 functionality on the disabled interfaces after boot, first you need to clear the flag by using ifconfig(8) like: ifconfig em0 inet6 -ifdisabled If YES, the default address selection policy is set as IPv6-preferred. The default value of $ipv6_prefer is NO. 4. If your system need to receive Router Advertisement messages, define "inet6 accept_rtadv" in $ifconfig_IF_ipv6. The rc(8) scripts automatically invoke rtsol(8) when the interface becomes UP. The Router Advertisement messages are used for SLAAC (State-Less Address AutoConfiguration).
* Document accept_rev_ethip_ver and send_rev_ethip_ver flags ofhrs2009-09-121-0/+19
| | | | | | EtherIP (gif(4) + if_bridge(8)). MFC after: 3 days
* Improve flexibility of receiving Router Advertisement andhrs2009-09-121-9/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | automatic link-local address configuration: - Convert a sysctl net.inet6.ip6.accept_rtadv to one for the default value of a per-IF flag ND6_IFF_ACCEPT_RTADV, not a global knob. The default value of the sysctl is 0. - Add a new per-IF flag ND6_IFF_AUTO_LINKLOCAL and convert a sysctl net.inet6.ip6.auto_linklocal to one for its default value. The default value of the sysctl is 1. - Make ND6_IFF_IFDISABLED more robust. It can be used to disable IPv6 functionality of an interface now. - Receiving RA is allowed if ip6_forwarding==0 *and* ND6_IFF_ACCEPT_RTADV is set on that interface. The former condition will be revisited later to support a "host + router" box like IPv6 CPE router. The current behavior is compatible with the older releases of FreeBSD. - The ifconfig(8) now supports these ND6 flags as well as "nud", "prefer_source", and "disabled" in ndp(8). The ndp(8) now supports "auto_linklocal". Discussed with: bz and jinmei Reviewed by: bz MFC after: 3 days
* Implementation of the upcoming Wireless Mesh standard, 802.11s, on therpaulo2009-07-111-1/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | net80211 wireless stack. This work is based on the March 2009 D3.0 draft standard. This standard is expected to become final next year. This includes two main net80211 modules, ieee80211_mesh.c which deals with peer link management, link metric calculation, routing table control and mesh configuration and ieee80211_hwmp.c which deals with the actually routing process on the mesh network. HWMP is the mandatory routing protocol on by the mesh standard, but others, such as RA-OLSR, can be implemented. Authentication and encryption are not implemented. There are several scripts under tools/tools/net80211/scripts that can be used to test different mesh network topologies and they also teach you how to setup a mesh vap (for the impatient: ifconfig wlan0 create wlandev ... wlanmode mesh). A new build option is available: IEEE80211_SUPPORT_MESH and it's enabled by default on GENERIC kernels for i386, amd64, sparc64 and pc98. Drivers that support mesh networks right now are: ath, ral and mwl. More information at: http://wiki.freebsd.org/WifiMesh Please note that this work is experimental. Also, please note that bridging a mesh vap with another network interface is not yet supported. Many thanks to the FreeBSD Foundation for sponsoring this project and to Sam Leffler for his support. Also, I would like to thank Gateworks Corporation for sending me a Cambria board which was used during the development of this project. Reviewed by: sam Approved by: re (kensmith) Obtained from: projects/mesh11s
* Add the "vnet" and "-vnet" options, to allow moving interfaces betweenjamie2009-06-241-1/+14
| | | | | | jails with VIMAGE. Approved by: bz (mentor)
* TDMA support for long distance point-to-point links using ath devices:sam2009-01-081-1/+61
| | | | | | | | | | | | | | | o add net80211 support for a tdma vap that is built on top of the existing adhoc-demo support o add tdma scheduling of frame transmission to the ath driver; it's conceivable other devices might be capable of this too in which case they can make use of the 802.11 protocol additions etc. o add minor bits to user tools that need to know: ifconfig to setup and configure, new statistics in athstats, and new debug mask bits While the architecture can support >2 slots in a TDMA BSS the current design is intended (and tested) for only 2 slots. Sponsored by: Intel
* Tiny wording nits.keramida2008-10-191-4/+5
| | | | MFC after: 1 week
* o Typo fixes.maxim2008-10-051-2/+2
| | | | | PR: docs/127866 Submitted by: Marius Korsmo
OpenPOWER on IntegriCloud