login password from the file:[Email protected]_syslog sshpass-1.06]# sshpass echo "AHDXyjs2012" > USER.PASSWD[Email protected]_syslog sshpass-1.06]# sshpass-f user.passwd ssh [email protected]Last login:wed Dec 7 10:40:13 from 172.17.9.2062. Enter the password in clear text:[Email protected]_syslog sshpass-1.06]# sshpass-p AHDXyjs2012 ssh [email protected]Last login:wed Dec 7 11:00:12 from 172.17.9.2063. to get the password from the environment variable:[Email protected]_syslog sshpass-1.06]
Linux NIC configuration file:/etc/sysconfig/network-scripts/ifcf-xxxDevice: Which of the devices this profile applies to, this option is a required parameter and needs to be configured correctly.HWADDR: The MAC address of the corresponding device must match the MAC address of the relevant NIC. The default is not modified.Bootproto: The address configuration protocol used when activating this device, common DHCP, static, none, BOOTP, options that must be configured.onboot: The option that must be
valid. \ n \ Route Of course, if you add the-p parameter, it will be permanently effective.
Command format
Route [F] [P] [Command [Destination] [mask Netmask] [gateway][metric metric]] [if Interface]]
Command Arguments
-C Display more information
-N does not resolve names
-V Display detailed processing information
-F Display Send message
-C Display Routing cache
-F Clears the routing table for all gateway portals.
-P makes the ro
255.255.255.0 U 0 0 0 eth0169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth00.0.0.0 10.0.0.254 0.0.0.0 UG 0 0 0 eth0 #这里就是添加的默认网关记录.In particular, the route add default GW 10.0.0.254 is equivalent to the route add-net 0.0.0.0 netmask 0.0.0.0 GW 10.0.0.254B. Network routing: That is, a route to a network or network segmentGenerally, multiple network segments communicate with each other, and you want to establish a priority route, rather than a default gatew
reserved for non-useNetwork address: 0 of all main seatsBroadcast address: 1 of all main seatsNo class IP AddressCIDR (Classless Inter-domain routing):x.x.x.x/nSubnet Mask (netmask):Specifies the IP address of the network bit (netmask=1), the host bit (netmask=0)Determine if no class IP is in a network segment:Compute Network Address (NETID,IP address vs. subnet
: Unique identification of the device
IPADDR: Specify IP Address
NETMASK: Subnet Mask
Gateway: Default Gateways
DNS1: The first DNS server points to a
DNS2: The second DNS server points to a
Userctl: Whether a normal user can control this device
Peerdns: If the value of Bootproto is "DHCP", whether to allow DHCP server to assign a DNS server to direct the information to overwrite the/etc/resolv.conf file
Other related
How to calculate the subnet ID of an IP address correctly?From:How to calculate the correct subnet for a interface (document ID 1059759.1)Suitable for:Oracle database-enterprise edition-version 10.2.0.1 and laterInformation in this document applies to any platform.Goal:The subnet ID of an IP address is calculated correctly, and the subnet ID is for oifcfg.Oifcfg requires you to Pulic and Cluster_interconnect's subnet ID.However, the ifconfig command usually displays the IP address and
At the cmd command line, enter: Netstat-r or route print to view the local routing information.Each route item in the routing table has five properties, where I divide them into four parts:1, network address (network Destination), Netmask (Netmask): The result of the network address and netmask is used to define the range of network destination addresses that the
Mode = 2 XOR: same MAC same nic
Mode = 3 Broadcast: all
The major release editions are slightly different, basically divided into three types,
Debian and Ubuntu,
SUSE,
Mandriva, Fedora, and RH
-----------------------------------------------------------------------
Bind multiple NICs On Debian and Ubuntu
Experimental environment: Ubuntu 6.06 Dadder, kernel version 2.6.15-23 server
First install ifenslave
# Apt-get install ifenslave-2.6
Edit/etc/network/interfaces
Auto lo bond0 eth0
Linux-ip address preparation commands-Linux general technology-Linux technology and application information. For more information, see the following. 1. setup --- Select network configuration.
2. Netconfig
3. Change the configuration file: cd/etc/sysconfig/network-scripts (reboot after modification) or # ifconfig eth0 up or Service network restart
Use vi to change IP-gateway-netmask in the file
(Vi usage Description: vi preparation file; content ca
# ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up Description: up indicates immediate activation
Run the following command to configure multiple ip addresses for a single NIC:
# Ifconfig eth0: 0 192.168.0.1 netmask 255.255.255.0 up
# Ifconfig eth0: 1 192.168.0.2 netmask 255.255.255.0 up
After the ping test is completed, the rebootip address is changed when mu
The Debian system NIC configuration is very different from the Redhat system, Redhat is placed in the/etc/sysconfig/network-scripts directory under a large pile of files, to be modified? You're going to have a file. The Debian system is the existence of the/etc/network/interfaces file, regardless of how many network cards, all thrown in this file. Let's take a look at the contents of this file. First, a basic configuration might look like this: 1 auto lo2 iface lo inet loopback34 # The primary
of the NIC. For example, in Redhat or Fedora, the name of the Ifconfig is written into the/etc/rc.d/rc.local file;/etc/sysconfig/network/etc/sysconfig/network-scripts/ifcfg-eth0ifconfig Configuring the Network interface Syntax:Ifconfig Network port IP address HW MAC address netmask Mask address broadcast broadcast address [Up/down]ifconfig common usage:
Ifconfig: View the host activation status of the network interface situation; in the outp
Windows Route Routing Table command
Displays and modifies entries in the local IP routing table.
Grammar
Route [F] [P] [Command [Destination] [mask Netmask] [Gateway] [metric metric]] [if Interface]]
Parameters
-F
Clears all routes that are not the primary route (the netmask is 255.255.255.255), loopback network routes (destinations 127.0.0.0, network mask is 255.255.255.0) or multicast routing (destinati
The route command for the Linux system is used to display and manipulate the IP routing table (show/manipulate the IP routing table). To achieve communication between two different subnets, you need a router that connects two networks, or a gateway that is located in two networks. In a Linux system, routing is often set up to address the following issues: The Linux system has a gateway in a local area network that allows the machine to access the Internet, so it needs to set the IP address of th
12, the network access configuration process: Linux is now generally in the boot will automatically configure the network card (wired network card or wireless network card), as long as the direct set of its IP (can use DHCP), subnet mask, the default route (that is, the default gateway), and sometimes to set up DNS, you can access the Internet. These configurations now have a graphical user interface, typically in the upper-left corner of the system bar, which opens directly, and you see a wired
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.