In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
With regard to this experiment, first of all, I would like to thank the technical god for teaching me to learn BGP, ISIS, MPLS, SR and other protocols, as well as ODL and Pathman-SR to control the network. I spent two days learning BGP and MPSL for this experiment.
And spent hours studying ISIS. The later installation of ODL and SR took × × weeks. Whether ODL or Pathman-SR, it was a pit, and I almost gave up, but thanks to the technical advice, it was successfully completed.
ODL (OpenDayLight) is a modular, scalable, scalable, multi-protocol controller framework developed based on SDN. In fact, you can refer to the official website. The following is a diagram of the ODL controller architecture:
1. The system needs to be installed for the following:
1.1 Linux CentOS (6.8) + JDK (1.7 +), personal habits CentOS + Python (2.7.3)
1.2 ODL (Nitrogen SR1 0.7.1). The installation of ODL is relatively simple. Please refer to the official website. But there is a trap. As a novice, I install all the plug-ins.
1.3 Pathman-SR needs the support of JDK 1.7, and the installation is relatively simple. Install the official website installation documentation step by step, and then you only need to modify the IP.
1.4 EVE-NG, this is an artifact, you can experiment with anything, welfare! You need to import the IOS of XR and XE routers that support SR protocol.
The following figure shows the network topology diagram of this lab:
Pmur01 runs BGP, ISIS, Segment Routing and runs BGP, ISIS, Segment Routing to connect PE-01 and PE-02 for RR and ODL ControllerL
Pmur02-- Pmur06 runs ISIS and Segment Routing
II. ODL Controller description
2.1It is easy to install ODL. Download it from the official website and decompress it to the specified directory. You need to change the org.apache.karaf.management.cfg file parameters before installation, as follows:
2.2 after the modification is completed, go to the / opt/karaf/bin directory and run the. / kararf command, as shown below:
2.3 if you use feature:install to install various pieces, for a novice like me, I install all the plug-ins. About how to use the feature command, please refer to the official website.
2.4 modify the file / opt/karaf/etc/opendaylight/bgp/protocols-config.xml of BGP, as shown below:
2.5. Because ODL needs to connect to the router and establish BGP neighbors, to change the default port of the original ODL BGP from 1790 to 179, you can use postman to modify it, as shown below:
2.6 restart ODL and use netstat-antp after completing the above jobs | whether grep 179 is working properly:
3. P1 router basic settings (XE)
3. 1 ISIS routing protocols
Net 49.0001.1000.0000.0000.0001.00
Is-type level-2-only
Metric-style wide
Distribute link-state-- > BGP-IS is used to communicate with ODL
Segment-routing mpls-- > from SR
Redistribute connected
Mpls traffic-eng router-id Loopback0-- > MPLS TE project
Mpls traffic-eng level-2
3. 2 BGP routing protocols
3.3 mpsl te configuration:
Mpls traffic-eng tunnels
Mpls traffic-eng pcc peer 172.16.100.201 source 10.0.0.1
Mpls traffic-eng pcc report-all
3.4 SR configuration:
Segment-routing mpls
!
Connected-prefix-sid-map
Address-family ipv4
10.0.0.1 range 32 index 1-- > between the notes is the entire network router PID needs to be unique
Exit-address-family
3.4 Interface configuration
4. The other P (XR) settings are as follows. The PE setting is similar to other P configurations, but the difference is to increase the configuration of BGP.
Ipv4 unnumbered mpls traffic-eng Loopback0
Interface Loopback0
Ipv4 address 10.0.0.6 255.255.255.255
!
Interface MgmtEth0/0/CPU0/0
Shutdown
!
Interface GigabitEthernet0/0/0/0
Ipv4 address 10.0.1.54 255.255.255.252
!
Interface GigabitEthernet0/0/0/1
Ipv4 address 10.0.1.58 255.255.255.252
!
Interface GigabitEthernet0/0/0/2
Ipv4 address 10.0.1.49 255.255.255.252
!
Interface GigabitEthernet0/0/0/3
Ipv4 address 10.0.1.30 255.255.255.252
!
Router isis odl
Is-type level-2-only
Net 49.0001.1000.0000.0000.0006.00
Log adjacency changes
Address-family ipv4 unicast
Metric-style wide
Mpls traffic-eng level-2-only
Mpls traffic-eng router-id Loopback0
Redistribute connected
Segment-routing mpls
!
Interface Loopback0
Address-family ipv4 unicast
Prefix-sid index 6
!
!
Interface GigabitEthernet0/0/0/0
Point-to-point
Address-family ipv4 unicast
!
!
Interface GigabitEthernet0/0/0/1
Point-to-point
Address-family ipv4 unicast
!
!
Interface GigabitEthernet0/0/0/2
Point-to-point
Address-family ipv4 unicast
!
!
Interface GigabitEthernet0/0/0/3
Point-to-point
Address-family ipv4 unicast
!
!
!
Mpls traffic-eng
Pce
Peer source ipv4 10.0.0.6
Peer ipv4 172.16.100.201
!
Segment-routing
Logging events peer-status
Stateful-client
Instantiation
!
!
Logging events all
Auto-tunnel pcc
Tunnel-id min 1 max 99
!
Reoptimize timers delay installation 0
!
End
V. Pathman-SR configuration
5.1After completing the above router configuration, enter the pathman-sr installation directory and use. / odl_test.py to check whether the configuration is correct. There are three check items, bgp netconf pcep, as shown below.
5.2 if there is no problem with the check, execute. / rest_server_v6.py, and then open http://172.16.100.201:8020/cisco-ctao/apps/pathman_sr/index.html on the browser to see the topology diagram, as shown below:
5.3Test ODL control routes, such as pe01-- > pe-02
5.4 choose one of the routes and execute them, as shown in the figure:
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
Why do I need to establish a DevSecOps?
© 2024 shulou.com SLNews company. All rights reserved.