Modify IP, DNS and routing configuration under Linux operating system
ifconfig eth0 new ip
Then edit /etc /sysconfig/network-scripts/ifcfg-eth0, modify ip
First, modify the IP address
[aeolus@db1 network-scripts]$ vi ifcfg-eth0
DEVICE =eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=219.136.241.211
NETMASK=255.255.255.128
GATEWAY= 219.136.241.254
Second, modify the gateway
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=Aaron
GATEWAY=192.168.1.1
Third, modify DNS
[aeolus@db1 etc]$ vi resolv.conf
nameserver 202.96.128.68
nameserver 219.136 .241.206
Fourth, restart the network configuration
/etc/init.d/network restart
Modify the IP address
Effective immediately:
# ifconfig eth0 192.168.0.20 netmask 255.255.255.0
Startup:
Modify /etc/sysconfig/network-scripts/ifcfg-eth0
Modify default gateway
Effective immediately:< Br>
# route add default gw 192.168.0.254
Startup:
Modify /etc/sysconfig/network-scripts/ifcfg-eth0
Modify dns< Br>
Modify /etc/resolv.conf
It can be effective immediately after modification, and the startup is also valid
Modify host name
Effective immediately:
# hostname fc2
Startup Effective:
Modify /etc/sysconfig/network
self-entertainment, I decided to start a Linux server, then execute the ld & ldquo;rm –rf /&rd
(1) Ifconfig command The first type uses the ifconfig command to configure the ip
I. Overview: Adding a program to the Linux kernel requires the following three tasks: 1. Copy the s
The missing header file ‘security/pam_modules.h’ is part of the libpam development, a P
Linux single network card configuration multiple IP
Virtual machine VMware uninstall is not a thorough solution
Linux rz transfer large files why it crashes
Do you use the Linux command line?
Linux operating system static routing setup skills introduction
Linux manual adjustment date time
VMware Workstation Installs Linux System
Detailed ldconfig command, linux dynamic link library
Webmail Roundcube installation configuration basic tutorial
Linux operation and maintenance commonly used commands and knowledge Daquan
Linux limits the number of connections to a single IP port.
How to realize the mutual transfer of files between Linux and Windows
How to restore win7/8.1 system after win10 system upgrade
Windows can't start windows audio service?
New installation Win7/Win8.1 preparation tutorial
How to download Win8 system files with unsafe tags
The initial setup of reloading Win 7 five items has to be done
After inserting the u disk in the win7 system, the cpu resource is occupied by 100%. How to solve
Where is the Win10 folder option? Win10 method of opening folder options
Win7 completely uninstall NVIDIA graphics driver method