Virtual Server version 1.2.1 (size=4096)Prot Localaddress:port Scheduler FlagsRemoteaddress:port Forward Weight activeconn inactconnCheck if successfulThe following message appears stating that the load was successful[Email protected] ~]# Lsmod | grep Ip_vsIP_VS_WRR 12697 1Ip_vs 140944 3 IP_VS_WRRNf_conntrack 105745 1 Ip_vsLIBCRC32C 12644 2 Xfs,ip_vs2. Configure VIP AddressesView native IP[Email protected] ~]# ifconfigIn your network card configuration a virtual IP as a VIP, I here the network
startsThe configuration of the IP address is automatically invalidated. The specific usage is as follows. Ipconfig ethx ipadd netmask x.x.x.x.where x in ETHX represents the Fast Ethernet card, the default first block is 0.ipadd for the IP address. x.x.x. X is the subnet mask. For example, the IP address configured for the NIC Eth0 is 192.168.1.1 Subnet Mask is 255.255.255.0Method 2:Neat command to configure IP address under =redhat-config-network gra
://www.LinuxVirtualServer.org/http://www.linux-vs.org/Third, the installation of IPVSADM services1, the official website to download the installation package: http://www.linuxvirtualserver.org/software/kernel-2.6/ipvsadm-1.24.tar.gzIPVSADM Installation:# tar zxvf ipvsadm-1.24.tar.gz-c/usr/src/# cd/usr/src/ipvsadm-1.24# make All# make Install# Ipvsadm--version2. Yum installation (simple and convenient)#yum-y Install IpvsadmIv. Configuration of Ipvsadm ServicesNote: The following steps are configu
Article title: configure a router based on Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Network structure. the computer of the Linux router is identified as A. It is connected to three network segments, 192.168.1.0/24, 10.0.0.0/8, and 172.16.0.0/16.
Computer A must have three NICs connected to the three network segments.
Hypothesis:
E
Linux router this computer is identified as A, which is connected to three network segments, 192.168.1.0/24, 10.0.0.0/8, 172.16.0.0/16.
Computer A must have three NICs connected to the three network segments.
Hypothesis:
Eth0 is connected to 172.16.0.0, eth1 is connected to 10.0.0.0, and eth2 is connected to 192.168.1.0.
Configure eth0 first. Assign the address 172.16.1.1 to this network interface and run the following command:
# Ifconfig eth0 172.16.1.1
Use Linux to build a router-general Linux technology-Linux technology and application information. The following is a detailed description. Network structure. The computer of the Linux router is identified as A. It is connected to three network segments, 192.168.1.0/24, 10.0.0.0/8, and 172.16.0.0/16.
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP:
example:
# Cat/etc/resolv. conf
Domain mydebian.com
Nameserver 192.168.1.1 // a maximum of three Domain Name Server addresses
2.7/etc/network/interfaces
In the network interface parameter configuration file, the following is a configuration example. There are two network interfaces, in which eth0 assigns a static IP address and eth1 dynamically obtains the IP Address:
# This file describes the network interfaces available on your system
# And how to activate them. For more information, se
service;
(2): Both Server Load balancer servers are active and each server is bound with a public IP address to provide the Server Load balancer service. When one of them fails, another public network virtual IP address that takes over the faulty server.
Method 1:(1) Resolve the domain name www.bkjia.com to the virtual IP address 61.1.1.2(2) normally, the host 61.1.1.4 is bound to the virtual IP 61.1.1.2.
/Sbin/ifconfig eth0: 1 61.1.1.2 broadcast 61.1.1.255
addr del 209.100.100.3/24 broadcast 209.100.100.255 Dev eth0 -- delete the secondary IP address on eth0
However, when heartbeat is actually used in the future, we do not need to manually enter these commands, because heartbeat provides a script called ipaddr2, we only need to configure the secondary IP in the heartbeat configuration file. Then, the ipaddr2 script will automatically call the following command line for us.
12. Configure the IP alias using the following command:
# Ifconfig eth0: 0
three Domain Name Server addresses
2.7/etc/Network/interfaces
In the network interface parameter configuration file, the following is a configuration example. There are two network interfaces, in which eth0 assigns a static IP address and eth1 dynamically obtains the IP Address:
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo
information, such as the IP address, but does not want to set it, and uses Ctrl + C, how can this problem be solved?
3. What if the user inputs an incorrect IP address?
4. What if the user inputs the incorrect netmask?
5. What if the user inputs an unmatched IP address and gateway?
6. What if the user input already exists?
7. Does the NIC input by the user exist?
8. What if an error occurs during Nic restart?
The Code is as follows:
#! /Bin/bash # cr
Reprint: http://blog.csdn.net/wangjingfei/article/details/5283632/It is very convenient to be familiar with Ifconfig.ifconfig eth0 New IPThen edit/etc/sysconfig/network-scripts/ifcfg-eth0, modify IPFirst, modify the IP address[Email protected] network-scripts]$ VI ifcfg-eth0Device=eth0Onboot=yesBootproto=staticipaddr=219.136.241.211netmask=255.255.255.128gateway=219.136.241.254Second, modify the gatewayVi/etc/sysconfig/networkNetworking=yesHostname=aarongateway=192.168.1.1Third, modify the DNS[E
The most commonly used network configuration commands in Linux systems include Ifconfig, route, where ifconfig is used to view and configure network interfaces (usually NIC) information, including the IP address, mask, etc. of the network interface device, and the route is used to manage the routing tables in the Linux system kernel. Its biggest use is to set the static routing table entries, usually after the system with Ifconfig configuration network interface, use it to set the host or the IP
Article Title: linuxinterfaces file configuration. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
A basic configuration is like the following:
1 auto lo
2 iface lo inet loopback
3
4 # The primary network interface
5 auto eth0
6 iface eth0 inet static
7 address 192.168.0.42
8 network 192.168.0.0
9 netmask 255.255.2
language name to the/etc/rc. d/rc. Local file;How to configure the network port in ifconfig:The ifconfig tool configures network interfaces through command parameters. We only need to specify the most common parameters;Ifconfig network port IP address HW * Instance 1:For example, we use ifconfig to debug the address of the eth0 Nic.[Root @ localhost ~] # Ifconfig eth0 down[Root @ localhost ~] # Ifconfig eth0 192.168.1.99 broadcast 192.168.1.255 netmask
Cthis article mainly introduces how to install and configure lvs in centos. all of the following operations need to disable Selenge and iptables. for details, refer to CentOS.
I. lvs-nat mode
Network configuration:Copy codeThe code is as follows:Lvs-server eth0: host-only adapter 192.168.56.101Lvs-server eth1: Internal 192.168.0.1Real-server-1 eth0: Internal 192.168.0.2Real-server-2 eth0: Internal 192.168.0.3Lvs-server:1. install ipvsadm softwareCopy codeThe code is as follows:Yum-y install ipvs
." | sed 'y/123/456 /'This 4 is a test of 4 try.11) Review PrintingHere are three commands that can be used to print information in the data stream:1> the lower-case p command is used to print text lines;2> the equal sign (=) command is used to print the equal sign;3> the lower-case l command is used to list rows.$ Echo "This is a test" | sed 'P'This is a testThis is a test$ Sed '= 'data11The quick brown fox jumps over the lazy dog.2The quick brown fox jumps over the lazy dog.3The quick brown fo
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.