Difference between revisions of "Virtual Router JUNOS"
From Teknologisk videncenter
m (Created page with "=Beskrivelse= Virtual Routers bruges på Juniper Udstyr til at lave total adskildte netværk inden i den samme kasse<ref>http://kb.juniper.net/InfoCenter/index?page=content&id=KB...") |
m (→Verificer) |
||
Line 30: | Line 30: | ||
rael@SRX240# show | rael@SRX240# show | ||
instance-type virtual-router; | instance-type virtual-router; | ||
− | interface lt-0/0/ | + | interface lt-0/0/0.1; |
− | interface lt-0/0/ | + | interface lt-0/0/0.2; |
[edit routing-instances P1] | [edit routing-instances P1] | ||
Line 38: | Line 38: | ||
Exiting configuration mode | 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> | ||
</source> | </source> | ||
+ | |||
=Referencer= | =Referencer= | ||
<references/> | <references/> |
Revision as of 15:14, 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:
- Opret en virtuel router
- Tildel interfaces til den virtuelle router
- 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>