Exam question one: How to add a route under Linux (Baidu interview question)The above is the original question, the old boy teacher translated into the following 3 questions.A. How to add a default gateway to a Linux machine using the command line,
Sshpass enable Linux to enter SSH password in plaintext parameters1. Sshpass Installation 12. parameters of sshpass 13. use of sshpass 2 These days to configure a server, in a cloud platform after the creation of a cloud server, generated a giant
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
First, the basic knowledge of the network:IP routing table acquired on the device side[[email protected]/] # Route–nKernel IP Routing TableDestination Gateway genmask Flags Metric Ref use IfaceDefault 192.168.1.1 0.0.0.0 UG 0 0 0 apcli0Default 192.16
Introduced
The route command in the Linux system can be used for the display and operation of IP routing tables. Its primary role is to create a static route that specifies a host or network through a network interface, such as eth0. When you use
Ubuntu configuration static Routing and restart effectiveFirst method: Use the route command (add temporary route)routes added to the host# route add-host 192.168.1.123 Dev eth0# route Add-host 192.168.1.123 GW 192.168.1.1routes added to the network#
Linux route command in layman's and actual case explaininghttp://blog.51cto.com/oldboy/1119453-route command in layman's use guidehttp://blog.51cto.com/oldboy/974194Video commentary of this blog post published: http://oldboy.blog.51cto.com/2561410/11
Basic Network ConfigurationTo connect a Linux host to a network, you need to configure network-related settingsGenerally include the following:Host NameIp/netmaskRouting: Default gatewayDNS ServerPrimary DNS ServerSecondary DNS serverThird-party DNS
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
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):
In Linux, you can easily bind multiple NICs to achieve load balancing and dual-line hot backup. Server Load balancer distributes the load evenly to any number of network adapters to achieve dual-line hot standby with overlapping bandwidth. That is,
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:
Configure multiple IP addresses in linux and ip addresses in linux
The Red Hat Linux is used as an example. Assume that the original system has configured an IP Address: 192.168.0000140, the configuration file path/etc/sysconfig/network-script/ifcfg-
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
The relationship between eth0 eth0:1 and eth0.1 corresponds to the relationship between the physical network card, the sub-network card, and the virtual VLAN NIC:Physical network card : Physical network card here refers to the actual network
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 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
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
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.