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/02 Report--
Lab name: border gateway routing, ip interworking
Experimental topography:
4. Purpose of the experiment |: 1. Enable the virtual port of AR11 to ping 192.168.200.1
five. The technologies involved are: ospf, bgp, confederation (Alliance)
6. Configuration idea: the establishment of bgp neighbors is established on the premise of interworking of the whole network, that is, routes are reachable, ospf is used to make interworking of the whole network, then neighbors are established, and finally confederation (alliance) is introduced, so that ar11 can ping 192.168.200.1.
# before configuration, I'd like to give a brief introduction. Bgp
# bgp: border gateway routing protocol
# function: it is used to control the reliable transmission of the route, and can realize the flexible control of the route and ensure that there is no loop.
It is generally used for disconnected enterprises or organizations.
How bgp works:
In fact, advanced routing works about the same way: (advanced routing refers to: ospf,rip,igrp eigrp ^ ^)
# make neighbors
Synchronize database
Calculate the routing tabl
# configuration step: first configure ip addresses for AR11 and AR14,AR13, and use ospf to interconnect the whole network / / because the premise of establishing neighbors is that the route must be reachable
# configure the ip address of AR11,AR14,AR13
# configure the ip address of AR1:
Interface g0/0/0
Ip address 192.168.12.1 255.255.255.0
Undo shutdown
Interface loopback 1
Ip address 10.1.1.1 255.255.255.0 / / use virtual ports to establish neighbors'
Interface loopback 0
Ip address 192.168.100.1 255.255.255.0
# configure the ip address of AR 14
Interface g0/0/0
Ip address 192.168.12.2 255.255.255.0
Interface g0/0/1
Ip address 192.168.13.1 255.255.255.0
Interface loopback 1
Ip address 10.10.2.2 255.255.255.0
# configure the ip address of AR 13
Interface g0/0/1
Ip address 192.168.13.2 255.255.255.0
Interface loopback 1
Ip address 10.10.3.3 255.255.255.0
Interface loopback 0
Ip address 192.168.200.1 255.255.255.0
# next, use ospf to allow the interconnection of the whole network. The premise is that loopback 0 cannot be declared
# configure ospf on AR11 to create area 0
Ospf 1
Area 0
Network 192.168.12.1 0.0.0.0
Network 10.10.1.1 0.0.0.0
# configure ospf on AR14 to create area 0
Ospf 1
Area 0
Network 192.168.12.2 0.0.0.0
Network 192.168.13.1 0.0.0.0
Network 10.10.2.2 0.0.0.0
# configure ospf on AR13 to create area 0
Ospf 1
Area 0
Network 192.168.13.2 0.0.0.0
Network 10.10.3.3
# Verification and testing to make the whole network interoperable, except for the address of loopback 0
As shown in the following figure:
# the figure above shows that the network is fully connected. Next, you can configure neighbors, establish neighbors, and introduce confederation (federation) to enable interconnection of the whole network.
# configure AR11 and establish neighbors with 10.10.2.2
# bgp 64512
Confederation id 200 / / Union account, indicating answer AS
Peer 10.10.2.2 as-number 64512 / / private address, range 64512-65535
Peer 10.10.2.2 connect-interface loopback 1 / / this mechanism should be used because it is a non-directly connected port
# configure AR14 and establish neighbors with 10.10.1.1 and 10.10.3.3
# bgp 64512
Confederation id 200
Confederation peer-as 64513swap / Alliance member
Peer 10.10.1.1 as-number 64512 / / establish neighbors with internal neighbors
Peer 10.10.1.1 connet-interface loopback 1
Peer 10.10.3.3 as-number 64513 / / establish neighbors with external neighbors
Peer 10.10.3.3 connet-interface loopback 1
Peer 10.10.3.3 ebgp-max-hop / / because it is a non-directly connected ebgp neighbor relationship, we need to modify that the TTL value is not 1. If it is not 1, we will not care about this mechanism, so we use this command, and the maximum hop count is 255hops.
#
Configure AR14 to establish a neighbor relationship with 10.10.2.2
#
Bgp 64513
Confederation id 200
Confederation peer-as 64512
Peer 10.10.2.2 as-numeber 64512
Peer 10.10.2.2 connect-interface loopback 1
Peer 10.10.2.2 begp-max-hop
# next, enable bgp routing, and enable bgp routing on AR11 and AR14.
# bgp 64512
Network 192.168.100.1 255.255.255.0 / / on AR11
# bgp 64513
Network 192.168.200.1 255.255.255.0 / / on AR14
Verification and testing: ping-a 192.168.100.1 192.168.200.1 / / 192.168.100.1 as the source and 192.168.200.1 as the destination
As shown in the following figure:
# the above figure shows that the test is successful
End
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.