A linux system network related commands: network configuration files in /etc/sysconfig/network-scripts/*.
mii-tool -v View the specific parameters of the network card.
ethtool
lscpu , lsusb , lsblk, lspci -v View information about each hardware.
1. ifconfig eth0 ip_address netmask net_mask Modify the ip address and subnet mask of the NIC
2. ifconfig eth0 ip_address/24 Configure ip address and subnet mask
3. ifconfig eth0 down/up Disable the NIC, do not reload the NIC configuration file /etc/sysconfig/network-scripts/ifcfg-eth0
4.ifconfig eth0 hw ether MAC_Address Configure the MAC address
5. ifconfig eth0:1 IP_Address Configure Virtual Network Interface
6. iwconfig Configure the wireless network card.
7. arp -n View arp table
8. arp -s Ip_address Mac_address Statically bind MAC address
9. route -n View routing table
10. traceroute traceroute
2: Configure the Linux system as a router Step:
1. Enable route forwarding:
a. sysctl -w net.ipv4.ip_forward=1 The route forwarding function is temporarily valid and the restart is invalid.
b. echo 1 > /proc/sys/net/ipv4/ip_forward Temporarily valid, suitable for scripts.
c. Modify the /etc/sysctl.conf file and change the value of the net.ipv4.ip_forward variable to 1. Enter sysctl -p to restart the configuration file.
2. Add default routes and static routes
a. route add default gw IP_address Add a default route.
b. route del default Delete default route
c. route add -net network address gw IP_address Add a static route.
d. route del -net Network address gw Ip_address Delete static route
e. vi /etc/sysconfig/network-scipts/route-eth0 Then add the static route format to the file as follows:
network/24 via IP_address This addition method is a permanent static route.
Three: The solution to the virtual machine cloning network card failure.
1. Empty the contents of the /etc/udev/rules.d/70-persistent-net.rules file.
2. Delete the /etc/sysconfig/network-scipts/ifcfg-ethX file.
3.Re-add the network card
Yesterday I received the zabbix alarm email, the usage rate of a servers /home directory re
Use yum to install the scheduled task function. The result is prompted:
Copy the code
The code is as follows:
# yum -y install vixie-cron
Loaded plugins: fastestmirror, refresh-pa
Grep yum root 6744 0.0 0.0 103260 900 pts/1 S+ 14:59 0:00 grep yum root 25960 0.0 0.0 0 0 ? Z Sep19
1, role: list the contents of the directory; 2, format: ls [options] [files] [options] is
Basic minimalist directory file after successful production First, the basic boot process of the s
Two-line server routing setting method under centos
PCI device driver development under Linux
Linux common users camouflage root users
Character encoding and conversion tool for files under GnuLinux
Linux command (in the use of -a, -o, not in find)
Linux pipeline and redirection detailed
The difference between buffer and cache in linux free command
Linux study notes - SSH password-free login
File archiving, compression, and decompression of Linux commands - tar, gzip, gunzip, bzip2, bunz
Redhat/Centos NIC binding basic tutorial
Win7 desktop turned message board
Win8 system "the fastest in the history" shutdown method
The most effective way to lose weight for Windows XP
Linux download artifact aMule installation tutorial
How to log in to WeChat computer version without scanning QR code?
Windows 8 system comes with Microsoft Pinyin simple input method can not be deleted solution
Modify the default installation directory under Windows 7
The simple method of installing the Chinese upgrade package for the Win10 system English version