This article describes how to modify the IP address, Gateway, and DNS of a Linux command line. Change the Nic eth0IP to 10216801ifconfigeth010216801netmask2552552550
This article describes how to modify the IP address, Gateway, and DNS of a Linux command line.
Nic eth0 IP address changed to 102.160.1
Ifconfig eth0 102.160.1 netmask 255.255.255.0
Change gateway to 102.160.254
Route add default gw 102.160.254
Linux command line dns modification
Echo "nameserver 202.202.202.20">/etc/resolv. conf
Restart network service
/Etc/rc. d/init. d/network restrart
Attach an optical drive to a Linux command line
1. create a cdrom directory under the mnt Directory
Cd/mnt
Mkdir cdrom
2. mount the optical drive on the Linux command line
Mount-t iso9660/dev/cdrom/mnt/cdrom
3. unmount the optical drive using the Linux command line
Umount/mnt/cdrom
The above is the Linux command line to modify the IP address, Gateway, DNS method.