Redhat, centos modify IP address 1. View IP address command: 1. display the currently started network interface command: ifconfigwww.2cto. com2. view all current network interface commands: ifconfig-a3. view the specified network interface commands: ifconfigeth0 2, redhat, cen... redhat, centos modify IP address 1. View IP address command: 1. display the currently started network interface command: ifconfig www.2cto.com 2. view all current network interface commands: ifconfig-a3. view the specified network interface commands: ifconfig eth0 II. redhat. modify the IP address temporarily when the IP address in centos takes effect for debugging, after the restart, it is restored to the original IP ifconfig eth0 192.168.63.27 netmask 255.255.255.0 route add default gw 192.168.63.1 up for permanent effect (that is, it can also take effect after restart) www.2cto.com 1: configure the Nic configuration file modify/etc/sysconfig/network-scripts/ifcfg-eth0 Java code vi/etc/sysconfig/network-scripts/ifcfg-eth0 and then enter the Java code service network restart to take effect, or Java code. /etc/init. d/network restart effective 2: dynamically modify ifconfig eth0 192.168.63.27 netmask 255.255.255.0 route add default gw 192.168.63.1 and save it in/etc/init. d/rc. local File
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.