Difference between revisions of "Virtual Router JUNOS"

From Teknologisk videncenter
Jump to: navigation, search
m (Verificer)
m (Beskrivelse)
Line 6: Line 6:
 
#Tildel interfaces til den virtuelle router
 
#Tildel interfaces til den virtuelle router
 
#Konfigurer routing options for den virtuelle router(optional)
 
#Konfigurer routing options for den virtuelle router(optional)
 +
=Setup=
 +
Følgende setup blive konfigureret med RIP:
 +
{|
 +
|[[Image:VR Setup.png|800px|left|thumb|Setup]]
 +
|}
 +
 
=Opret virtuel router=
 
=Opret virtuel router=
 
Her oprettes et routing instance af typen virtual router
 
Her oprettes et routing instance af typen virtual router

Revision as of 15:23, 16 October 2014

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)

Setup

Følgende setup blive konfigureret med RIP:

Setup

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/0.1</input>

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

Verificer

P2 er også oprettet og P1 pringer P2 for at kontrollere forbindelserne

[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> <input>show route table P1.inet.0</input>

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> <input>ping routing-instance P1 10.0.0.1</input>
PING 10.0.0.1 (10.0.0.1): 56 data bytes
64 bytes from 10.0.0.1: icmp_seq=0 ttl=64 time=0.817 ms
64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.497 ms
<input>^C</input>
--- 10.0.0.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.497/0.657/0.817/0.160 ms

rael@SRX240> <input>ping routing-instance P1 10.0.0.2</input>
PING 10.0.0.2 (10.0.0.2): 56 data bytes
64 bytes from 10.0.0.2: icmp_seq=0 ttl=64 time=24.933 ms
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=1.088 ms
<input>^C</input>
--- 10.0.0.2 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.088/13.011/24.933/11.923 ms

Referencer