Transfer from http://www.cnblogs.com/lidp/archive/2009/12/02/1697480.htmlImmediate effect:Ifconfig eth0 192.168.1.102 netmask 255.255.255.0Activation takes effect:Vim/etc/sysconfig/network-scripts/ifcfg-eth0Joinipaddr=192.168.1.102netmask=255.255.255.0Modify the default gatewayImmediate effect:Route add default GW 192.168.1.1Activation takes effect:Vim/etc/sysconfig/network-scripts/ifcfg-eth0Joingateway=192.168.1.1The final results are as follows:Devi
dev eth1 View the IPV6 address configured on the NICUsing the net-tools:$ ifconfig eth1 using iproute2:$ ip-6 addr Show Dev eth1 Remove the IPV6 address from the NICUse net-tools:$ sudo ifconfig eth1 inet6 del 2002:0db5:0:f102::1/64 using iproute2:$ sudo ip-6 addr del 2002:0db5:0:f102::1/64 D EV eth1 Change the NIC MAC addressUse net-tools:$ sudo ifconfig eth1 hw ether 08:00:27:75:2a:66 use iproute2:$ sudo ip link set dev eth1 address 08:00:27:75:2a:6 7 View the routing tableUse Net-tools: $rou
/etc/sysconfig/network File
This file is used to specify network configuration information on the server, and here is an example:
Network=yes
Rorward_ipv4=yes
Hostname=deep.openarch.com
gareway=0.0.0.0
gatewaydev=
Whether the network=yes/no network is configured;
Forward_ipv4=yes/no whether IP forwarding is enabled
Hostname=hostname HOSTNAME represents the host name of the server
Gareway=gw-ip Gw
], clr1[2], clr1[3]); } //Below is the implementation tip: In order to achieve the glow effect, we began to use an "internal" color thick pen //And strokes are required for the shape. Then, we keep the pen thin, //And constantly move to the "outside" color, //And continuously increases the opacity of the color so that it looks dim toward the interior of the shape. //We use the "trim shape" that has been generated to our destination image, so that since The //src_atop rule will trim the strokes
the network is configured;
Hostname=hostname HOSTNAME represents the host name of the server;
Gateway=gw-ip Gw-ip represents the IP address of the network gateway;
forward_ipv4=yes/no whether the IP forwarding function is turned on;
Garewaydev=gw-dev GW-DW indicates the device name of the gateway, such as: eth0;
In or
the host specified in the "/etc/hosts" file can have multiple addresses, and hosts with multiple IP addresses are generally referred to as multiple-homed hosts.
"Nospoof on" means that IP address spoofing is not allowed on this server. IP spoofing is a means of attacking system security by disguising the IP address as another computer to gain the trust of other computers.
*/etc/sysconfig/network file
This file is used to specify network configuration information on the server, and here is an
.getcomponents (null);float[] CLR2 = c2.getcomponents (null);for (int i = 0; i Clr1[i] = (clr1[i] * pct1) + (clr2[i) * pct2);}return new Color (Clr1[0], clr1[1], clr1[2], clr1[3]);}Here's how to implement it: in order to achieve the glow effect, we started using an "inside" color thick penAnd the shape needed for the stroke. And then we kept on getting the pen thinner,and constantly moving to the "outside" color,And constantly increase the opacity of the color so that it looks dim inside the sha
(1) Kannel installationThe latest Kannel stable version is 1.4.3 and can be downloaded at http://www.kannel.org. To install after downloading:After decompression, enter the directory of the source files such as: cd/usr/local/gateway-1.4.3, followed by the following command:Apt-get Install LIBXML2 Libxml2-dev./configureMakeMake Bindir=/gateway-1.4.3/bin InstallAfter compiling, you will see two executables in the GW directory in the source file: Bearerb
downloaded at http://www.kannel.org. To install after downloading:After decompression, enter the directory of the source files such as: cd/usr/local/gateway-1.4.3, followed by the following command:Apt-get Install LIBXML2 Libxml2-dev./configureMakeMake Bindir=/usr/local/bin InstallAfter compiling, you will see two executables in the GW directory in the source file: Bearerbox, Wapbox(2) Bearerbox, Wapbox1) BearerboxThe Bearerbox module connects to the
powerful, not to mention the power shell. The script is as follows (no echo off):
Set destination=%1
set mask=%2
set origw=%3
set source=%4
:: Get default gateway (default gateway can be found automatically, too loud, not advocated)
::: GETGW
:: Set origw=
:: for/f "delims=: tokens=2"%%i in (' "ipconfig | find/i "Default gateway" | Findstr [0-9]. "') Do set origw=%%i
:: Gets the MAC address of the default gateway
: Getmac
set mac=
for/f "skip=3 tokens=2"%%i in (' Arp-a%origw% ') does Set mac
eth0Destination network Segment gateway address destination subnet Mask Routing State (U for up, G for Gateway, H for host) egress NIC5) cat/etc/resolv.conf//View DNS information (store domain name-->IP correspondence)NameServer 192.168.3.56) hostname//view current hostname (identifies host role)2. ConfigurationTemporary (effective immediately, but lost after reboot)1) IP a Add IP address/subnet mask dev NIC device//Add IP address to the specified NICCases:IP a add 192.168.10.222/24 dev eth0//A
. Temporary configuration (effective immediately, no restart required.) Lost after reboot) IP address(1)ip a add [IP地址/子网掩码] dev 网卡设备名称 //给指定网卡新增临时IP地址Cases:[[Email protected] ~]# IP a add 192.168.10.223/24 dev eth0//Configure temporary IP address for eth0 NIC(2)ip a del [IP地址/子网掩码] dev 网卡设备 //临时删除指定网卡的指定IP地址Cases:[[Email protected] ~]# ip a del 192.168.10.233/24 dev eth0//temporarily delete eth0 address of network card(3)ifconfig 网卡设备 [IP地址/子网掩码] //替换指定网卡IP地址Cases:[[email protected] ~
Content Management 1. computer command: PCAlogin: root; Use root User password: linux; password: linux # shutdown-hnow; shutdown with init0 # logout # login # ifconfig; display IP address # ifconfigeth0ipaddressnetmasknetmask; set IP address # ifconfigeht0ip
Content Management 1. computer command: PCA login: root; Use root User password: linux; password: linux # shutdown-h now; same as init 0 shutdown # logout # login # ifconfig; show ip address # ifconfig eth0 ip address netmask; set ip address
mask)
GATEWAY = (Default GATEWAY)
ONBOOT = {yes | no} whether to start after adjustment
USERCTL = {yes | no} whether to allow common users to set the NIC (usually no)
PEERDNS = {yes | no} is used when the boot protocol is dhcp or bootp. If it is set to no
The dhcp Service or bootp service cannot change the host's dns configuration.
(Bootp is the predecessor of dhcp, but it does not have the lease function)
Disable an ifdown Device
Ifup enabled device
Ifdown eth0 ifup eth0 (if disabled successf
The IP address configuration in the Linux command line is not as convenient as in the graphic interface. we need to manually configure the IP address. The following describes several configuration methods: nbsp; takes effect immediately (expired after restart ): ifconfigeth0192.168.1.102netmask00000000255.0 nbsp; // add the IP address routeadddefau
The IP address configuration in the Linux command line is not as simple as that in the graphic interface. you need to manually configure the IP add
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.