Linux network configuration operation 1 use/etc/init. d/network script file parameters: start service, stop service, restart... information & nbsp; | & nbsp; Security & nbsp;
Linux network configuration operation 1 use/etc/init. d/network script file parameters: start to start the service, stop to terminate the service, restart to restart the service program, reload only reload the configuration, status view service status 2 host name configuration file/etc/sysconfig/network you can modify hostname www.2cto.com NETWORKING = yesNETWORKING_IPV6 = noHOSTNAME = alfred_long 3 host name and ip ing configuration/etc/hosts 4 save local needs static IP address of the DNS server used: vi/etc/sysconfig/network-scripts/ifcfg-eth0 guest DEVICE = eth0BOOTPROTO = staticHWADDR = 00: 26: 18: 0B: 38: C0ONBOOT = yesIPADDR = 192.168.0.20NETMASK = 255.255.255.0GATEWAY = 192.168.0.1IP effective: /sbin/ifdown eth0/sbin/ifup eth0 restart effective: chattr + I/etc/resolv. change conf to read-only author alfred_long
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service