In linux, ifconfigifconfig is a command used to display or configure network devices. Syntax ifconfig [network device] [downup-allmulti-arp-promisc] [add & lt; address & gt;] [del & lt; address & gt;] [& lt; hardware Address & gt;] [media & lt; network media type & gt;] ifconfig is a command used to display or configure network devices in linux. Syntax ifconfig [network device] [down up-allmulti-arp-promisc] [add <地址> ] [Del <地址> ] [ <硬件地址> ] [Media <网络媒介类型> ] [Mem_start <内存地址> ] [Metric <数目> ] [Mtu <字节> ] [Netmask <子网掩码> ] [Tunnel <地址> ] [-Broadcast <地址> ] [-Pointopoint <地址> ] Www.2cto.com simple syntax: ifconfig [interface] [up | down]; observing and starting the ifconfig interface [options]; setting and modifying the parameters: interface: network device, for example, eth0 (Nic 1), eth1 (Nic 2), and ppp0 (Point to Point Protocol 0. Options: optional parameters: down, up: down, start (up) the device. Mtu: you can set different MTU values. MTU = Maximum TransmissionUnit. For example, mtu 1500 metric: www.2cto.com netmask: sets the subnet mask of the network device. Tunnel: establishes a tunnel communication address between IPv4 and IPv6. Broadcast: the data packets to be sent to the specified address are processed as broadcast data packets. Example (in ubuntu). For example, you can enter ifconfig to list all started Nics. lo indicates the local circuit. Eth0: Nic 1 code: HWaddr: Nic physical address inet addr: IPv4 address. Bcast is broadcast and Mast is netmask. Inet6 addr: IPv6 address, not used at the moment
MTU: the maximum transmission unit. set this parameter to 1500 bytesMetrics: specify the number of incoming packets. RX: This line indicates the packets received from the Network Startup till now, packet indicates the number of packets, error indicates the number of errors in the packets, and dropped indicates the number of discarded packets due to problems. TX: opposite to RX, which indicates the packets sent from the network startup to the present. Collisions: indicates a packet collision. if the packet is sent too many times, the network condition is not good. Txqueuelen: indicates the storage length of the buffer for data transmission. RX bytes, TX bytes: total number of sent and received tuples.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service