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
for added routes *GW GW Specifies the gateway for how the network/host is groupedDev If specifies which network device to go out, followed by network device name, such as Eth0 *Examples of Use:Route del default ==> Delete Gateway Method 1Route add default GW 10.0.0.2 ==> Add Gateway Method 1Route del default GW 10.0.0
loopback device lo)3 , configure IP: You can use Ifconfig to display all active connections by default.Configuration For example: (ifconfig eth0 192.168.18.23 netmask 255.255.255.0 or short format ifocnfig eth0 192.168.18.23/24) Profile field description (Device device file, Bootproto{bootp|dhcp|static|none}, Nm_controlled={yes|no}: Whether to accept NetworkManager service scripts Configure this device CENTOS6 on this option general settings No, onboot ={yes|no}: Whether this interface is activ
The use of the Linux route command is detailed--http://www.cnblogs.com/snake-hand/p/3143041.htmlOne Linux command per day: Route command--http://www.cnblogs.com/peida/archive/2013/03/05/2943698.htmlThe route command is used to display and manipulate the IP routing table. To achieve communication between two different subnets, you need a router that is connected to two networks, or a gateway to two networks. In Linux systems, routing is usually done to address the problem that the Linux system ha
;>d:\ip.txt
If "! gw! "equ" 1 "call:end
echo%%i | find/i" Default Gateway ">nul echo gw:%%j>>d:\ip.txt Set gw=1
)
: End
echo=
echo exported complete. Any key check ...
Pause>nul
Start "" D:\ip.txt
exit
2, Export Win7 system IP Information
@echo offsetlocal enabledelayedexpansion
title Windows 7 IP Information Export tool (in conjuncti
Set up your proxy.The Bellow proxies as follow:(1) http-proxy:proxy.xxx.com port:911(3) socks5-proxy:proxy.xxx.com port:1080 Set The Bash proxy environment value $ echo "Declare-x http_proxy=\" http://proxy-shz.glb.intel.com:911\ "declare-x https_proxy=\"/http/ Proxy-shz.glb.intel.com:911\ "Declare-x no_proxy=\" ' hostname ', localhost,127.0.0.1,127.0.1.1,.local,10.238.154.0/ 24,10.248.2.5,10.239.27.228,172.17.6.9,172.16.0.1,192.168.253.10,192.168.253.11,192.168.253.12,192.168.253.13,192.168.253
object annotation information in a graph, because the coordinates of the callout data are to take the upper-left and lower-right coordinates of the box (or relative coordinates, that is, the value is 0 to 1), you can get GX, GY, GW, and gh;ind_ by simply adding and reducing X and ind_y correspond to the input coordinates, such as your input feature map is 16*16, in other words ind_x and ind_y are the coordinates of a grid cell on 16*16 's feature map
First edit the/etc/network/interfaces file and execute the following command in the terminal
sudo vi/etc/network/interfaces
To configure a static IP address
The contents to be edited are as follows:
Auto Eth0 # #自动启用第一块网卡
ifconf eth0 inet Static
Address 192.168.1.2 # #IP地址
netmask 255.255.255.0 # #子网掩码
Gateway 192.168.1.1 # #网关
You can also do this:
Enter in the terminal
sudo ifconfig address 192.168.1.2 # #设置IP
sudo ifconfig netmask 255.255.255.0# #设置子网掩码
sudo ifconfig Gateway 192.158.1.1 # #设置
A few methods of static configuration network1. ifconfig [Interface]-A: View all interfaces that include an inactive stateEnable or disable: Ifconfig IFNAME up|downor enable: Ifup IFNAMEDisabled: Ifdown IFNAMESet IP address: Ifconfig IFACE ip/netmask [up]Note: CIDR format masks, such as 172.18.0.1/16Or: Ifconfig IFACE IP netmask netmaskNote: The full format mask, such as 255.255.0.0The address is immediately sent to the kernel and takes effect immediately, but will not be permanently valid.Route
t1 ifconfig eth3 172.16.1.200/244. Set the address of eth1 and eth2 ifconfig eth1 192.168.1.1/24Ifconfig eth2 172.16.1.1/245. Set a default route for two NetnsIP netns exec T1 route add default GW 192.168.1.1IP netns exec T2 route add default GW 172.16.1.16. TestingPing eth3 address in Netns T2 in Netns t1IP netns exec T1 ping 172.16.1.200After the above configuration, packets sent from Eth0 are routed thr
, and file Ifcfg-ethx in the ETHX to be consistent
Broadcast broadcast address
HWADDR Physical Address, this you don't change
IPADDR IP Address
NETMASK Subnet Mask
Onboot If the device is started when the network is started or restarted, yes is started, no is not started
Bootproto boot protocol, the most common three parameters are as follows:
①static (static IP)
②none (unspecified, set fixed IP situation, this is OK, but if you want to set the multi-port binding bond, yo
This article is very good, multi-Nic recommended with a fourth method.
Http://blog.sina.com.cn/s/blog_828e50020101ern5.html
Add a permanent static route to CentOS
A static route is required when using a dual NIC with 2 gateways at the same time. Of course, there are many times when you need to add routes.
Operating system version centos-6.4 64bit
One: Use the route command to add
1, the route command added by using the route, the machine restarts or the network card restarts after the route
About switch and router configurations it's impossible to use hardware when it comes to teaching. No condition today brings everyone is I do a small experiment.
You can have the next Huawei ma5200g Simulator to experiment
Specific orders and explanations I've written it all up. Hope and I like the dishes of friends and I do together!
First, we've collected some basic commands for the switches.Usually commands:PCA login:root, using root userpassword:linux; password is Linux# shutdown-h now; sh
Tags: lis route command Route address command stat AC 3.2 pad1. Use the route command to view the native route and enter the route return directly.Route commandParameters:
Add Add route
del Delete route
-net setting a route to a network segment
-host setting a route to a host
GW Export Gateway IP address
Dev Egress Gateway Physical device name
Example
Add route
Route add-net 192.168.0.0/24
Tags: linux devops linux Cloud Linux Getting started 0 basic Linuxcommunication between the network mainly relies on routers, in addition to the daily use of the router device, Linux system can also be configured to the router, simply add some simple routing entries on the Linux host, these Linux hosts can act as a simple router function, The following is an example of implementing router functions in a CentOS6 environment:1. Set all IP addresses as shown2. Configure routing for different Machin
character sets (ZHS16CGB231280 ZHS16GBK ZHT32EUC ZHT16BIG5 ZHT32TRIS ZHT16MSWIN950 ZHT16HKSCS UTF8 ). However, the word segmentation method is too simple. Each combination is used as a word, which occupies space and is inefficient.3) chinese_lexer: this is a new Chinese analyzer that only supports the utf8 character set. The biggest improvement of chinese_lexer is that it can recognize most of the commonly used Chinese words and therefore analyze sentences more efficiently.
Create sample dataCr
it can recognize most of the commonly used Chinese words and therefore analyze sentences more efficiently.
Create sample dataCreate table docs (id number, name varchar2 (200), address varchar2 (2000 ));Insert into docs values (1, 'John Smith ', 'room 403, No. 37, ShiFan Residential Quarter, BaoShan District ');Insert into docs values (2, 'noah Abelard ', 'room 2
Method 1 for adding a soft route in Linux:
routeadd-net172.16.6.0netmask255.255.255.0gw172.16.2.254deveth0/*
Add a network 172.16.6.0/24 to go through 172.16.2.254 eth0 * // *-net to add network-host to add host, netmask subnet mask, gw gateway, dev device, and device, here is your Nic name */route del gw 172.16.2.254/* delete default gateway 172.16.2.254 */route del-net 172.16.86.0/24/* delete defau
indicate the person who is serving Seven {See7di # Gmail.com}
The following is a demo:
The source code is first sent out, because many copy companies directly copy and paste my stuff without even saying goodbye, or even leave me some copyright information, so if you need the complete source code, you can e-mail me for (see7di@gmail.com)
// If you want to publish this article, please indicate the exit, no outgoing copyright notice, I do not like to see this kind of website. My work website does
, generally "1 ". Now, the IP address setting in the command line is complete.At the same time, you can also change the DNS settings under the command line, using the set DNS command, you can enter set dns /? View the usage method. Finally, we willSave as a bat file(Setip192168423.bat ): @ Echo offRem ETH // ETH is the name of the NIC, which can be queried in network connection, for example, "Local Connection"Set Eth = "Local Connection"Rem IP // ip address you want to changeSet IP = 192.168.
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.