ifconfig -a
The interface parameter is the name of the network interface. The name is of the form en for Ethernet interfaces, fn for FDDI interfaces, and an for ATM interfaces, possibly followed by a letter, where n is 0 for on-board network interfaces and the expansion slot number for network interfaces plugged into expansion slots. If a card in an expansion slot has more than one network interface, the network interface name will be followed by a letter, indicating which of the network interfaces on that card it is. The network interface name vh is used to specify IP virtual host addresses associated with the filer. Only alias addresses (using the alias option) may be assigned to the vh interface. The network interface name -a is special and it does not take any optional parameters. It displays the current configuration for all the network interfaces present.
The address is either a host name present in the host name data base /etc/hosts or an Internet address expressed in the Internet standard dot notation.
broadcast address
Specifies the address to use to
represent broadcasts to the network.
The default broadcast
address is the address with a host
part of all 1's.
May not be applied to a network interface which is part of a vif.
mediatype type Specifies the Ethernet media type used.
10/100, 100/1000, and 10/100/1000 Mbps Copper Interfaces: Depending on the physical specifications of the Ethernet card the acceptable types are "tp" (Half-duplex 10BaseT RJ-45 twisted-pair), "tp-fd" (Full duplex 10Base-T RJ-45 twisted-pair), "100tx" (Half-duplex 100Base-T RJ-45 twisted-pair), "100tx-fd" (Full duplex 100Base-T RJ-45 twisted-pair), and "auto" (Auto RJ-45 twisted-pair).
The default media type is set to "tp" or to "auto" where applicable.
On an auto-negotiable interface, the system will auto-negotiate the speed and duplex of the link and set the network interface accordingly when it is configured up. If the other end does not support auto-negotiation and full duplex operation is desired, it must be explicitly set using the mediatype command.
All 1000Base-T devices support autonegotiation and the speed cannot be explicitly set to 1000 Mbps. At 1000 Mbps, the interface only operates in full-duplex mode.
1000 Mbps Fiber Interfaces: The Gigabit Ethernet Controllers only support the mediatype "auto". If the interface detects that the link partner auto-negotiates, then the operational flow control setting is negotiated. If the interface detects that the link partner does not auto-negotiate, then it uses the flow control setting configured through the flowcontrol option or the default value for the interface. The Gigabit Ethernet Controllers only support full-duplex.
On 100/1000 and 10/100/1000 Mbps interfaces operating at 10 or 100 Mbps, the system may override the configured setting with "receive" or "none" because most 10 and 100 Mbps devices don't support flow control. In half-duplex mode, the system always disables flow control. Use the ifstat command to see the operational setting.
Not supported on Virtual interfaces (vif) interfaces.However the underlying interfaces can be modified with this option.
The MTU size does not include the media header or FCS (checksum). However, other vendors may include the 14-byte Ethernet media header, the 4-byte FCS, or a 4-byte VLAN tag when specifying their jumbo frame size.
May not be applied to a network interface which is part of a vif.
prefixlen len (Inet6 only) Specify that len bits are reserved for subdividing networks into sub-networks. The len must be integer, and for syntactical reason it must be between 0 to 128. It is almost always 64 under the current IPv6 assignment rule. If the parameter is ommitted, 64 is used.
partner address Applies only to filers in a cluster. It maps a network interface to address, which is an IP address on the partner and is referred to as the partner IP address. If the network interface being configured is a virtual interface then the partner interface must be denoted by an interface name and not an IP address. In takeover mode, this network interface assumes the identity of the network interface on the partner, whose IP address is address. For example, toaster1 and toaster2 are filers in a cluster. If the IP address of e8 on toaster2 is 198.9.200.38, use the following command on toaster1 if you want e1 of toaster1 to assume the identity of e8 of toaster2 for the duration of a takeover:
ifconfig e1 partner 198.9.200.38
Be sure that both the local network interface and the partner's network interface are attached to the same network segment or network switch. Otherwise, after takeover, clients of the failed filer might need to wait an indeterminate amount of time for routing tables to flush before being able to access the data on the failed filer.
An ATM ELAN interface cannot assume the identity of a partner interface. Instead, a LANE partner is configured for an ATM adapter using the partner interface option, as described under CLUSTER CONSIDERATIONS.
May not be applied to a network interface which is part of a vif.
partner interface
Applies only to filers in a cluster.
It maps a network interface to
interface, which is an interface on
the partner. If the network interface
being configured is a virtual
interface then interface must refer
to a virtual interface on the partner
filer.
May not be applied to a network interface which is part of a vif.
A dedicated network interface for the local filer whether or not the filer is in takeover mode. A network interface performs this role if it has a local IP address but not a partner IP address, which you can assign by the partner option of the ifconfig command. An ATM ELAN interface can only perform the role of a dedicated interface, and an ATM adapter interface configured for LANE can be a dedicated interface if ELANs have been configured on it, but it has no partner ATM adapter.
A shared network interface for both the local filer and the partner. That is, if the partner fails, the network interface assumes the identity of a network interface on the partner but works on behalf of both the live filer and the partner. A network interface performs this role if it has a local IP address and a partner IP address, which you assign by the partner option of the ifconfig command. An exception to this is an ATM adapter interface configured for LANE -- it performs the role of a shared interface if ELANs have been configured on it, and it has a partner ATM adapter.
A standby network interface for the partner. That is, if the partner fails, the network interface works on behalf of the partner. When the filer is not in takeover mode, the network interface is idle. A network interface performs this role if it does not have a local IP address but a partner IP address, which you assign by the partner option of the ifconfig command. An exception to this is an ATM adapter interface configured for LANE -- it performs the role of a standby interface if no ELANs have been configured on it, but it has a partner ATM adapter.
The filer maps a partner IP address to a shared or standby interface when the filer initiates a takeover operation. In takeover mode, all requests destined for the partner IP address are serviced by the shared or standby interface. Also, in partner mode, if a command takes a network interface name as an argument, enter the network interface name of the failed filer. The command is executed on the shared or standby interface on the live filer. Similarly, in partner mode, a command for displaying network interface information displays the network interface name of the failed filer, even though the command is serviced by the shared or standby interface on the live filer.
To facilitatseamless transition, the partner interfaces broadcast gratuitous ARPS so that all clients may update their arp caches.
On ATM, partner interfaces are configured independently for LANE and for ForeIP/SPANS. A SPANS partner interface is configured through its IP address, as described above, except that a SPANS interface cannot be a shared interface.
An ELAN interface cannot be a shared or standby interface. Instead, for LANE, an ATM adapter can be configured as a dedicated interface, a standby interface, or a shared interface. The LANE partner for an ATM adapter is configured by specifying the partner option followed by the ATM adapter interface on the partner. On takeover, the ELANs on the partner adapter will be configured on the adapter of the takeover host. When an ATM adapter is a shared interface, a given ELAN cannot be configured more than once on the adapter after takeover. This means that if both filers in a cluster pair are on the same ELANs, each filer would need a minimum of two ATM adapters to support full takeover.
ELAN interfaces are only displayed in the context of the owning filer (the takeover host or the partner), and in the partner context both the adapter and ELAN interface names are those of the failed filer.
In takeover mode, attempting to "ifconfig down" an interface that has taken over an interface of the failed filer only marks the interface down for the live filer. To take the interface down completely, the "ifconfig down" command must also be executed in partner mode. These state distinctions are indicated by the UP and PARTNER_UP flags (shown by ifconfig) associated with each interface.
These ifconfig options are not available in partner mode: partner, -partner, and mtusize.
The autoconf keyword indicates that an IPv6 address is obtained via stateless autoconfiguration.
The /etc/rc file on toaster1 is as follows:
ifconfig e0 192.9.200.37 ifconfig e1 192.9.200.38 partner 192.9.200.41 ifconfig e2 partner 192.9.200.42
ifconfig e7 192.9.200.42 ifconfig e8 192.9.200.41 partner 192.9.200.38 ifconfig e9 partner 192.9.200.37
The e1 interface on toaster1 is a shared interface. It services requests for address 192.9.200.38 when toaster1 is not in takeover mode. When toaster1 is in takeover mode, the network interface services requests for both addresses 192.9.200.38 and 192.9.200.41. When toaster1 is in partner mode, this network interface shows up as the e8 interface in commands that involve network interface names.
The e2 interface on toaster1 is a standby interface. It does not service any request when toaster1 is not in takeover mode. However, after toaster1 takes over toaster2, this network interface services requests for address 192.9.200.42. When toaster1 is in partner mode, this network interface shows up as the e7 interface in commands that involve network interface names.
Example 2: A cluster contains two filers, mixer1 and mixer2. Both filers are configured identically, with ELANs engr and mktg on ATM interface a4 and ELAN mfg on ATM interface a5.
The following /etc/rc file on mixer1 contains the following commands:
ifconfig a4 partner a5 ifconfig a5 partner a4
Copyright © 1994-2007 Network Appliance. Legal Information