CentOS 挂载光驱//修改IP

//挂载光驱

1.mount /dev/cdrom /mnt

2.cd /mnt

3.ls

4.cd Linux/

5.ls

6.sh install.sh


//修改IP

1.ip add show

2.vi /etc/sysconfig/network-scripts/ifcfg-eth0

TYPE=Ethernet

ONBOOT=yes

NM_CONTROLLED=yes

BOOTPROTO=static

IPADDR=172.16.20.150

NETMASK=255.255.255.0

GATEWAY=172.16.20.254

DNS1=221.6.4.66

3.i编辑 -ESC退出-:wq退出



你可能感兴趣的:(CentOS 挂载光驱//修改IP)