Linux self-study note--linux Network configuration, basic network commands

Source: Internet
Author: User

1. Network Configuration/etc/sysconfig/net-script/ifcfg-*

DEVICE: Interface Name

UUID: Device Unique indication

HWADDR: Network card Address

Onboot: Does the boot start

Bootproto:static|none|dhcp

Type:ethernet| Bridge

Dns1:dns Address

Peerdns: If the DNS address is automatically assigned to DHCP mode, override manual

Ipaddr:ip Address

NETMASK: Subnet Mask

Gateway: Gateways Address

2. Common network commands

Ip:

IP link Show

IP link Set device up|down:

IP addr Show

IP addr add|del ipaddr/netmask dev Device

IP Route Show

IP route Add|del default|ipaddr/netmask via Gateway

Ss:ss-tnlp

21:ftp 22:ssh 23:telnet 42:nameserver 80:http

123:NTP 443:htps

Ping:-I send period-C send number

Curl

Curl-u user:passwd-o ftp://... Download from FTP

Curl-u user:passwd-t./file ftp://... Upload

Curl-x PURGE IP Specifies the protocol to send, such as sending a custom PURGE to varnish

SCP:SCP./file [Email Protected]:/path/file

Tcpdump

tcpdump tcp|udp|icmp-i Device host hostname and prot port

Linux self-study note--linux Network configuration, basic network commands

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.