Jumat, Agustus 31, 2012

Configuration Line vty 0 4 telnet

Assalamu`alaikum Wr.Wb.

I will now post on configuring telnet password. and then this is configuration Procedure
In this example, passwords are configured for users attempting to connect to the router on the VTY lines using Telnet.

    From the privileged EXEC (or "enable") prompt, enter configuration mode and enter username/password combinations, one for each user for whom you want to allow access to the router:

        router#configure terminal
            Enter configuration commands, one per line.  End with CNTL/Z.
            router(config)#username telkom password bandung
            router(config)#username spilner password jakarta
            router(config)#username ahri password karawang

    Switch to line configuration mode, using the following commands. Notice that the prompt changes to reflect the current mode.

        router(config)#line vty 0 4
        router(config-line)#

    Configure password checking at login.

        router(config-line)#login local

    Exit configuration mode.

        router(config-line)#end
        router#
        %SYS-5-CONFIG_I: Configured from console by console

    Note: In order to disable auto Telnet when you type a name on the CLI, configure no logging preferred on the line that is used. While transport preferred none provides the same output, it also disables auto Telnet for the defined host that are configured with the ip host command. This is unlike the no logging preferred command, which stops it for undefined hosts and lets it work for the defined ones.

Verify the Configuration

Examine the configuration of the router to verify that the commands have been properly entered:

    show running-config - displays the current configuration of the router.

        router#show running-config
        Building configuration...
        !

        !--- Lines omitted for brevity

        !
        username telkom password 0 bandung
        username spilner password 0 jakarta
        username ahri password 0 karawang
        !

        !--- Lines omitted for brevity

        !
        line con 0
        line 1 8
        line aux 0
        line vty 0 4
         login local
        !
        end

Here is a sample output if the address of interface ethernet 0 were 10.1.1.1:

    router#telnet 10.1.1.1
    Trying 10.1.1.1 ... Open

    User Access Verification
    Username: ahri
    Password:

    !--- Password entered here is not displayed by the router

Semoga bermanfaat.