Ifcfg-eth0 first interface of local network card
Need ROOT's permission
The configuration is as follows:
vim /etc/sysconfig/ ....
Press a or I to enter the editing state.
Ipaddr =192.168.0.1(configured IP)
Netmask =255.255.255.0 (mask)
Gateway = 192. 168.0.254 (gateway)
DNS 1 = 192. 168 . 0 . 254(DNS)
:wq
Did you log in with root?