: Ping www.baidu.com)4. If the ifconfig command is still not supported, you will need to install the Net-tools tool[Root@localhost ~]# cd/sbin [Root@localhost sbin]# ls Check to see if there isifconfigNo ifconfig , install it.net-tools package[Root@localhost sbin]# sudo yum install net-tools-y Refer to Centos7:ifconfig command not found to resolveAfter the instal
server and discover that the port is occupied, you can use Lsof-i:port to see which process the corresponding port number is being occupied by. Port occupancy is a very common problem, such as 3306 of the time that I've met several times, either because a program is just taking up or not being able to end the process before, which can help you see the port with Lsof.
Modify Permissions: chmod
chmod/index.html.
Can modify the file permissions, which is set to 00
because The routing table only allows numbers, and some network cards are eth1 eth2 but some network cards are p2p1 p2p2 and so on. So just take the numbers.> IP route flush table 12$tn; emptying the routing table 12$tn> IP route add default via ' ifconfig $p |grep "inet addr" |cut-d:-f2 |cut-d ""-f1 | Cut-d "."-f1,2,3 '. 254 dev $p src ' ifconfig $p |grep "inet addr" |cut-d:-f2 | Cut-d ""-f1 ' table 12$tn
program. such as: MKE2FS, Ifconfig and so on./usrThis directory is the largest disk space in the Linux system directory, the directory has many applications, his subdirectory is also more complex, and there are many differences between the system, I will introduce it in the next table./devAll the files under this directory are special files, and the Linux system
and simple, the pursuit of code minimization, software updates faster3, describe the philosophy of Linux, and according to their own understanding of its interpretation of the description. 1, all documents: almost all of the resources are abstracted into the form of documents, including hardware equipment, and even communication interface, etc. 2, small, by a number of functions of a single program, a program only do one thing, and do a good job, thr
Chapter 1 Preface The purpose of this article is to introduce the general process of establishing and developing an embedded Linux system. A small Linux system can be transplanted to other hard disks, floppy disks, USB disks, and Flash ROM ......
What should I do to build an embedded Linux system? That is, what is the content of this article? I will first introdu
[Programming in linux] ARP programming and linux arp Programming
(Note: This part is taken from "Linux C Programming one-stop learning")
Ethernet (RFC 894) frame format
Figure 1 Ethernet packet type
The source address and destination address are the hardware address (also called the MAC address) of the network card. The length is 48 bits and is fixed at the fact
Network hardwareLinux can use any network hardware that has a driver. Linux drivers are compiled into the kernel individually or as loadable modules. The Linux kernel supports many popular NICs by default. When selecting network hardware, it is best to always use the devices listed in the Hardware Compatibility List (see Resources for links). Also use the latest Linux
Linux Nic configuration file settings 1. configuration file www.2cto.com/etc/hosts (the local host IP address ING can have multiple aliases ). /Etc/services (correspondence between Port numbers and standard services ). /Etc/sysconfig/network (set the host name, Gateway ,...
Linux Nic configuration file settings 1. configuration file www.2cto.com/etc/hosts (local host IP address ING, can have multiple aliase
Shell: A Unix shell written for the GNU program, the default shell for many Linux distributionsC Shell: Is the BSD version of Sun's shell.Z Shell: It integrates the important features of bash and ksh, while adding its own unique features.
There are a lot of traditional Unix shells, such as tcsh, CSH, Ash, BSH, Ksh, and so on, shell scripts are roughly the same, and when you learn a shell, the other shells quickly get started, most of the time, a
philosophy of Linux and explain it according to your own understanding.1. All files: almost all resources are abstracted as files, including hardware devices and even communication interfaces. 2. Small files are composed of multiple single-functional programs, A program only does one thing and completes the complex tasks by combining small programs. 3. Avoid interacting with users as much as possible and implement automated tasks by programming; 4. U
Guide
The most important and basic Linux Network command collection that aspiring Linux system administrators and Linux enthusiasts must know. At It's FOSS we are not talking about the "command line aspect" of Linux every day. Basically, I'm more focused on the desktop side of
Article title: Network Management-Linux system network configuration details. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. View IP Ifconfig
2. IP address configuration method:
First, Linux basic network configuration
1. Use the ifconfig command to view network interface information
ETH: The name of the first network card
Lo:loopback abbreviation, "Loopback" network interface
To view basic network adapter configuration information:
1.) Hwaddr: Physical MAC address of the network interface
2.) Inet Addr:ip Address
3.) Bcast: Broadcast address
4.) Mask: Mask for network inte
Basic Linux Network commands, you deserveGuideAmbitious Linux system administrators and Linux enthusiasts must know the most important and basic collection of Linux Network commands. In It's FOSS, we don't talk about Linux's "command line" every day ". Basically, I focus more on Li
In Linux, there are three main methods to configure the network environment in linux: (1) Use setup to enter the configuration environment to configure the network; (2) use ifconfig to configure the network (3) the following describes how to directly modify the underlying network configuration file: Method 1: configure the network through setup...
In
the syntax in the following format:Traceroute website(9) NetstatThe netstat command is used to display network-related information , where the path is/bin/netstat, with the syntax in the following format:netstat [options]where the-t option represents the TCP protocol, the-U option represents the UDP protocol,-L for listening,-R for routing, and-n for displaying the IP address and port number .such as: view the local listening port-----netstat-tlunView all network connections on this computer---
in the/etc/pam. d/su configuration file.
(66) How to bind multiple IP addresses to a network card.
In Linux, a network card supports a maximum of 256 IP addresses. Run the following code:
# Cd/etc/sysconfig/network-scripts
# Cp ifcfg-eth0 ifcfg-eth0: 1
# Vi ifcfg-eth0: 1
Modify the IP address and device name.
(67) commands for clearing ARP tables in Linux.
# Arp-d-a (applicable to BSD)
ForHOSTinarp | sed '
Linux network settings (version 2) and linux Version 2Linux network settings-network configuration file and command network configuration file
1./etc/sysconfig/network-scripts/ifcfg-eth0 # [Save the IP address and gateway]
[Set static IP addresses]
IPADDR = new IP address # This option sets the IP address. If BOOTPROTO = dhcp is set and the IP address is automatically obtained, this option is not available.
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.