Login into logical-systems

In this post I will show you how you can login into your logical-system from local and remote via Telnet or SSH. This is very useful because a logical-system act mostly like a real router.

We use again the following topology:

Logical_Systems

Local login

You can login into a logical-system with a set command in cli. This is an example:

admin@routergt; set cli logical-system R1
Logical system: R1

admin@router:R1> show interfaces descriptions
Interface Admin Link Description
fe-0/2/2.50 up up R1 to R2
fe-0/2/2.51 up up R1 to R3
admin@router:R1>

Remote login

To enable a remote login, you must specify a login class, which refers to the logical-system. Here is an example configuration for user „admin-r1“ which should directly login into the logical-system R1:

system {
    login {
        class R1 {
            logical-system R1;
            permissions all;
        }
        user admin-r1 {
            uid 2006;
            class R1;
            authentication {
                encrypted-password "$1$iXXJi2eb$6HpGQOOP/YaNjVNYYN5ae0"; ## SECRET-DATA
            }
        }
    }
}

Now you can access the logical-system via Telnet or SSH:

login as: admin-r1
admin-r1@192.168.1.1's password:
--- JUNOS 10.4R13.4 built 2013-02-14 07:27:44 UTC
admin-r1@router:R1> show interfaces descriptions
Interface Admin Link Description
fe-0/2/2.50 up up R1 to R2
fe-0/2/2.51 up up R1 to R3
admin-r1@router:R1>

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.