Configuring the basic access function, Configuration example, Configuring telnet service – H3C Technologies H3C S9800 Series Switches User Manual

Page 50: Configuring the basic network settings

Advertising
background image

42

Authentication method Feature

Application scenarios

Username and password

Complex to configure, secure, and
hierarchical user management

Environments where multiple user
roles cooperate to manage the
switch

For more information about login methods, see H3C S9800 Switch Series Fundamentals Configuration

Guide.

Configuring the basic access function

An S9800 switch without any configuration can perform basic data forwarding immediately after it is

plugged into a network. To implement more forwarding features, configure the basic network settings

in

Table 6

on the switch.

Table 6 Basic network settings

Setting Description

IP address

Enables remote switch management, for example, by using Telnet.

Static routes

Implement static routing.

VLANs

Divide the LAN into multiple VLANs for data security.

Configuration example

Configuring Telnet service

# Enter system view.

<Sysname> system-view

# Enable the Telnet server.

[Sysname] telnet server enable

# Enter the view of user line VTY 0.

[Sysname] user-interface vty 0

# Enable password authentication on the user line.

[Sysname-ui-vty0] authentication-mode password

# Set the password to hello in plaintext.

[Sysname-ui-vty0] set authentication password simple hello

# Assign user role network-admin through the user line VTY 0.

[Sysname-ui-vty0] user-role network-admin

[Sysname-ui-vty0] quit

Configuring the basic network settings

Configure IP addresses
# Create VLAN-interface 1.

[Sysname] interface vlan-interface 1

# Assign an IP address, for example, 192.168.0.1, to VLAN-interface 1.

[Sysname-Vlan-interface1] ip address 192.168.0.1 24

Advertising