In Linux, the routing function is enabled. in linux, the routing function is enabled.
There are two methods:
1. Temporarily enable (restart is invalid)
Echo 1>/proc/sys/net/ipv4/ip_forward
Or
Vim/proc/sys/net/ipv4/ip_forward, change 0 to 1, save and exit
2. Enable permanently
Sed-I's/net. ipv4.ip _ forward = 0/net. ipv4.ip _ forward = 1/'/etc/sysctl. conf
Or
Vim/etc/sysctl. conf, change net. ipv4
1. Configure the address according to the topology2. Switch configuration[huawei]sysname SW Change switch name for SW[Sw]undo info-center enable turn off InfoCenter tips[Sw]vlan Batch 10 20 Create VLAN 10 20[Sw]interface E0/0/1 Entry interface[Sw-ethernet0/0/1]port link-type Access sets the interface mode for access[Sw-ethernet0/0/1]port Default VLAN 10Put the interface into VLAN 10[Sw-ethernet0/0/1]interface E0/0/2[Sw-ethernet0/0/2]port link-type Access[Sw-ethernet0/0/2]port Default VLAN 20Put
When using wired routing + wireless routing to access the Internet and share wireless functions in an existing wired network, you can use a wireless router as a Wireless AP (Wireless switch). The configuration steps are as follows:
1. connect to and log on to the wireless router, and change the LAN port IP address of the wireless router, such as 192.168.0.1, to avoid conflicts with other devices on the I
| while read ignore args ; do/sbin/route add -$argsdonefi
Iii. suse static routing configuration
# cat routesdefault 192.168.3.1 - -10.0.0.0 10.212.52.1 255.0.0.0 eth110.211.6.0 192.168.3.1 255.255.255.0 eth0
Note: The first configuration is the default route. The default route mask and interface can be replaced. Note that non-default routes cannot do this.
Method 2: Use the/etc/sysconfig/network/ifroute-* configuration file
/Etc/sysconfig/network/if
-address 192.168.1.1 The IP is not assigned by DHCPIP DHCP pool dhcp-test Configure DHCP address poolImport all (importing DNS and WINS server)Network 192.168.1.0 255.255.255.0 IP address range for the DHCP address poolDefault-router 192.168.1.1 Set default route (that is, Gateway) Sixth step: Configure NAT:Access-list 1 Permit 10.1.1.0 0.0.0.255 Setting the range of IP addresses allowed to access the extranetIP nat inside source List 1 interface Dialer 1 overload set NAT address translation fr
Experiments show that this experiment involves dynamic NAT, single arm routing, routing aggregation, RIP configuration, for VLAN communication and intranet access to extranet through NAT conversion.
Experiment topology diagram:
1. For SWITCH1 configuration
Configuring Link Aggregation
Switch (config) #int Port-channel 1
Switch (config-if) #int range f0/10-11
Switch (Config-if-range) #channel-group 1
based on the state of the monitored interface-once the monitored interface becomes unavailable, reduce the priority value of this router to ensure that other routers with more stable interface status in the same backup group can be more easily converted to the master router.
Experiment topology diagram:
Experiment Request:
1, the main route of VLAN 10 is R2, the backup route is r3,vlan20 vice versa;
2, on some basis to achieve routing backup an
Network Layer Routing and Application Layer Routing In the IP connection network, the correct communication between hosts is ensured by the correct routing. Here, the routing is not a hardware router, but a routing policy. First, summarize the
Background: The network environment of the existing business system is 172 CIDR blocks, and the network is connected to the public network through the firewall and routing of the uplink Huawei 8508. The business system is located in the data center on the third floor. Now, the entire business and core system need to be connected to the monitoring system PATROL host on the sixth floor. The monitoring system has 192 network segments.Host IP Address: 192
today will bring you a new technical introduction series, the name of this series is called "Routing technology in the enterprise's specific application" This is the first article series, "Static routing, default route NAT and static floating routing "I think when you see these nouns, you will not be unfamiliar, whether you are learning Cisco Certification syste
This article discusses the routing subsystem of IPV4. (The IPv6 is different from the routing process).Basic conceptsThe routing subsystem works on layer three, which is used to forward ingress traffic.The routing subsystem mainly designs routers, routes, routing tables and
Routing protocol is divided into static routing protocol and dynamic routing protocol. There are many kinds of dynamic routing protocols, such as RIP, OSPF, EIGRP, and so on.1. RIP (Routing Information Protocol) is the first open standard used between router manufacturers. R
Previous: static Router
DynamicRouting ProtocolFeatures
1) the dynamic routing protocol can automatically update its route table and send updated messages to other dynamic routing protocols it knows.
2) the purpose is to manage the work of the network administrator.
3) There must be a routing protocol suchRIPOrOSPF.
RIP route information selection Protocol
RIP is
For a self-organizing network, the routing protocol of the eighth version is a key and difficult point. So today we will discuss some of the issues of this agreement, and here we will give you a closer look. The content of this article is as follows: Research on the routing black hole attack problem of the routing protocol in the Ad-hoc network, based on the idea
Introduction to thinkphp routing mechanism, thinkphp routing mechanism
The example in this paper describes the thinkphp routing mechanism. Share to everyone for your reference, as follows:
Thinkphp supports the URL routing feature, you need to set the router_on parameter to true to enable
1. static IP routing 1. 1. A simple route table
Routing is one of the most important functions of the IP layer. The previous section briefly describes the rules used by the router to select a route based on the IP address of the IP packet. We will not repeat it here. First, let's look at a simple system route table.Destination gateway genmask flags metric ref use iface
192.168.11.0*255.255.255.0 u 0 0 0 eth
In routing failures, downstream devices cannot learn to troubleshoot multicast routing on the router as follows:
Network environment
Multicast data is forwarded to the Routera,routera on the vlanif port to terminate the VLAN information of the multicast source through two layers, all three-layer interfaces (both physical and logical) enable multicast protocol IGMP and PIM SM, and the device Routerb IGP ro
This article contains the following sections, which are recommended to read about the official documentation section before reading.
Middleware
Routing groups
Middleware
In the official document, this part is behind the route, but I want to move it to the front, which is more reasonable.
What is this?
We know that routing is a process that parses requests from clients and distributes them to the appr
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.