Configuration Example - H3C S12500G-EF Series Installation Manual

Table of Contents

Advertisement

Setting
Static routes
VLANs
MSTP

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-line-vty0] authentication-mode password
# Set the password to hello in plaintext.
[Sysname-line-vty0] set authentication password simple hello
# Assign user role network-admin through the user line VTY 0.
[Sysname-line-vty0] user-role network-admin
[Sysname-line-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
[Sysname-Vlan-interface1] quit
Configure static routes
# Configure a static route, with the destination IP address 172.16.1.0 and the next hop IP
address 192.168.0.2.
[Sysname] ip route-static 172.16.1.0 255.255.255.0 192.168.0.2
Configure VLANs
# Create VLAN 10 and enter its view.
[Sysname] vlan 10
[Sysname-vlan10]
# Assign port Ten-GigabitEthernet 1/0/1 to VLAN 10.
[Sysname-vlan10] port ten-gigabitethernet 1/0/1
[Sysname-vlan10] quit
Configure MSTP
# Create an MST region named example, map VLAN 10 to instance 1, and set the MSTP
revision level to 0.
[Sysname] stp region-configuration
Description
Implement static routing.
Divide the LAN into multiple VLANs for data security.
Avoids loops in a dual-homed network.
4-4

Advertisement

Table of Contents
loading

This manual is also suitable for:

S12516g-efS12508g-ef

Table of Contents