File: /etc/sysconfig/network-scripts/ifcfg-eth0
The following values are common to all basic configuration files: * DEVICE=name, where name is the name of the physical device (dynamic allocation) The PPP device should be excluded, its name is "logical name". * IPADDR=addr, where addr is the IP address. * NETMASK=mask, where mask is the network mask. * NETWORK=addr, where addr is the network address * BROADCAST=addr, where addr is the broadcast address. * GATEWAY=addr, where addr is the gateway address. * ONBOOT=answer, here answer takes one of the following values: o yes -- the device will be activated at boot time. No -- The device is not activated at boot time. * USERCTL=answer, answer one of the following values: o yes -- non-root users can control the device o no -- non-root users are not allowed to control the device. * BOOTPROTO =proto, where proto takes one of the following values: o none -- does not use the boot protocol. o bootp -- uses the bootp protocol. o dhcp -- uses the dhcp protocol.
Terminal: Query the IP address: ifconfig -a modify Domain IP: 1. Log in as root 2. Modify the configuration file /etc/sysconfig/network-scripts/ifcfg-eth0
The contents of the file are as follows: \\DEVICE=eth0 HWADDR=00:0C:29:A2: 8C:B2 ONBOOT=yes TYPE=Ethernet NETMASK=255.255.255.0 IPADDR=192.168.1.11 -> Change to 192.168.1.12 GATEWAY=192.168.1.1
reboot
ifconfig eth0 new ip then Edit /etc/sysconfig/network-scripts/ifcfg-eth0, modify ip ifconfig eth0 new IP
Then edit /etc/sysconfig/network-scrIPts/ifcfg-eth0, modify IP
Modify 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
IV. Restart the network
/etc/init.d/network restart
Modify IP Address
Effective immediately:
# ifconfig eth0 192.168.0.20 netmask 255.255.255.0
Startup Effective:
Modify /etc/sysconfig/network-scrIPts/ifcfg-eth0
Modify default gateway
Effective immediately:
# route add default gw 192.168.0.254
Startup:
Modify /etc/sysconfig/network-scrIPts/ifcfg-eth0
Modify DNS
Modify /etc/resolv.conf
Immediately after modification, the startup is also valid
Modify host name
Effective immediately:
# hostname Fc2
Startup Effective:
Modify /etc/sysconfig/network
1 U disk or disk mount under virtual machine, network configuration under Ubuntu, switch bet
As the website runs, the MySQL database is getting bigger and bigger, and the backup proble
There are 7 startup levels in Linux: #0 - halt (Do NOT set initdefault to this)# 1 - Single
Two virtual network cards after installing the virtual machine: 1.bridged (bridge mode) <?喎& #
A system, we can not have only one user, so we need to create other users. This is especially true a
Use yum to install the scheduled task function. The result is prompted:
Copy the code
The code is as follows:
# yum -y install vixie-cron
Loaded plugins: fastestmirror, refresh-pa
Grep yum root 6744 0.0 0.0 103260 900 pts/1 S+ 14:59 0:00 grep yum root 25960 0.0 0.0 0 0 ? Z Sep19
Usage Guide for Extracting Text Using the Cut Command in Linux
LINUX Extra Privilege Control ACL
Three main package installation methods under redhat system
Linux Weblogic related environment variable setting
Build your own Linux system reflection (2)
How to run the process in Linux
XP system broadband connection error 678 solution
How Win8 shows the quick launch bar
Win 7 Create Wireless LAN Tutorial
Using win7 system to test the compatibility of 21 games
Windows system to show and hide the extension of the steps
Two ways to install new fonts under Win10 system
Usage of the syskey command in Windows XP/2000
Life calendar computer version of the way to view the life index
Win10 9926 How to unlock the clock tray to see the new interface design