Virtual Router JUNOS

From Teknologisk videncenter
Revision as of 15:14, 16 October 2014 by Rael (talk | contribs) (Verificer)
Jump to: navigation, search

Beskrivelse

Virtual Routers bruges på Juniper Udstyr til at lave total adskildte netværk inden i den samme kasse[1]. Det er en af de forkskellige typer af Routing Instance JUNOS understøtter.
I de forskellige Virtuelle routere vil routnings tabel, interfaces og tabeller være helt adskidlte.

Følgende skal konfigureres for at bruge virtuelle routere:

  1. Opret en virtuel router
  2. Tildel interfaces til den virtuelle router
  3. Konfigurer routing options for den virtuelle router(optional)

Opret virtuel router

Her oprettes et routing instance af typen virtual router

[edit]
rael@SRX240# <input>set routing-instances P1 instance-type virtual-router</input>

[edit]
rael@SRX240#

Tildel interfaces

Her tildeles 2 logiske tunnel interfaces til routeren P1

[edit routing-instances P1]
rael@SRX240# <input>set interface lt0/0/1.1</input>

[edit routing-instances P1]
rael@SRX240# <input>set interface lt0/0/3.2</input>

Verificer

[edit routing-instances P1]
rael@SRX240# show
instance-type virtual-router;
interface lt-0/0/0.1;
interface lt-0/0/0.2;

[edit routing-instances P1]
rael@SRX240# <input>commit and-quit</input>
commit complete
Exiting configuration mode

rael@SRX240> show route table P1.inet.0

P1.inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.0.0.0/30        *[Direct/0] 00:01:02
                    > via lt-0/0/0.1
10.0.0.1/32        *[Local/0] 00:01:02
                      Local via lt-0/0/0.1
10.0.0.8/30        *[Direct/0] 00:01:02
                    > via lt-0/0/0.10
10.0.0.10/32       *[Local/0] 00:01:02
                      Local via lt-0/0/0.10

rael@SRX240>

Referencer