Difference between revisions of "JunOS BGP"

From ppwiki
Jump to navigation Jump to search
Line 22: Line 22:
 
[[JunOS Basics[https://www.papaulgigitech.com/wiki/JunOS_Basics]]
 
[[JunOS Basics[https://www.papaulgigitech.com/wiki/JunOS_Basics]]
  
The process is the same.Please refer to the link above
+
The process is the same. Please refer to the link above
 
* Access the router
 
* Access the router
 
* Setup the root password
 
* Setup the root password
Line 28: Line 28:
 
* Create a privilege user
 
* Create a privilege user
 
* setup Management interface and enable SSH
 
* setup Management interface and enable SSH
 +
 +
Note: for the management setup, since we are using a router the management interface on the MX80 is not me0 like on the switch. The management interface is fxp0. See below for the how the management interface is setup.
 +
 +
root@cr1-tx# show interfaces
 +
fxp0 {
 +
    description mgmt;
 +
    unit 0 {
 +
        family inet {
 +
            address 10.192.0.103/24;
 +
        }
 +
    }
 +
}

Revision as of 22:13, 1 March 2019

In this Tutorial We will be discussing how to setup an External Border Gateway Protocol (EBGP) between two routers.

Prerequisites

To complete this tutorial, you will need:

  • A laptop running Linux or MacOS. for this tutorial I will be using a laptop running Ubuntu 16
  • A console cable. Since all the new laptops today don't come with a USB port, you will need a USB to Console adapter
  • The program "Screen"

If you don't have "screen" install it with the command below

sudo apt-get install screen

The Goal

File:Bgp1.png

Our goal is to setup the network like in the above image.

We have 2 offices. One in Texas and the other one in San Fransisco. Both offices have a Juniper MX80 router. The Texas router cr1-tx is in AS 17 and the San Fransico router cr1-sfo is in AS 29. We need to setup an External Border Gateway Protocol (EBGP) to connect both offices.

Router Setup

We are going to perform the basic setup of the router like we did for the switches in [[JunOS Basics[1]]

The process is the same. Please refer to the link above

  • Access the router
  • Setup the root password
  • Setup the device name
  • Create a privilege user
  • setup Management interface and enable SSH

Note: for the management setup, since we are using a router the management interface on the MX80 is not me0 like on the switch. The management interface is fxp0. See below for the how the management interface is setup.

root@cr1-tx# show interfaces 
fxp0 {
    description mgmt;
    unit 0 {
        family inet {
            address 10.192.0.103/24;
        }
    }
}