I would like to understand where advertised route are set in JunOS.
For example, in OpenBGPd it's easy, you simply set "network 1.2.3.0/24".
What is the equivalent in JunOS ? I didn't find anything very clear.
thank you in advance for answering
bgpjuniper-junosjuniper-mxrouter
I would like to understand where advertised route are set in JunOS.
For example, in OpenBGPd it's easy, you simply set "network 1.2.3.0/24".
What is the equivalent in JunOS ? I didn't find anything very clear.
thank you in advance for answering
The problem is the:
[edit protocols rsvp]
load-balance bandwidth
If you look at the Juniper documentation for Unequal Cost Load Balancing RSVP LSPs, it states:
For uneven load balancing using bandwidth to work, you must have at least two equal-cost LSPs toward the same egress router and at least one of the LSPs must have a bandwidth value configured at the [edit protocols mpls label-switched-path lsp-path-name] hierarchy level. If no LSPs have bandwidth configured, equal distribution load balancing is performed. If only some LSPs have bandwidth configured, the LSPs without any bandwidth configured do not receive any traffic.
This implies that regardless of that feature being configured, that no equal cost load balancing will happen if you do not statically set a bandwidth value on an individual LSP, like so:
[edit protocols mpls label-switched-path LSP1]
bandwidth 2g
However, auto-bandwidth does in fact count as setting a bandwidth value, despite it not being present in the configuration.
When auto bandwidth is enabled, RPD will begin monitoring bandwidth consumption. It will assign bandwidth values based on utilization, and then the "load-balance bandwidth" statement in RSVP will immediately begin attempting to keep the traffic ratios within those subscriptions (35, 35, 26, 5 respectively). The problem with this is that it never gives auto-bandwidth the chance to adjust evenly, because the "load-balance bandwidth"s goal, is to keep the traffic as close to those ratios as possible. This makes sense when they're set of something like, 10, 30, 20, 40.
It is essentially a race condition between "load-balance bandwidth" and "auto-bandwidth"
After removing:
[edit protocols rsvp] load-balance bandwidth
Traffic adjusted (with a slight hiccup, seen below):
NOTE: This is an example from a different router that was affected by the same issue.
jhead@R1> show log mpls-stats
LSP1 (LSP ID 3388, Tunnel ID 2646) 177150801 pkt 155450491134 Byte 178572 pps 152286259 Bps Util 228.46% Reserved Bw 66660264 Bps
LSP2 (LSP ID 3393, Tunnel ID 2647) 0 pkt 0 Byte 0 pps 0 Bps Util 0.00% Reserved Bw 116698880 Bps
Since you remove the ability to load-balance (for RSVP), the PFE will reprogram to only a single path until an auto-bandwidth adjust occurs automatically, or you can force an adjustment:
request mpls lsp adjust-autobandwidth
And below, are the bandwidth adjusts for 2 LSP's with the same symptoms, the configurations change and adjustments happened mid-day Friday, you can see the different in subscriptions almost immediately.
First, it is Layer 2, not level 2. The OSI model specifies seven layers. Layer 2 is the Data-Link Layer.
Layer-2 addresses, e.g. MAC addresses, are used in layer-2 frame headers to get the layer-2 frame from one host on a LAN to another host on the same LAN.
Layer-3 addresses, e.g. IPv4 addresses, are used in layer-3 packet headers to get the layer-3 packet from the source network to the destination network. A router (layer-3 device) will look up the destination layer-3 address of a layer-3 packet in its routing table to determine where to forward the layer-3 packet towards the destination layer-3 address.
Q1. If A would like to connect to the internet, let's say connect to Google, how does it do this? Does it simply look at its ARP cache and find that it doesn't know where to find google, so looks up the MAC address for the default gateway (router) and forward this frame onto the router? If this is the case, where do IP addresses come into this, what does the router then do?
A source host will compare its layer-3 network to the layer-3 network of the destination address. If the layer-3 destination address is on the same network as the source host's layer-3 address, the layer-2 destination address used is that of the destination host. If the layer-3 destination address is on a different network than the source host's layer-3 address, the source host will use the layer-2 address of its configured gateway (router). The source host will use something like ARP (Address Resolution Protocol) to resolve the layer-3 destination address, or layer-3 gateway address, to the layer-2 destination address, and it will build a layer-2 frame to encapsulate the layer-3 packet with the layer-2 destination address.
A router receiving a layer-2 frame will strip off the layer-2 frame from the layer-3 packet. The router will look up the destination layer-3 address in its routing table. If the router cannot find a match to the destination network, it will discard the layer-3 packet, other wise the routing table will tell the router where to forward the layer-3 packet. The router will build a new layer-2 frame for the interface it will use to forward the packet.
Q2. Does A and B have an IP address allocated to it? If so, how does this happen? My understanding is that the router has a DHCP, but how does it know that it needs to allocate two IP addresses to A and B? Plus, as the switch is level 2 how can it handle IP addresses?
The source and destination hosts will probably have some layer-3 address. If the path is across the Internet, the addresses will be IPv4 or IPv6 addresses. (IP stands for Internet Protocol.)
Layer-3 addresses can be assigned to a host by manually configuring it on the host, or by some automated process (DHCP for IPv4, DHCPv6, SLAAC, or Random Addressing for IPv6, etc.). How the layer-3 addresses are chosen depend on what method of assigning layer-3 addresses is used.
A switch is a layer-2 device, and it doesn't know or care what layer-3 protocols or addressing are used. A switch only looks at the layer-2 frame; it doesn't strip off the layer-2 frame to inspect the layer-3 packets the way a router does.
Best Answer
JunOS does not use a network command like you would use with a cisco router.
You will need to make use of policies and create one.
For BGP you could use
To configure BGP then you could use something like
Hope to helps you on your quest.
SleepyMan