Here is Red Hat Linux as an example. Assume that the original system has been configured with an IP address of 192.168.20.140 and the configuration file path /etc/sysconfig/network-script/ifcfg-eth0. Now you need to configure an IP with a network segment of 192.168.1.
Step (requires root user authority):
1, cp /etc/sysconfig/network-script/ifcfg-eth0 /etc/sysconfig/network-script/ifcfg-eth1
2, vi /etc/sysconfig/network-script/ifcfg-eth1 modify the boldface part, colon plus 1
DEVICE=eth0:1 BOOTPROTO=none ONBOOT=yes HWADDR=00:0c:29 :ee:a6:11 NETMASK=255.255.255.0 IPADDR=192.168.1.140 TYPE=Ethernet USERCTL=no IPV6INIT=no PEERDNS=yes
3, service network restart Make modified configuration take effect
4 View through ifconfig, then see an additional eth1 IP configuration
Reference: http://world77.blog.51cto.com/414605/368529
The grep command is called global search regular expression (RE) and print out the line, which is a
1. Comparison of several file systems (1) support the file system in the Linux system: Ext2 second e
VNC software is provided from other machines connected to the remote interface linux system
ubuntu gedit Chinese garbled looks very annoying, this article provides two solutions, terminal comm
Win7 laptop tips please consider the solution to replace the battery
Windows7 personalized input method language bar icon setting method
Wn10 icon display is not normal how to do Win10 icon display is not normal solution tutorial
PPTV program library disappears What if the page does not exist or is deleted?
How does Win8 switch input methods?
Win10 system can not open Office 2007 and Excel dictionary file loss causes and solutions
Win7 system webpage can not display how to solve the verification code
Exposing the seven unscrupulous services in Windows
How does the Win10 system display file extensions?
Popular skills one by two Let you and play an abnormal say bye