IPV6 is not yet fully popular, but after the installation of the system IPV6 is effective, to a certain extent, the impact of network performance, so in the case we do not use IPv6 at all, it is best to close the IPv6. In fact, in the previous article on the network setup, we mentioned whether to activate IPv6, but only that setting still can't completely close IPv6, so this article describes how to close it with complete steps.View IP Configuration#ifconfigEth0 Link encap:ethernet HWaddr 00:0c:
#!/usr/bin/env python#-*-coding=utf-8-*-#Using GPL v2.7#Author: [email protected]#python monitoring Memory (swap) Utilization" "1, the realization principle: obtains the system information through the SNMP protocol, then carries on the corresponding computation and the format, the final output result 2, the special attention: the monitoring machine needs to support SNMP. Yum install-y net-snmp* Installation" "#!/usr/bin/pythonImportOSdefGetallitems (Host, OID): SN1= Os.popen ('snmpwalk-v 2c-c Pu
Execute shell command in PythonThe previous execution of the shell command is mostly done by Os.system (Shell command), which is more cumbersome.Understand that SH is a better library than subprocess, capable of executing shell commands1. View IP:[Email protected] myblog]# ifconfigEth0:flags=4163inet 172.31.253.193 netmask 255.255.240.0 broadcast 172.31.255.255Ether 00:16:3e:01:72:ac Txqueuelen (Ethernet)RX packets 235322 Bytes 231762359 (221.0 MiB)RX
All the devices in the CentOS are files. The NIC is also defined in the file.
The binding of IP also requires only changes to the file.
Network card related files in directory:/etc/sysconfig/network-scripts
Querying Current IP information:
Ifconfig
Eth0 Link encap:ethernet hwaddr 00:50:56:ac:6b:0f
inet addr:42.51.135.206 bcast:42.51.135.255 mask:255.255.255.0
Inet6 ADDR:FE80::250:56FF:FEAD:6B0F/64 Scope:link
Up broadcast RUNNING multicast mtu:1500 metric:1
RX packets:374772 errors:0 dro
Under the Linux system, the first network card is called Eth0, the second network card is called eth1, here we give the first network card to set up multiple IP, also that is to add multiple subnets, such as eth0:0, eth1:1 This network interface, Linux can support up to 255 IP subnet cards.
First, use the command to temporarily add IP
1) Check the eth0 configuration:
Ifconfig
Eth0 Link encap:ethernet hwaddr 00:0c:29:0c:d1:64
inet addr:192.168.36.189 bcast:192.168.36.255 mask:255.255.255.0
Inet6
' last access:1417922668 Sun Dec 7 11:24:28 2014Total size, in bytes:12582912 (12.000 MiB)
Time of last modification:1418294104 Thu Dec 11 18:35:04 2014Time of last status change:1418294104 Thu Dec 11 18:35:04 2014Size to process:12582912 (12.000 MiB)Total size, in bytes:12582912 (12.000 MiB)
Size to process:12582912 (12.000
When using Bae git, you need to configure local git, or you may receive the following error:
Counting objects:13073, done.Delta compression using up to 8 threads.Compressing objects:100% (12182/12182), done.Error:rpc failed; result=22, HTTP code = 411Fatal:the remote end hung up unexpectedlyWriting objects:100% (13071/13071), 11.46 MiB | 5.10 mib/s, done.Total 13071 (Delta 2059), reused 0 (Delta 0)Fatal:th
technologies are undoubtedly the most important part.
User data networks are usually managed using the SNMP protocol. Simple Network Management Protocol (SNMP) is a widely used Network Protocol, it uses Agent software embedded in network facilities to collect network communication information and statistics on network devices. The agent continuously collects statistical data, such as the number of bytes received, and records the data to a Management Information Base, the network administrator c
configurations that may cause security issues.
* When multiple name VLANs are used, the transaction can be changed *-connection.
* When they are incorrectly mapped to a LAN and other LAN, the VLAN can be switched to an internal disconnection.
VTP Mode
When a vswitch is in VTP Server or transparent mode, you can configure a vlan on the vswitch. When a vswitch is configured on a VTP Server or in a transparent mode, use the CLI, console menu, and MIB wh
technologies are undoubtedly the most important part.
User data networks are usually managed using the SNMP protocol. Simple Network Management Protocol (SNMP) is a widely used Network Protocol, it uses Agent software embedded in network facilities to collect network communication information and statistics on network devices. The agent continuously collects statistical data, such as the number of bytes received, and records the data to a Management Information Base, the network administrator c
Recently used to save HTML as a picture to the local function (save to download directory), remember that the function IE use blob storage data, about compatibility issues see the following table, other browsers use a tag download properties new features download
Browser
constructs as
Filenames
Max Blob Size
Dependencies
Firefox 20+
Blob
Yes
MiB
None
Firefox
the SNMP port is open [[emailprotected]snmp]#netstat-tunlp| grep161udp00 0.0.0.0:161 0.0.0.0:* 3731/ Snmpdc, local test SNMP data [[Emailprotected]~]#snmpwalk-v2c-cpubliclocalhost The system test results are as follows: Snmpv2-mib::sysdescr.0=string:linuxa2.example.com2.6.18-348.el5 #1 smpwednov2821:22:00est2012x86_64snmpv2-mib:: sysobjectid.0=oid:net-snmp-mib:
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.