Linux configuration NIC IP address command detailed introduction and some common network configuration commands 2010- A- - 0Comments Collection I want to contribute to the Linux command line under the configuration of the IP address is not as convenient as the graphical interface, completely need our manual configuration, the following will give you a few configuration methods: Immediate effect (restar
Common parameters for linux network configuration and ifconfigifconfig are described as follows: -a: view the status of all NICS-V: view the version information of the ifconfig command-s: view the statistical information example: Set the IP address of the first Nic to 192.168.0.1ifcon... common network configurations and operations for ifconfigifconfig in linux p
Linux Study Notes and linux Study NotesLinux is a free and free-to-use Unix-like operating system. It is a POSIX and UNIX-based multi-user, multi-task, multi-thread and multi-CPU operating system. It can run major UNIX tool software, applications and network protocols. It supports 32-bit and 64-bit hardware. Linux inherits the network-centric Unix design philosop
Network Management of Linux (2) virtual network card in Linux , the default kernel module contains many network-related components and tools to provide management and setup of the network. Similarly,Linux is also a support for virtual network card settings, has many network adapter bindings and other functions. In the case of insufficient network card, want to us
Network configuration commands in Linux
The network structure in Linux is very complex, but the basic user space network configuration is not very difficult. If your Linux system still does not have a network or the connection to the network is faulty, configure it together or check the problem step by step. Of course, my Lin
Wildcards and regular expressions in linux, linux Regular Expressions
Wildcard
* Any character can be repeated multiple times? Any character, repeat once[] Represents a character
For example, [a, B, c] indicates any one of abc.
Wildcard is used to match the file name
Regular Expression
Regular expressions are used to match matching strings in the file.
Ls find cp does not support regular expressions
However
127.0.0.1 and ping back the IP address.
If the ping is successful, it indicates that the TCP/IP protocol is not installed properly. If the TCP/IP protocol is installed, the IP address can be pinged even if there is no Nic.
In addition, even if a host is pinged but cannot be pinged, the Network may not be faulty. In many cases, this situation may occur and you will learn it carefully later.
4. ifconfig/usr/bin/ifc
| grep siblings | Sort | Uniq Siblings:12 Second, System Information 1. View System Information 1) View kernel name # uname Equivalent # uname-s 2) View complete system information, including kernel name, hostname, kernel version, processor architecture, etc. # uname-a 2. View Redhat Release Release information # More/etc/redhat-release 3. View Host Name # hostname # Uname-n Hostname The corresponding configuration file is/etc/sysconfig/network, if hostname in the configuration file is empty, (
Tags: Linux over ifconfig car Err Python config Pac LinuOne, Linux network related 1. Ifconfig Viewing network card IPThe Ifconfig command is used to configure and display network parameters for network interfaces in the Linux ker
Linux and linux
Simple mode:
#!/usr/bin/expect -f set timeout 5 spawn ssh root@192.168.0.1expect "*assword*" send "root\r" expect "#" send "ifconfig \r" expect eof
Explanation:
Send: used to send a string to the process: receive a string from the process, for example, receive CT "* assword *"Spawn: Start a new process interact: allow user interactionH
Tags: network firewall command modify NIC to judge $path use GRE netmask ClientNetwork Information viewSet Network address:Cat /etc/sysconfig/Network-scripts/ifcfg-eth0 You will see:DEVICE=Eth0Bootproto=StaticsHWADDR=00: 0c:29:13:d1:6f Onboot=yes Type=ethernet Ipaddr=192.168. 0.212 Netmask= 255.255. 255.0 Bootproto=statics: Indicates the use of the static IP address.Onboot=Yes: Indicates that the NIC is started when it is powered on.Take the dynamic IP address addressDEVICE=e
Remote Login for Linux systemsThe configuration file for the SSHD service is/etc/ssh/ssh_config//can modify this profile to implement the SSHD service you want. For example, you can change the boot port to 11587.At present, the more common terminal login software is SECURECRT, Putty, SSH Secure shell and so on.Download putty, you can go to the official website: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.htmlLinux Configuration IPFang Y
Linux problem summary, linux Summary1. Modify the redhat performanise5 Language
Problem description: language change
Cd/etc/sysconfigVi i18nSet LANG = en_US.UTF-8Change to LANG = zh_CN.gb2312
2. bash: ifconfig: command not found
Problem description:
Switch to the root user[Root @ localhost/] $ ifconfigStill prompt: "bash:
script in the Root_qtopia root file system of the friendly arm to make the following changes.Modify the following:Modify the/etc/init.d/rcs file under Rootfs of the RAMDisk root file system to be madeAdd the following two lines of command at the bottom to automatically start the network card:/sbin/ifconfig Lo 127.0.0.1/sbin/ifconfig eth0 192.168.31.230 netmask 255.255.255.0 upThis method is discovered by a
Linux network configuration command
Nic naming rules in Linux: eth0 and eth1. The first Ethernet Card and the second card. Lo is the loopback interface, its IP address is fixed to 127.0.0.1, And the mask is 8 bits. It represents your machine.
1. ifconfig is used to view Nic Information
Ifconfig [interface]
Inte
Common linux commands and linux commands
1. Network Parameter Setting command
1. ifconfig: Query and SET network card and IP network segment parameters
1.1 man manual Definition
DESCRIPTION Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces
Comparison between Linux commands and Solaris commands-Linux general technology-Linux technology and application information. For more information, see the following. 1) view open ports
Linux: netstat-atn
Solaris: netstat-P tcp-f inet-
2) view NIC/network status
Linux:
(so Easy)
#1. Note
#在进行shell编程时, the sentence at the beginning of the # represents the comment until the end of the line.
#我们真诚地建议您在程序中使用注释. If you use annotations,
#那么即使相当长的时间内没有使用该脚本, you can understand how the script works in a very short period of time.
#2变量
#在其他编程语言中您必须使用变量. In shell programming, all variables are composed of strings, and you do not need to declare variables. To assign to a variable, you can write:
#变量名 = value
#取出变量值可以加一个美元符号 ($) in front of the variable:
#hello world
#
Http://blog.chinaunix.net/uid-346158-id-2131136.html
In linux, apart from primary, there are two types of IP addresses:1. ip alias (sub-interface)2. secondary ip (secondary ip)Can be added to a physical network card. alias is added by ifconfig. ifconfig is displayed as a sub-interface such as eth0: 1. secondary ip is supported by ip commands.Add sub-interface:#
configuration of eth0: 0. the MAC address, interrupt, and resource usage are the same as those of eth0.# Ifconfig eth0: 0 down -- remove IP alias
Like secondary ip, heartbeat provides a script called ipaddr to help us set the IP address alias. in addition, note that the IP address alias must be in the same subnet as the real IP address and cannot be in a cross-network segment.
13. Note !!! Do not place the commands mentioned above 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.