No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Typical Configuration Examples

CloudEngine 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring VSs

Configuring VSs

Applicable Products and Versions

This example applies to the CE12800 and CE12800E V100R002C00 or later. The CE12800E does not support the VS function after FD-X series cards are installed.

Networking Requirements

As shown in Figure 2-23, SwitchA is a core switch on the network and carries multiple Layer 2 and Layer 3 services.

On the network, all services need to be processed by the main processing units (MPUs) of the physical system (PS). In such a case, when a service failure on the PS causes a failure of the PS, other services running on the PS cannot be properly forwarded. To prevent this problem, users require that Layer 2 and Layer 3 services deployed on the PS be isolated from each other to improve network security.

Figure 2-23 Networking diagram for configuring VSs

Configuration Roadmap

The configuration roadmap is as follows:
  1. Create VS 1 and VS 2, and allocate physical interfaces and logical resources to them.

  2. Configure management IP addresses and management accounts for VSs to facilitate VS management.

Procedure

  1. Create VSs and allocate resources to them.

    # Create VS 1, configure the interface assignment mode for VS 1 as group, and configure VS 1 to use the default logical resource specifications. Assign physical interfaces 10GE1/0/0 to 10G1/0/23 to VS 1.

    NOTE:

    After you assign any port to a VS in group mode, the other ports that use the same forwarding chip as this port are allocated assign to the VS. For example, ports 10GE1/0/0 to 10G1/0/23 use the same forwarding chip. After you assign 10GE1/0/0 to vs1, ports 10GE1/0/0 to 10G1/0/23 are automatically assigned to vs1.

    Before assigning physical interfaces to a VS in port group mode, run the display device port-map [ slot slot-id ] command in the user view or system view to view the mapping between forwarding chips and interfaces to learn which interfaces will be assigned to the VS.

    <HUAWEI> system-view
    [~HUAWEI] sysname SwitchA
    [*HUAWEI] commit
    [~SwitchA] admin
    [~SwitchA-admin] virtual-system vs1
    [*SwitchA-admin-vs:vs1] port-mode group
    [*SwitchA-admin-vs:vs1] assign interface 10ge 1/0/0
    Warning: All configurations of the interfaces and their subinterfaces will be deleted. Interfaces 10GE1/0/0-23 of the same group will be assigned. Continue? [Y/N]: y
    [*SwitchA-admin-vs:vs1] quit
    [*SwitchA-admin] commit
    

    # Create VS 2, configure the interface assignment mode for VS 2 as group, and configure VS 2 to use the default logical resource specifications. Assign physical interfaces 10GE1/0/24 to 10GE1/0/47 to VS 2.

    [~SwitchA-admin] virtual-system vs2
    [*SwitchA-admin-vs:vs2] port-mode group
    [*SwitchA-admin-vs:vs2] assign interface 10ge 1/0/24
    Warning: All configurations of the interfaces and their subinterfaces will be deleted. Interfaces 10GE1/0/24-47 of the same group will be assigned. Continue? [Y/N]: y
    [*SwitchA-admin-vs:vs2] quit
    [*SwitchA-admin] commit
    

  2. Verify the configuration.

    # Check detailed information about VS 1.

    [~SwitchA-admin] display virtual-system name vs1 verbose
    Name         : vs1
    Status       : running
    Description  :
    Create time  : 2013-07-18 09:32:01
    Port mode    : group
    System MAC   : 000a-0b0c-0d04
    Assigned slot(s)
    pvmb         : 9
    pvmb         : 10
    CPU(s)
    slot 9       : 0%
    slot 10       : 0%
    Memory(s)
    slot 9       : 5%, 202632/3884636 (Used Kbytes/Max Kbytes)
    slot 10       : 2%, 202628/8021592 (Used Kbytes/Max Kbytes)
    Assigned interface(s)
      10GE1/0/0, slot 1
      10GE1/0/1, slot 1
      10GE1/0/2, slot 1
      10GE1/0/3, slot 1
      10GE1/0/4, slot 1
      10GE1/0/5, slot 1
      10GE1/0/6, slot 1
      10GE1/0/7, slot 1
      10GE1/0/8, slot 1
      10GE1/0/9, slot 1
      10GE1/0/10, slot 1
      10GE1/0/11, slot 1
      10GE1/0/12, slot 1
      10GE1/0/13, slot 1
      10GE1/0/14, slot 1
      10GE1/0/15, slot 1
      10GE1/0/16, slot 1
      10GE1/0/17, slot 1
      10GE1/0/18, slot 1
      10GE1/0/19, slot 1
      10GE1/0/20, slot 1
      10GE1/0/21, slot 1
      10GE1/0/22, slot 1
      10GE1/0/23, slot 1
    Assigned resource(s)
    u4route      : 60000(Max)
    m4route      : 1000(Max)
    u6route      : 16000(Max)
    m6route      : 100(Max)
    vlan         : 4063(Max)
    vpn-instance : 4096(Max)
    cpu          : 5(weight)
    memory       : 100(ratio-threshold)
    mpls         : enable
    trill        : enable
    mcast        : enable
    

    # Check detailed information about VS 2.

    [~SwitchA-admin] display virtual-system name vs2 verbose
    Name         : vs2
    Status       : running
    Description  :
    Create time  : 2013-07-18 09:34:22
    Port mode    : group
    System MAC   : 000a-0b0c-0d05
    Assigned slot(s)
    pvmb         : 9
    pvmb         : 10
    CPU(s)
    slot 9       : 0%
    slot 10       : 0%
    Memory(s)
    slot 9       : 5%, 202632/3884636 (Used Kbytes/Max Kbytes)
    slot 10       : 2%, 201272/8021592 (Used Kbytes/Max Kbytes)
    Assigned interface(s)
      10GE1/0/24, slot 1
      10GE1/0/25, slot 1
      10GE1/0/26, slot 1
      10GE1/0/27, slot 1
      10GE1/0/28, slot 1
      10GE1/0/29, slot 1
      10GE1/0/30, slot 1
      10GE1/0/31, slot 1
      10GE1/0/32, slot 1
      10GE1/0/33, slot 1
      10GE1/0/34, slot 1
      10GE1/0/35, slot 1
      10GE1/0/36, slot 1
      10GE1/0/37, slot 1
      10GE1/0/38, slot 1
      10GE1/0/39, slot 1
      10GE1/0/40, slot 1
      10GE1/0/41, slot 1
      10GE1/0/42, slot 1
      10GE1/0/43, slot 1
      10GE1/0/44, slot 1
      10GE1/0/45, slot 1
      10GE1/0/46, slot 1
      10GE1/0/47, slot 1
    Assigned resource(s)
    u4route      : 60000(Max)
    m4route      : 1000(Max)
    u6route      : 16000(Max)
    m6route      : 100(Max)
    vlan         : 4063(Max)
    vpn-instance : 4096(Max)
    cpu          : 5(weight)
    memory       : 100(ratio-threshold)
    mpls         : enable
    trill        : enable
    mcast        : enable
    

  3. Configure management IP addresses and management accounts for VSs.

    # Switch from the Admin-VS to VS 1 and configure a management IP address and management account for VS 1.

    [~SwitchA-admin] return
    <SwitchA> switch virtual-system vs1
    <SwitchA-vs1> system-view
    [~SwitchA-vs1] interface MEth 0/0/0
    [~SwitchA-vs1-MEth0/0/0] ip address 10.1.1.10 24
    [*SwitchA-vs1-MEth0/0/0] quit
    [*SwitchA-vs1] user-interface vty 0 4
    [*SwitchA-vs1-ui-vty0-4] authentication-mode aaa
    [*SwitchA-vs1-ui-vty0-4] user privilege level 3
    [*SwitchA-vs1-ui-vty0-4] quit
    [*SwitchA-vs1] aaa
    [*SwitchA-vs1-aaa] local-user vs1_user password cipher VS1_password
    [*SwitchA-vs1-aaa] local-user vs1_user service-type telnet
    [*SwitchA-vs1-aaa] local-user vs1_user level 3
    [*SwitchA-vs1-aaa] quit
    [*SwitchA-vs1] undo telnet server disable
    [*SwitchA-vs1] commit
    

    # The configuration of VS 2 is the same as that of VS 1 and is not provided here.

Verifying the Configuration

# Use the configured IP address, user name, and password to log in to the VSs through Telnet. Use the PC as an example to log in to the VSs.
NOTE:

The routes between the client and VSs must be reachable.

C:\Documents and Settings\Administrator> telnet 10.1.1.10

# Press Enter, and enter the configured user name and password in the login window. If authentication is successful, the command-line prompt of the user view is displayed, the user has successfully logged in to the VS.

Username:vs1_user
Password:
Warning: Please change the original password.
The password needs to be changed. Change now? [Y/N]: n
Info: The max number of VTY users is 5, the number of current VTY users online is 1, and total number of terminal users online is 1.
      The current login time is 2013-03-22 19:06:41.
      First login successfully.
<vs1>

Configuration File

  • Configuration file of SwitchA

    #
    sysname SwitchA
    #
    admin
     virtual-system vs1 
      port-mode group
      resource u4route upper-limit 60000
      resource m4route upper-limit 1000
      resource u6route upper-limit 16000
      resource m6route upper-limit 100
      resource vlan upper-limit 4063
      resource mpls enable
      resource trill enable
      resource mcast enable
      resource vpn-instance upper-limit 4096
      resource cpu weight 5
      resource memory ratio-threshold 100
      assign interface 10GE1/0/0
      assign interface 10GE1/0/1
      assign interface 10GE1/0/2
      assign interface 10GE1/0/3
      assign interface 10GE1/0/4
      assign interface 10GE1/0/5
      assign interface 10GE1/0/6
      assign interface 10GE1/0/7
      assign interface 10GE1/0/8
      assign interface 10GE1/0/9
      assign interface 10GE1/0/10
      assign interface 10GE1/0/11
      assign interface 10GE1/0/12
      assign interface 10GE1/0/13
      assign interface 10GE1/0/14
      assign interface 10GE1/0/15
      assign interface 10GE1/0/16
      assign interface 10GE1/0/17
      assign interface 10GE1/0/18
      assign interface 10GE1/0/19
      assign interface 10GE1/0/20
      assign interface 10GE1/0/21
      assign interface 10GE1/0/22
      assign interface 10GE1/0/23
     virtual-system vs2 
      port-mode group
      resource u4route upper-limit 60000
      resource m4route upper-limit 1000
      resource u6route upper-limit 16000
      resource m6route upper-limit 100
      resource vlan upper-limit 4063
      resource mpls enable
      resource trill enable
      resource mcast enable
      resource vpn-instance upper-limit 4096
      resource cpu weight 5
      resource memory ratio-threshold 100
      assign interface 10GE1/0/24
      assign interface 10GE1/0/25
      assign interface 10GE1/0/26
      assign interface 10GE1/0/27
      assign interface 10GE1/0/28
      assign interface 10GE1/0/29
      assign interface 10GE1/0/30
      assign interface 10GE1/0/31
      assign interface 10GE1/0/32
      assign interface 10GE1/0/33
      assign interface 10GE1/0/34
      assign interface 10GE1/0/35
      assign interface 10GE1/0/36
      assign interface 10GE1/0/37
      assign interface 10GE1/0/38
      assign interface 10GE1/0/39
      assign interface 10GE1/0/40
      assign interface 10GE1/0/41
      assign interface 10GE1/0/42
      assign interface 10GE1/0/43
      assign interface 10GE1/0/44
      assign interface 10GE1/0/45
      assign interface 10GE1/0/46
      assign interface 10GE1/0/47
    #
    return
    
  • Configuration file of VS 1

    #
    sysname vs1
    #
    aaa
     local-user vs1_user password cipher %^%#TT4N+w]%[C+rM>)S8Ti!'p1iV@RZh(3MO7QGd96Z%^%#
     local-user vs1_user service-type telnet
     local-user vs1_user level 3
    #
    interface MEth0/0/0
     ip address 10.1.1.10 255.255.255.0
    #
    user-interface vty 0 4
     authentication-mode aaa
     user privilege level 3
    #
    return
    
  • Configuration file of VS 2

    #
    sysname vs2
    #
    aaa
     local-user vs2_user password cipher %^%#%j]%Lv%StAqIveR"YfuS<{^%;~p*$D<&&@X/Xs(/%^%#
     local-user vs2_user service-type telnet
     local-user vs2_user level 3
    #
    interface MEth0/0/0
     ip address 10.1.1.20 255.255.255.0
    #
    user-interface vty 0 4
     authentication-mode aaa
     user privilege level 3
    #
    return
    
Download
Updated: 2019-04-03

Document ID: EDOC1000039339

Views: 114576

Downloads: 7519

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next