If you want to know about Linux, learn 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. Disable and enable the network port:
Enable 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. Disable and enable physical ports
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. Configure the network address
A. ifconfig eth0 x. x netmask x. x broadcast x.
B. Configure through the configuration file
/Etc/sysconfig/network-scripts/file for configuring ifcfg-xx
Such as: ifcfg-eth0
If you want to configure multiple addresses on a network card, the configuration file is ifcfg-eth0: 1, ifcfg-eth0: 2, etc.
C. restart the network service,/etc/init. d/network restart or service network restart
In this way, you can easily complete the Linux Network Address Configuration.
- Migration of Linux compressed files
- Describe Linux Device File Management hardware devices
- Linux mobile OS makes achievements in the future mobile phone industry
- Getting started with embedded Linux
- Install the Linux firewall to ensure Network Security