Two Methods for adding a soft route in LinuxFirst:Route add-net 172.16.6.0 netmask 255.255.255.0 GW 172.16.2.254 Dev eth0/* Add a network named 172.16.6.0/24 to go through 172.16.2.254 eth0 *//*-Net added network-host added host netmask subnet mask
Route
Function Description: The route command in linux can be used to display and operate IP route tables. It is mainly used to create a static route for a specified host or network to pass through a network interface, such as eth0. When the "add"
Because the Linux system originated and developed on the Internet, it is born with powerful network functions and rich network application software, in particular, the implementation of TCP/IP network protocols is particularly mature. Linux has many
As a LinuxSA, daily operations in many places will use the script, and the server's IP generally use static IP or Mac binding, of course, the latter is relatively cumbersome to operate, while the former we can set the hostname, IP information,
#!/bin/sh#auto Change IP netmask Gateway scripts#wugk 2012-12-17Cat ++++++++ automatically modifies IP and host name information +++++++++Ethconf=/etc/sysconfig/network-scripts/ifcfg-eth0Hosts=/etc/hostsNetwork=/etc/sysconfig/networkdir=/data/backup/
Ubuntu Network Configuration for example:(1) Configure the IP address of the eth0 and activate the device at the same time. #ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up (2) configures the IP address of the eth0 alias device Eth0:1 and adds
First, add a single IP address:
New file in/etc/sysconfig/network-scripts/ifcfg-eth0:*,* is number ordinal, multiple IP is increasing in sequenceTake 0 As an example to create a file ifcfg-eth0:0cd/etc/sysconfig/network-scripts/VI ifcfg-eth0:0Enter
As a Linux SA, many parts of the day-to-day operation of the script, and the server's IP is generally static IP or Mac binding, of course, the latter comparison is relatively cumbersome, and the former we can set the host name, IP information,
Now it's time to put all of the previous theoretical knowledge into practice. Next, we will explore:
? Configuration file for network interface in Red Hat 7
? Using Ifconfig to check and configure interfaces
? Adding and editing static routes
?
Configure NIC IP alias under Linux
What is an IP alias.In the words of Windows, it is to configure multiple IP for a network card.Where to add IP aliases can be useful.Network requirements, multiple IP access testing,
Part I see: How to configure a hardware firewall
10. Address Translation (NAT)
The NAT configuration of a firewall is basically the same as the NAT configuration of a router, and it must first define the internal IP address group for NAT
First, add the route command using the route commandTo set and view the routing table, you can use the route command to set the command format for the kernel routing table:# route [Add|del] [-net|-host] target [netmask Nm] [GW GW] [[Dev] If]which
Basic knowledge of the road:1) Routing ConceptsRouting: The process of forwarding packets across an internetwork from a source host to a target hostRouters: devices that can forward packets to the correct destination and select the best path during
For more information, see linux Enterprise Application Linux server application . Today, I did a hypothesis experiment on gateways in linux. The experiment principle is very simple, and the process is like this.
I have three virtual machines,
In redhat9.0, lvs sets up the Server Load balancer server-Linux Enterprise Application-Linux server application information. The following is a detailed description. Install the required components:
Standard internal package linux-2.4.20-tar.gz,
Starting from PIX6.2, NAT and PAT can be applied to external traffic and traffic from low-security interfaces to high-security interfaces. This function is also called bi-directionalNAT )". The external NATPAT is the same as the internal NATPAT, but
What is a VM:
Using software and hardware technology, a host is divided into one "virtual" host, each host has an independent website, domain name
Nginx virtual host type:
IP-based
Based on Domain Name
Port-basedAdd two ip aliases in
This article uses the GPRS module in Linux to implement wireless Internet access. The code and method are difficult to understand, so you must read the code patiently. I believe you can learn a lot.
Dial-up Internet access through GPRS module in
60 required commands for Linux: network operation commandsNetwork Operation commands required for Linux (1)Author: Cao yuan, his posting date: 2004.11.18Because the Linux system originated and developed on the Internet, it is born with powerful
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.