📄 ifconfig.8c
字号:
.\" SCCSID: @(#)ifconfig.8c 3.1 11/24/87.TH ifconfig 8c.SH Nameifconfig \- configure network interface parameters.SH Syntax.B /etc/ifconfig.I interface[.I address[.I dest_address] ] [.I parameters].SH Description.NXR "ifconfig command" "description".NXR "network interface" "configuring parameters"The.PN ifconfigcommand assigns an addressto a network interface and/or configuresnetwork interface parameters.You must use.PN ifconfigat boot time to define the network addressof each interface present on a machine. You can also use it at a later time to redefine an interface's address. The.I interfaceparameter is a string of the form: name, unit, for example, en0. .NXR "ifconfig command" "interface parameter"The address is either a host name present in the host name database, .MS hosts 5 ,or a DARPA Internet address expressed in the Internet standarddot notation..SH ArgumentsYou can set the following parameters with .PN ifconfig:.NXR "ifconfig command" "arguments".IP up 10Marks an interface up..IP down 10Marks an interface down. When an interface ismarked down, the system does not attempt totransmit messages through that interface. .IP trailers 10Enables the use of a trailer link level encapsulation whensending. If a network interface supports.IR trailers ,the system, when possible, encapsulates outgoingmessages in a manner that minimizes the number ofmemory-to-memory copy operations performed by the receiver..sp .5Although .I trailersis the default on some network interfaces, the use of trailers is not recommended;failures in trailer negotiation can disruptnetwork transmissions.See .IR \-trailers ..IP \-trailers 10Disables the use of a trailer link level encapsulation.This is the recommended setting..IP promisc 10Enables the use of the .MS packetfilter 4 in the promiscuousmode. The promiscuous mode allows the network interface to receiveall the packets off the wire and pass it onto to thepacket filter. ./"Protocols normally handled by Data Link Interface (DLI)./"will fail to receive any traffic while the interface is operating./"in the promiscuous mode. For example, one cannot run./"DECnet if operating in the promiscuous mode..IP \-promisc 10Disables the promiscuous mode of the packet filter. This isthe default..IP \fB+copyall\fR 1iSets the interface into copy-all mode(receives packets sent/received by the kernel-resident protocolsoftware [for example, IP, ARP, DECnet, LAT] on this host)..IP \fB\-copyall\fR 1iDisables copy-all mode. (See .MS pfconfig 8cfor more information aboutut the.PN copyallflag.).IP arp 10Enables the use of the Address Resolution Protocol in mappingbetween network level addresses and link level addresses. Thisis the default. This is currently implemented for mapping betweenDARPA Internet addresses and 10Mb/s Ethernet addresses..IP \-arp 10Disables the use of the Address Resolution Protocol..IP debug 10Enables driver-dependent debugging code. Usually, this turns onextra console error logging..IP \-debug 10Disables driver dependent debugging code..IP netmask 10Specifies how many bits of the address you wish toreserve for subdividing Class A and B networksinto sub-networks. (Inet only)..IP dstaddr 10Specifies the correspondent on the other end ofa point to point link..IP broadcast 10Specifies the address you wish to use torepresent broadcasts to the network..PPThe.PN ifconfigcommand displays the current configuration for a network interfacewhen no optional parameters are supplied..PPOnly the superuser can modify the configuration of a network interface..SH Diagnostics.NXR "ifconfig command" "diagnostics"The .PN ifconfig command returns messages indicating the specified interface does notexist, the requested address is unknown, the user tried to alter an interface's configurationbut is not privileged..SH See Alsonetstat(1), intro(4n), packetfilter(4), MAKEDEV(8),pfconfig(8c), pfstat(8),rc(8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -