########## Make the physical network segment and Vm in the same network segment in the bridge mode ################## #
Br0: Configure Bridging for eth0
Edit/etc/sysconfig/network-scripts/ifcfg-eth0, enter:
# Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Update it as follows:
Device = eth0
3 onboot = Yes
Ethtool_opts = "autoneg off speed 100 duplex full"
Bridge = br0
Hwaddr = B8: AC: 6f: 65: 31: E5
Save a
Start configurationLet's configure a Filter the firewall of the table .(1) view this institution in IPTABLES the setup situation[Email protected] ~]# Iptables-l–n[Email protected] ~]/etc/sysconfig/iptables[Email protected] ~]/etc/init.d/iptables Status|stop|start[Email protected] ~]/sbin/chkconfig–level 2345 iptables off|on(2) Clear Old rules .Whether or not you start a firewall when you install Linux, if you want to configure your own firewall, clear
manually:Create a file under/ETC/ZYPP/REPOS.D Iso_local.repoThe contents of the file are as follows:[Iso_local]Name=iso_localEnabled=1Autorefresh=1#以下为本地rmp文件夹路径Baseurl=dir:///mnt/isopath=/Type=plaindirKeeppackages=0To add a source on the network, in the way:#zypper ar Http://download.opensuse.org/repositories/home:/Thruth/openSUSE_11.0/My_home_ThruthSome of the related commands:SuSEfirewall2 Stop/start/restart (firewall)#vim/etc/sysconfig/susefirewa
delete the character starting at the beginning of everything in Word var=/etc/sysconfig/network-scripts/sysconfig/etc/cmd[ [Email protected] ~]# echo ${var#*etc}/sysconfig/network-scripts/sysconfig/etc/cmd2, ${string_var#*word}# in the string_var variable stored in the substring, from left to right, look for the first
input text.)[Root @heng ~] # cp/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-bond0Make sure the/etc/sysconfig/network-scripts/ifcfg-bond0 content is the same as the following[Root @heng ~] # cat/etc/sysconfig/network-scripts/ifcfg-bond0device=bond0Bootproto=staticbroadcast=192.168.1.255
In any case, iptables is a need for special care to set up something, in the event that the server is not around you, and you rushed to set up to prevent SSH, then wait for the boss scold it, hehe ...The following is written to prevent this from happening, of course, but the general server is sufficient:1. First introduce the instructions and related configuration filesStart command: Service iptables startRestart command: Service iptables restartShutdown command: Service iptables stopThen the re
1. Configure the host name to change:Temporary method:Hostname localhost# exit the current shell and re-login can take effect. This method can only be modified in a temporary way and fails after the system is re-established.Permanent method:Method 1:Vim/etc/sysconfig/networkhostname=localhostwq!#/etc/init.d/network restart#hostname localhost tip: This will guarantee the temporary effect, The restart system also took effect.Method 2:Additional modifica
Title: How to set a static IP address for a Linux system
Centos OS 6.5Vi/etc/sysconfig/network-scripts/ifcfg-Default modification:/etc/sysconfig/network-scripts/ifcfg-eth0File:/etc/sysconfig/network-scripts/ifcfg-eth0 for eth0device=Eth0bootproto= none# This line ensures that the interface would be isbrought up during boot. Onboot= for most outbound connectio
Hat Linux has four tools for automating tasks: Cron, Anacron, at, and BATC. When your Linux host does not turn on all the time, this anacron can help you perform work that has not been performed during the "crontab" setting. For example, when your host shuts down at 12:00 in the evening, but crontab this routine work is done at 4:00, the routine work is not working. But it can be done with Anacron.Whether you need to start: If the host has been powered up 24 hours and Cron is running, then the
:
##########################
Temporary method:
Hostname Oldboy
Exit the current shell and log back on to take effect. This method can only be temporarily modified to take effect, and will fail after the system is reset.
Tip: Many people use hostname hostname to modify, in fact this is only temporary, reboot will revert to the configuration before the host name.
Permanent method:
Law I:
Step 1:
Vi/etc/sysconfig/network
Change the inside hostn
name:"echo "Please later ..."#将虚拟机的磁盘文件挂载到/media/virtimage Directoryguestmount-d $name-I $mountpointecho "---------------------------------------"Read-p "Please enter the IP address to configure:" IPRead-p "Please enter the number of subnet mask bits to configure:" num#静态地址Sed-i "s; (bootproto=).; \1none; "${mountpoint}/etc/sysconfig/network-scripts/ifcfg-eth0#开机自起Sed-i "s; (onboot=).; \1yes; "${mountpoint}/etc/s
) using the route command, the machine restarts after the failure of specific see "Linux Routing Configuration Command route learning", the form is as follows:
Route add-net 192.168.0.0/24 GW 192.168.0.1(2) The use of IP command, machine Restart after the failure of specific see the Linux Network Configuration command IP (ifconfig+route) Summary, the form is as follows:
IP route add 192.168.10.0/24 via 192.168.5.100 Dev eth1(3) Configure the routing information in the/etc/
It programmer development must-all kinds of resources download list, the most complete IT resources in history, personal collection summary.
Putty Chinese Garbled Solution methodMethod One: Open Putty Main program, select Window-〉appearance-〉fontsettings-〉change ..., select Fixedsys font, character set select chinese_gb2312. In the window-〉appearance-〉translation, Received data assumed to is in which character set, change the use font encoding to UTF-8 if used frequently, Save these settings i
following command:Chkconfig -- add ipchainsSet ipchains to auto startNext, check whether the ipchains configuration file/etc/sysconfig/ipchains exists. If this file does not exist, ipchainsIt does not take effect even if it is set to automatic start. The default ipchains configuration file is as follows:# Firewall configuration written by lokkit# Manual customization of this file is not recommended.# Note: ifup-post will punch the current nameservers
. LogMore/root/install. log | WC-l10 view installed software packagesRpm-QaRpm-Qa | WC-lYum List Installed | WC-l11 view the server keyboard layoutCAT/etc/sysconfig/keyboardCAT/etc/sysconfig/keyboard | grep keytable | cut-F2-D =View SELinux statusSestatusSestatus | cut-F2-D:CAT/etc/sysconfig/SELinux12. view the IP address and MAC address of the server Nic.In the
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.