Linux - basic network settings

  • Personal profile: Cloud computing network operation and maintenance professionals, understand operation and maintenance knowledge, master TCP/IP protocol, share network operation and maintenance knowledge and skills every day.
  • Motto: The sea does not shy away from water, so it can become big; the mountain does not shy away from stones, so it can grow taller.
  • Personal homepage: Xiaolihui Technology's homepage 

 Foreword:

In the Linux system, network settings are a very important task, which can help you connect your computer to the Internet and provide network services. In Linux, you can configure network settings through the command line interface, which requires some basic network knowledge and skills. When making network settings, you need to understand some common network setting commands and know how to use them to configure network interfaces, IP addresses, gateways, DNS, and more. At the same time, you need to understand some basic network concepts, such as IP address, subnet mask, gateway, DNS, etc., which will help you better understand and configure the network. In short, before making network settings, please make sure you have some basic network knowledge and skills.

 

 1. Command introduction

  • .View network interface information: ifconfig network interface name
  • View hostname: hostname
  • View or set the routing table information in the host: route [-n]
  • View network connection status: netstat *****
  • Test network connectivity: ping
  • Tracer packets: traceroute
  • Domain name resolution: nslookup
  • Disable or reactivate network card: ***
  • ifconfig network interface up
  • ifconfig network interface down
  • (ifdown   ens33;ifup   ens33)
  • Domain name resolution configuration file: /etc/resolv.conf

 2. Theoretical Analysis

Subnet: network segment statement, which acts on the entire subnet segment
     host host statement, acts on a single host
ens33: Ethernet card name *****
     lo: "loopback" network interface
     virbr0: connection interface of the virtual bridge

Words:
dafault default delete delete
local local


1. The service is suddenly terminated
. Check the service, process and configuration file
. 2. The space is full.
Clear some useless data. To prevent data loss, make a planned backup

3. Basic network introduction

Linux basic network refers to the basic network knowledge and skills used in the Linux system. The Linux system is a UNIX-based operating system, which is widely used in servers, embedded systems and other fields, as well as more and more desktop applications. For computer network applications, the Linux system also provides a wealth of support and applications. 

"Success is not accidental, but requires your persistence and unremitting efforts for many years."
Thank you for your support and attention to favorites~~Welcome to CSDN
 

 

Guess you like

Origin blog.csdn.net/m0_64292323/article/details/131145410