In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
One, default route
A default route is a special static route, which is used only if no clear matching route entry is found in the routing table.
Configure the default route: when accessing Internet, there is only one network egress, so there is no need to configure it at this time.
Second, floating routing
Floating route refers to the configuration of a static route with a larger administrative distance as an emergency backup path. If the primary route is valid, the floating route will not appear in the routing table.
1. Configure the command for floating routing:
Ip route x.x.x.x y.y.y.y n.n.n.n {ad}
The ad is larger than the default AD (Cisco is 1, Huawei is 60;)
Ip route-static x.x.x.x y.y.y.y n.n.n.n preference {value}
2. Type of route: (1) directly connected route
(2) non-directly connected routes: 1) static 2) dynamic IGP (Interior Gateway routing Protocol)
DV- distance Vector routing Protocol RIP IGRP EIGRP
LS- Link-State routing Association ISIS OSPF
EGP (external Gateway routing Protocol) BGP
3. Composition of route entry: type prefix / mask attribute next pop-out port
S 192.168.1.0/24 [1/0] 192.168.2.3 gi0/0
When going to the same destination network segment, there may be multiple routing entries, and the router will choose an optimal entry to put in the routing table (RIB/FIB).
(1) compare AD values, the smaller the better.
(2) if the AD is the same, compare the Metric, the smaller the better
(3) if both are the same, they are all put into the routing table to form a load balancer.
4, Note: when the router receives an IP packet, it will select the best forwarding entry in the routing table. The principle used in this case is-the longest matching principle!
192.168.1.1-> 192.168.3.1
The router acts as the gateway for VLAN, the multilayer switch acts as the gateway for VLAN:
(1) physical interface (2) virtual interface
& enable the routing function globally
Gateway (config) # ip routing / / enable routing
& set the port to a layer 3 port and configure the gateway IP address
Gateway (config) # interface fas0/24
Gateway (config-if) # no shutdown
Gateway (config-if) # no switchport / / disable layer 2 function and enable layer 3 function
Gateway (config-if) # ip address 192.168.10.254 255.255.255.0
Third, the configuration of the switch:
1. Determine which VLAN needs to be configured with gateways
2, if the VLAN is not available on the layer 3 switch, create
3, create the corresponding SVI for each VLAN
4, configure each SVI with an IP address
5, if necessary, configure dynamic or static routes for layer 3 switches
The method of realizing VLAN interworking in layer 3 switch:
# configure VLAN and Trunk on layer 2 switch
# configure VLAN and Trunk on layer 3 switch
# View the routing table on the layer 3 switch
How to configure routing on a layer 3 switch:
# configure VLAN,Trunk
# configure routing on layer 3 switches and routers
# View the routing table on the layer 3 switch
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.