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