If you want to learn about Linux, learn some about Linux. This article explains the Linux network address configuration for you. I hope you can understand the Linux network address configuration. Let's talk about this in detail.
1. Shut down and open the network port:
Open port 81:
iptables -I INPUT -i eth0 -p tcp --dport 81 -j ACCEPT
iptables -I OUTPUT -o eth0 -p tcp --sport 81 -j ACCEPT
Close port 81:
iptables -I INPUT -i eth0 -p tcp --dport 81 -j DROP
iptables -I OUTPUT -o eth0 -p tcp --sport 81 -j DROP
2. Shut down and open the physical port
UP: ifconfig eth0 Up
DOWN: ifconfig eth0 down
or
/sbin/ifup eth0
/sbin/ifdown eth0
/sbin/Ifup ifdown is a symbolic link to /etc/sysconfig/network-scripts/ifup down
3. Configuration of network address
a.ifconfig eth0 xxxx netmask xxxx broadcast xxx
b. Configure the ifcfg-xx file
by configuration file
/etc/sysconfig/network-scripts/For example: ifcfg-eth0
If you want Configure multiple addresses on a NIC, the configuration file is ifcfg-eth0:1, ifcf G-eth0:2, etc.
c. Restart the network service, /etc/init.d/network restart or service network restart
This makes it easy to configure the Linux network address.
KVM: Kernel-based Virtual Machine is an open source virtualization solution based on the Linux kerne
I believe that many users who use Linux systems will feel that command line operations are faster th
One of the best things about Linux is that you can go deep into the operating system to explore how
The icons in the upper left corner of Windows 7 Explorer are Favorites, Desktops, and various Librar
Two measures to remedy the Linux system swap partition is too small
U disk Chinese characters garbled problem under Linux system
What are the benefits of using Linux/Unix as a server?
Detailed linux command: disk check repair command e2fsck
Linux using NTP service management /synchronization server time
Configuration Management for Users and Groups under Linux Operating System
Several thoughts and conclusions about the father and son processes under Linux
Linux operating system network card installation guide (below)
PHP install imagick extension tutorial
Detailed explanation: MD5 encryption method for Linux system GRUB
Windows 7 USB/DVD may borrow GPL code
What file is pagefile.sys? Win10 deletes the operation method of pagefile.sys file
How to set ROOT permission for ROOM Android Simulator ROOT permission setting method
How to convert a video file into an mp3 audio file using a format factory?
Microsoft's second-generation Surface tablet market time exposure
Linux view directory size and hard disk size
After the installation of Win10 in Chinese cabbage, how can I do it?
Win8 Encyclopedia 64: Global search how to set up