H3C Switches CLI View Description(V1.00)

HomeSupportSwitchesH3C S10500 Switch SeriesReference GuidesCommand ReferencesH3C Switches CLI View Description(V1.00)
Download Book
Table of Contents
Related Documents

H3C Switches CLI View Description

CLI view description

H3C devices provide various functions and various configuration and querying commands. To facilitate CLI usage, commands are grouped into different classes by function. To use a command, you must enter the class (view) of the command.

CLI views are designed to meet various configuration requirements. The following describes the most commonly used views first: user view and system view.

User view

After logging in to the device, you are in user view. In user view, you can view the operational status and statistics.

The prompt of user view is <device name>. You can configure the device name, which is H3C by default. The default prompt of user view is as follows:

<H3C>

System view

After you input the system-view command in user view, you can enter system view:

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C]

In system view, you can execute commands to enter different function views.

Command view reference

 

 

NOTE:

·       This part describes how to enter common function views. Support for these function views depends on your device model. For more information, see the corresponding product manual.

·       In a view other than the user view, public key view, and public key code view, you can use the quit command to return to the previous view, and use the return command to return to the user view. If the current view is user view, executing the quit command breaks the connection between the user terminal and the device, and the return command is not available.

·       In public key code view, use the public-key-code end command to return to the previous view (public key view). In public key view, use the peer-public-key end command to return to the system view.

·       Pressing <Ctrl+Z> and executing the return command lead to the same result.

 

In system view, you can enter different function views. This section describes the commonly used function views of the H3C devices and how to enter these views.

Function views are described in the following sections:

·           Basic access command views

Include views related to commonly used interfaces, VLAN, MSTP, QinQ, RRPP, Smart Link, Monitor Link, and DHCP.

·           Device management command views

Include routine management operation views (user interface, NQA test group, FTP, and Job), and enhanced management operation views (IRF, cluster, ACSEI server, PoE profile, and FTTH).

·           Traffic control command views

Include views related to ACL, QoS policies, and user profiles.

·           Security command views

Include views related to ISP domain, RADIUS scheme, HWTACACS scheme, PKI, SSL, and SSH.

·           IP routing command views

Include views related to IPv4 routing protocols, such as RIP, OSPF, IS-IS, and BGP; views related to IPv6 routing protocols, such as RIPng, OSPFv3, and IPv6 BGP.

·           Multicast command views

Include views related to IGMP, MLD, PIM, IPv6 PIM, MSDP, MBGP, IPv6 MBGP, IGMP Snooping, MLD Snooping, multicast VLAN, and IPv6 multicast VLAN.

·           MPLS command views

Include views related to MPLS, VPN instances, MPLS-L2VPN, and MPLS-TE.

The following describes the views in details. Unless otherwise noted, all examples start in system view.

Basic access command views

Command view

Description

Command to enter

Example

Ethernet port view

After entering this view, you can configure attributes of the Ethernet port.

interface ethernet

[H3C] interface Ethernet 1/0/1

[H3C-Ethernet1/0/1]

interface gigabitethernet

[H3C] interface GigabitEthernet 1/0/1

[H3C-GigabitEthernet1/0/1]

interface ten-gigabitethernet

[H3C] interface Ten-GigabitEthernet 1/0/1

[H3C –Ten-GigabitEthernet1/0/1]

Ethernet subinterface view

After entering this view, you can configure attributes of the Ethernet port.

interface gigabitethernet2/0/1.1

[H3C] interface GigabitEthernet 2/0/2.1

[H3C-GigabitEthernet2/0/2.1]

Management Ethernet interface view

After entering this view, you can configure attributes of the management Ethernet interface.

interface M-Ethernet

[H3C] interface M-Ethernet 0/0/0

[H3C-M-Ethernet0/0/0]

interface M-GigabitEthernet

[H3C] interface M-GigabitEthernet 0/0/0

[H3C-M-GigabitEthernet0/0/0]

Loopback interface view

·       Create a loopback interface and enter its view.

·       After entering this view, you can configure attributes of the loopback interface.

interface loopback

[H3C] interface loopback 1

[H3C-LoopBack1]

Null 0 interface view

After entering this view, you can configure attributes of the Null 0 interface.

interface null 0

[H3C] interface null 0

[H3C-NULL0]

Tunnel interface view

·       Create a tunnel interface and enter its view.

·       After entering this view, you can configure related parameters of the tunnel interface.

interface tunnel

[H3C] interface tunnel 1

[H3C-Tunnel1]

VLAN view

·       Create a VLAN and enter its view.

·       After entering this view, you can configure attributes of the VLAN.

vlan

[H3C] vlan 2

[H3C-vlan2]

VLAN interface view

·       Create a VLAN interface and enter its view.

·       After entering this view, you can configure attributes of the VLAN interface.

interface Vlan-interface

[H3C] interface Vlan-interface 1

[H3C-Vlan-interface1]

Layer 2 aggregate interface view

·       Create a Layer 2 aggregate interface and enter its view.

·       After entering this view, you can configure attributes of the Layer 2 aggregate interface.

interface bridge-aggregation

[H3C] interface bridge-aggregation 1

[H3C-Bridge-Aggregation1]

Layer 3 aggregate interface view

·       Create a Layer 3 aggregate interface and enter its view.

·       After entering this view, you can configure attributes of the Layer 3 aggregate interface.

interface route-aggregation

[H3C] interface route-aggregation 1

[H3C-Bridge-Aggregation1]

Layer 3 aggregate subinterface view

·       Create a Layer 3 aggregate subinterface and enter its view.

·       After entering this view, you can configure attributes of the Layer 3 aggregate subinterface.

interface route-aggregation

[H3C] interface route-aggregation 1.1

[H3C-Bridge-Aggregation1.1]

Port group view

·       Create a port group and enter its view.

·       After entering this view, you can configure attributes of the port group.

port-group manual

[H3C] port-group manual group1

[H3C-port-group-manual-group1]

MST region view

After entering this view, you can configure attributes of the MST region.

stp region-configuration

[H3C] stp region-configuration

[H3C-mst-region]

QinQ view

After entering this view, you can configure the outer VLAN tag that the port adds.

qinq vid

[HP] interface GigabitEthernet1/0/1

[HP-GigabitEthernet1/0/11] qinq vid 10

[HP-GigabitEthernet1/0/11-vid-10] 

RRPP domain view

·       Create an RRPP domain and enter its view.

·       After entering this view, you can configure relevant parameters of the RRPP domain.

rrpp domain

[H3C] rrpp domain 1

[H3C-rrpp-domain1]

RRPP ring group view

·       Create an RRPP ring group and enter its view.

·       After entering this view, you can configure relevant parameters of the RRPP ring group.

rrpp ring-group

[H3C] rrpp ring-group 1

[H3C-rrpp-ring-group1]

Smart link group view

·       Create a smart link group and enter its view.

·       After entering this view, you can configure relevant parameters of the smart link group.

smart-link group

[H3C] smart-link group 1

[H3C-smlk-group1]

Monitor link group view

·       Create a monitor link group and enter its view.

·       After entering this view, you can configure relevant parameters of the monitor link group.

monitor-link group

[H3C] monitor-link group 1

[H3C-mtlk-group1]

DHCP address pool view

·       Create a DHCP address pool and enter its view.

·       After entering this view, you can configure parameters of the DHCP address pool.

dhcp server ip-pool

[H3C] dhcp server ip-pool 0

[H3C-dhcp-pool-0]

DHCPv6 address pool view

·       Create a DHCPv6 address pool and enter its view.

·       After entering this view, you can configure parameters of the DHCPv6 address pool.

ipv6 dhcp pool

[H3C] ipv6 dhcp pool 1

[H3C-dhcp6-pool-1]

 

Device management command views

Command view

Description

Command to enter

Example

 

User interface view

After entering this view, you can configure user interface parameters.

user-interface aux

[H3C] user-interface aux 0

[H3C-ui-aux0]

 

user-interface vty

[H3C] user-interface vty 0

[H3C-ui-vty0]

 

CWMP view

After entering this view, you can configure CWMP parameters.

cwmp

[H3C] cwmp

[H3C-cwmp]

 

FTP client view

Enter FTP client view to configure FTP parameters.

ftp

<H3C> ftp

[ftp]

 

Job view

·       Create a scheduled task and enter job view.

·       After entering this view, you can configure attributes of the scheduled task.

job

[H3C] job task1

[H3C-job-task1]

 

NQA test group view

·       Create an NQA test group and enter its view.

·       After entering this view, you can configure relevant attributes of the NQA test group.

nqa

[H3C] nqa entry admin test

[H3C-nqa-admin-test]

 

PoE profile view

·       Create a PoE profile and enter its view.

·       After entering this view, you can configure attributes of the PoE profile.

poe-profile

[H3C] poe-profile IPphone

[H3C-poe-profile-IPphone-1]

 

IRF port view

·       Create an IRF port and enter its view.

·       After entering this view, you can bind physical IRF port(s) to the current IRF port.

irf-port

[H3C] irf-port 1/1

[H3C-irf-port 1/1]

 

Cluster view

After entering this view, you can configure cluster functions.

cluster

[H3C] cluster

[H3C-cluster]

 

ACSEI server view

Enter ACSEI server view to configure ACSEI server parameters.

acsei server

[H3C] acsei server

[H3C-acsei-server]

 

FTTH view

After entering this view, you can configure related attributes for the EPON system.

ftth

[H3C] ftth

[H3C-ftth]

Fiber backup group view

·       Create a fiber backup group and enter its view.

·       After entering this view, you can configure related attributes for the fiber backup group.

fiber-backup group

[H3C] ftth

[H3C-ftth] fiber-backup group 1

[H3C-fiber-group1]

OLT port view

After entering this view, you can configure related attributes for the OLT port.

interface olt

[H3C] interface olt 3/0/1

[H3C-Olt3/0/1]

ONU port view

·       Create an ONU port and enter its view.

·       After entering this view, you can configure related attributes for the ONU port.

interface onu

[H3C] interface olt 3/0/1

[H3C-Olt3/0/1] using onu 16

[H3C-Olt3/0/1] quit

[H3C] interface onu 3/0/1:16

[H3C-Onu3/0/1:16]

 

Traffic control command views

Command view

Description

Command to enter

Example

Basic IPv4 ACL view

·       Create a basic IPv4 ACL and enter its view.

·       After entering this view, you can configure rules of the ACL.

acl number

[H3C] acl number 2000

[H3C-acl-basic-2000]

Advanced IPv4 ACL view

·       Create an advanced IPv4 ACL and enter its view.

·       After entering this view, you can configure rules of the ACL.

acl number

[H3C] acl number 3000

[H3C-acl-adv-3000]

Ethernet frame header ACL view

·       Create an Ethernet frame header ACL and enter its view.

·       After entering this view, you can configure rules of the ACL.

acl number

[H3C] acl number 4000

[H3C-acl-ethernetframe-4000]

Basic IPv6 ACL view

·       Create a basic IPv6 ACL and enter its view.

·       After entering this view, you can configure rules of the ACL.

acl ipv6 number

[H3C] acl ipv6 number 2000

[H3C-acl6-basic-2000]

Advanced IPv6 ACL view

·       Create an advanced IPv6 ACL and enter its view.

·       After entering this view, you can configure rules of the ACL.

acl ipv6 number

[H3C] acl ipv6 number 3000

[H3C-acl6-adv-3000]

QoS policy view

·       Create a policy and enter its view.

·       After entering this view, you can associate a class with a behavior for the QoS policy.

qos policy

[H3C] qos policy user1

[H3C-qospolicy-user1]

Traffic behavior view

·       Create a traffic behavior and enter its view.

·       After entering this view, you can configure actions in the traffic behavior.

traffic behavior

[H3C] traffic behavior behavior1

[H3C-behavior-behavior1]

Class view

·       Create a class and enter its view.

·       After entering this view, you can configure match criteria for the class.

traffic classifier

[H3C] traffic classifier class1

[H3C-classifier-class1]

Priority mapping table view

Enter priority mapping table view and configure mappings in this view.

qos map-table

[H3C] qos map-table dot1p-dp

[H3C-maptbl-dot1p-dp]

WRED table view

·       Create a WRED table and enter its view.

·       After entering this view, you can configure WRED parameters of the WRED table.

qos wred queue table

[H3C] qos wred queue table table1

[H3C-wred-table-table1]

Control plane view

After entering this view, you can apply a QoS policy to the current control plane.

control-plane

[H3C] control-plane slot 3

[H3C-cp-slot3]

User profile view

·       Create a user profile and enter its view.

·       After entering this view, you can apply a QoS policy to the user profile.

user-profile

[H3C] user-profile a123 dot1x

[H3C-user-profile-a123]

Forwarding profile view

·       Create a user-defined forwarding profile and enter forwarding profile view.

·       After entering this view, you can configure forwarding profile rules and guaranteed bandwidth.

qos forwarding-profile

[H3C] qos forwarding-profile test

[H3C-hqos-fp-test]

Scheduler policy view

·       Create a user-defined scheduler policy and enter scheduler policy view

·       After entering this view, you can nest the forwarding group and associate the forwarding group with the pre-defined forwarding profile.

qos scheduler-policy

[H3C] qos scheduler-policy test

[H3C-hqos-sp-test]

Scheduler policy layer view

After entering this view, you can instantiate a forwarding group.

layer

[H3C] qos scheduler-policy test

[H3C-hqos-sp-test] layer 1

[H3C-hqos-sp-test-layer1]

Forwarding group view

·       Create a forwarding group and enter forwarding group view.

·       After entering this view, you can nest a forwarding group and specify a forwarding profile for this forwarding group.

qos forwarding-group

[H3C] qos forwarding-group test

[H3C-hqos-fg-test]

 

Security command views

Command view

Description

Command to enter

Example

 

ISP domain view

·       Create an ISP domain and enter its view.

·       After entering this view, you can configure relevant attributes of the ISP domain.

domain

[H3C] domain test

[H3C-isp-test] 

 

Local user view

·       Add a local user and enter its view.

·       After entering this view, you can configure relevant attributes of the local user.

local-user

[H3C] local-user guest

[H3C-luser-guest]

 

User group view

·       Create a user group and enter its view.

·       After entering this view, you can configure relevant attributes of the local user group.

user-group

[H3C] user-group guest

[H3C-ugroup-guest] 

 

NAS ID profile view

·       Create a NAS ID profile and enter its view.

·       After entering this view, you can configure relevant attributes of the NAS ID profile.

aaa nas-id profile

[H3C] aaa nas-id profile aaa

[H3C-nas-id-prof-aaa]

 

RADIUS scheme view

·       Create a RADIUS scheme and enter its view.

·       After entering this view, you can configure relevant attributes of the RADIUS scheme.

radius scheme

[H3C] radius scheme rad

[H3C-radius-rad]

 

RADIUS-server user view

·       Create a RADIUS user and enter RADIUS-server user view.

·       After entering this view, you can configure a RADIUS user.

radius-server user user-name

[H3C] radius-server user user1

[H3C-rdsuser-user1]

 

HWTACACS scheme view

·       Create an HWTACACS scheme and enter its view.

·       After entering this view, you can configure relevant attributes of the HWTACACS scheme.

hwtacacs scheme

[H3C] hwtacacs scheme hwtac

[H3C-hwtacacs-hwtac]

 

IPsec proposal view

·       Create an IPsec proposal and enter its view.

·       After entering this view, you can configure related attributes for the IPsec proposal.

ipsec proposal

[H3C] ipsec proposal test

[H3C-ipsec-proposal-test]

 

IPsec policy view

·       Create an IPsec policy and enter its view.

·       After entering this view, you can configure related attributes for the IPsec policy.

ipsec policy

[H3C] ipsec policy policy1 100 manual

[H3C-ipsec-policy-manual-policy1-100]

PKI entity view

·       Create a PKI entity and enter its view.

·       After entering this view, you can configure relevant attributes of the PKI entity.

pki entity

[H3C] pki entity test

[H3C-pki-entity-test]

 

PKI domain view

·       Create a PKI domain and enter its view.

·       After entering this view, you can configure relevant attributes of the PKI domain.

pki domain

[H3C] pki domain test

[H3C-pki-domain-test]

 

PKI certificate attribute group view

·       Create a PKI certificate attribute group and enter its view.

·       After entering this view, you can configure the PKI certificate attributes.

pki certificate attribute-group

[H3C] pki certificate attribute-group test

[H3C-pki-cert-attribute-group-test]

 

PKI certificate attribute-based access control policy view

·       Create a PKI certificate attribute-based access control policy and enter its view.

·       After entering this view, you can configure relevant parameters of the PKI certificate attribute-based access control policy.

pki certificate access-control-policy

[H3C] pki certificate access-control-policy test

[H3C-pki-cert-acp-test]

 

SSL server policy view

·       Create an SSL server policy and enter its view.

·       After entering this view, you can configure relevant parameters of the SSL server policy.

ssl server-policy

[H3C] ssl server-policy test

[H3C-ssl-server-policy-test]

 

SSL client policy view

·       Create an SSL client policy and enter its view.

·       After entering this view, you can configure relevant parameters of the SSL client policy.

ssl client-policy

[H3C] ssl client-policy test

[H3C-ssl-client-policy-test]

 

Public key view

·       Create a public key and enter its view.

·       After entering this view, you can configure relevant parameters of the public key.

public-key peer

[H3C] public-key peer key1

[H3C-pkey-public-key]

 

Public key code view

·       Enter public key code view. Before that, you must create a public key and enter public key view.

·       After entering this view, you can configure relevant data of the public key.

public-key-code begin

[H3C] public-key peer key1

[H3C-pkey-public-key] public-key-code begin

[H3C-pkey-key-code]

 

 

IP routing command views

Command view

Description

Command to enter

Example

RIP view

·       Create a RIP process and enter its view.

·       After entering this view, you can configure related parameters for RIP.

rip

[H3C] rip

[H3C-rip-1]

RIPng view

·       Create a RIPng process and enter its view.

·       After entering this view, you can configure related parameters for RIPng.

ripng

[H3C] ripng

[H3C-ripng-1]

OSPF view

·       Create an OSPF process and enter its view.

·       After entering this view, you can configure OSPF related parameters.

ospf

[H3C] ospf

[H3C-ospf-1]

OSPF area view

·       Enter OSPF area view.

·       After entering this view, you can configure OSPF area related parameters.

area

[H3C] ospf

[H3C-ospf-1] ar

[H3C-ospf-1] area 0

[H3C-ospf-1-area-0.0.0.0]

BGP view

·       Create a BGP process and enter its view.

·       After entering this view, you can configure BGP related parameters.

bgp

[H3C] bgp 1

[H3C-bgp]

IPv6 address family view

·       Enter IPv6 address family view

·       After entering this view, you can configure IPv6 BGP related parameters.

ipv6-family

[H3C] bgp 1

[H3C-bgp] ipv6

[H3C-bgp] ipv6-family

[H3C-bgp-af-ipv6]

IS-IS view

·       Create an IS-IS process and enter its view.

·       After entering this view, you can configure IS-IS related parameters.

isis

[H3C] isis

[H3C-isis-1]

Route policy view

·       Create a route policy and enter its view.

·       After entering this view, you can configure route policy related parameters.

route-policy

[H3C] route-policy policy-1 permit node 0

Info: New Sequence of this List

[H3C-route-policy]

 

Multicast command views

Command view

Description

Command to enter

Example

IPv4 MBGP address family view

·       Create an IPv4 MBGP address family and enter its view.

·       After entering this view, you can configure related parameters of the IPv4 MBGP address family.

ipv4-family multicast

[H3C] bgp 100

[H3C-bgp] ipv4-family multicast

[H3C-bgp-af-mul]

IPv6 MBGP address family view

·       Create an IPv6 MBGP address family and enter its view.

·       After entering this view, you can configure related parameters of the IPv6 MBGP address family.

ipv6-family multicast

[H3C] bgp 100

[H3C-bgp] ipv6-family multicast

[H3C-bgp-af-ipv6-mul]

BGP-MDT subaddress family view

Enter BGP-MDT subaddress family view to configure BGP-MDT subaddress family related parameters.

ipv4-family mdt

[H3C] bgp 100

[H3C-bgp] ipv4-family mdt

[H3C-bgp-af-mdt]

PIM view

·       You must enable multicast routing before you can enter PIM view.

·       Configure related parameters in PIM view.

pim

[H3C] multicast routing-enable

[H3C] pim

[H3C-pim]

IGMP view

·       You must enable multicast routing and before you can enter IGMP view.

·       Configure related parameters in IGMP view.

igmp

[H3C] multicast routing-enable

[H3C] igmp

[H3C-igmp]

MSDP view

·       You must enable multicast routing before you can enter MSDP view.

·       Configure related parameters in MSDP view.

msdp

[H3C] multicast routing-enable

[H3C] msdp

[H3C-msdp]

IPv6 zone view

·       Create an IPv6 zone and enter its view.

·       After entering this view, you can configure related parameters of the IPv6 zone.

ipv6 zone

[H3C] ipv6 zone test

[H3C-ipv6-zone-test]

IPv6 PIM view

·       You must enable IPv6 multicast routing before you can enter IPv6 PIM view.

·       After entering this view, you can configure related parameters for IPv6 PIM.

pim ipv6

[H3C] multicast ipv6 routing-enable

[H3C] pim ipv6

[H3C-pim6]

MLD view

·       You must enable IPv6 multicast routing before you can enter MLD view.

·       After entering this view, you can configure related parameters for MLD.

mld

[H3C] multicast ipv6 routing-enable

[H3C] mld

[H3C-mld]

MLD-Snooping view

Enter MLD-Snooping view to configure MLD snooping related parameters.

mld-snooping

[H3C] mld-snooping

[H3C-mld-snooping]

IGMP-Snooping view

Enter IGMP-Snooping view to configure IGMP snooping related parameters.

igmp-snooping

[H3C] igmp-snooping

[H3C-igmp-snooping]

Multicast VLAN view

·       Before executing the command, enable IGMP snooping globally in system view, create a VLAN to be configured as a multicast VLAN, and enable IGMP snooping in the VLAN.

·       Create a multicast VLAN and enter its view.

·       After entering this view, you can configure related parameters of the multicast VLAN.

multicast-vlan

[H3C] igmp-snooping

[H3C-igmp-snooping] quit

[H3C] vlan 100

[H3C-vlan100] igmp-snooping enable

[H3C-vlan100] quit

[H3C] multicast-vlan 100

[H3C-mvlan-100]

IPv6 multicast VLAN view

·       Before executing the command, enable IGMP snooping globally in system view, create a VLAN to be configured as an IPv6 multicast VLAN, and enable IGMP snooping in the VLAN.

·       Create an IPv6 multicast VLAN and enter its view.

·       After entering this view, you can configure related parameters of the IPv6 multicast VLAN.

multicast-vlan ipv6

[H3C] mld-snooping

[H3C-mld-snooping] quit

[H3C] vlan 100

[H3C-vlan100] mld-snooping enable

[H3C-vlan100] quit

[H3C] multicast-vlan ipv6 100

[H3C-ipv6-mvlan-100]

 

MPLS command views

There are a large number of MPLS command views. To configure MPLS extension functions and enter the corresponding command views, you must enable MPLS basic functions first.

The following figure shows the relationship between MPLS command views.

Figure 1 Relationship between MPLS command views

 

MPLS basics command views

Command view

Description

Command to enter

Example

MPLS view

·       Configure the LSR ID before enabling MPLS and entering MPLS view.

·       After entering this view, you can configure attributes related to MPLS basics.

mpls

[H3C] mpls lsr-id 1.1.1.1

[H3C] mpls

[H3C-mpls]

 

MPLS LDP command views

Command view

Description

Command to enter

Example

MPLS LDP view

·       Enable MPLS before enabling LDP and entering MPLS LDP view.

·       After entering this view, you can configure relevant attributes for LDP.

mpls ldp

[H3C] mpls

[H3C-mpls] quit

[H3C] mpls ldp

[H3C-mpls-ldp]

MPLS LDP remote peer view

·       Enable LDP before creating an MPLS LDP remote peer and entering MPLS LDP remote peer view.

·       After entering this view, you can configure relevant attributes for the LDP remote peer.

mpls ldp remote-peer

[H3C] mpls ldp remote-peer test

[H3C-mpls-ldp-remote-test]

MPLS LDP VPN instance view

·       Enable LDP and create the corresponding VPN instance (for how to create a VPN instance, see MPLS L3VPN command views) before enabling LDP for the VPN instance and entering MPLS LDP VPN instance view.

·       After entering this view, you can configure LDP-related attributes for the VPN instance.

mpls ldp vpn-instance

[H3C] mpls ldp vpn-instance vpn1

[H3C-mpls-ldp-vpn-instance-vpn1]

 

MPLS L2VPN command views

Command view

Description

Command to enter

Example

MPLS L2VPN view

·       Enable MPLS and MPLS L2VPN before creating an MPLS-L2VPN connection and entering MPLS L2VPN view.

·       After entering this view, you can configure relevant attributes for the current MPLS L2VPN connection.

mpls l2vpn

[H3C] mpls

[H3C-mpls] quit

[H3C] mpls l2vpn

[H3C] mpls l2vpn vpn1 encapsulation ethernet

[H3C-mpls-l2vpn-vpn1]

MPLS L2VPN CE view

·       Create an MPLS L2VPN CE and enter its view.

·       After entering this view, you can configure relevant attributes for the current CE.

ce

[H3C] mpls l2vpn vpn1 encapsulation ethernet

[H3C-mpls-l2vpn-vpn1] ce ce1 id 1

[H3C-mpls-l2vpn-ce-vpn1-ce1]

Service instance view

·       Enter Ethernet port view before creating a service instance and entering service instance view.

·       After entering this view, you can configure the match criteria and remote peer for the service instance on the current port.

service-instance

[H3C] interface gigabitethernet 2/0/1

[H3C-GigabitEthernet2/0/1] service-instance 100

[H3C-GigabitEthernet2/0/1-srv100]

PW class template view

·       Create a PW class template and enter its view.

·       After entering this view, you can configure contents for the current PW class template.

pw-class

[H3C] pw-class pw100

[H3C-pw-pw100]

BGP L2VPN address family view

·       Enable BGP L2VPN address family and enter its view.

·       After entering this view, you can configure the parameters for advertising BGP routes in an MPLS L2VPN network.

l2vpn-family

[H3C] bgp 1

[H3C-bgp] l2vpn-family

[H3C-bgp-af-l2vpn]

 

MPLS TE command views

Command view

Description

Command to enter

Example

Enter explicit path view

·       Enable MPLS and then MPLS TE before entering explicit path view.

·       After entering this view, you can configure nodes for the explicit path.

explicit-path

[H3C] mpls

[H3C-mpls] mpls te

[H3C-mpls] quit

[H3C] explicit-path path1

[H3C-explicit-path-path1]

 

VPLS command views

Command view

Description

Command to enter

Example

VSI view

·       Enable MPLS and MPLS L2VPN before creating a VPLS instance and entering VSI view.

·       After entering this view, you can configure relevant attributes for the current VPLS instance.

vsi

[H3C] mpls

[H3C-mpls] quit

[H3C] mpls l2vpn

[H3C] vsi aaa static

[H3C-vsi-aaa]

VSI BGP view

·       Specify the signalling protocol for VPLS as BGP, and enter VSI BGP view.

·       After entering this view, you can configure the BGP attributes for the VPLS instance.

pwsignal bgp

[H3C] vsi aaa static

[H3C-vsi-aaa] pwsignal bgp

[H3C-vsi-aaa-bgp]

VSI LDP view

·       Specify the signalling protocol for VPLS as LDP, and enter VSI LDP view.

·       After entering this view, you can configure the LDP attributes for the VPLS instance.

pwsignal ldp

[H3C] vsi aaa static

[H3C-vsi-aaa] pwsignal ldp

[H3C-vsi-aaa-ldp]

PW class template view

·       Create a PW class template and enter its view.

·       After entering this view, you can configure contents for the current PW class template.

pw-class

[H3C] pw-class pw100

[H3C-pw-pw100]

BGP VPLS address family view

·       Enable BGP VPLS address family and enter BGP VPLS address family view.

·       After entering this view, you can configure a peer for the BGP VPLS instance.

vpls-family

[H3C] bgp 1

[H3C-bgp] vpls-family

[H3C-bgp-af-vpls]

Service instance view

·       Enter Ethernet port view before creating a service instance and entering its view.

·       After entering this view, you can configure the match criteria and remote peer for the service instance on the current port.

service-instance

[H3C] interface gigabitethernet 2/0/1

[H3C-GigabitEthernet2/0/1] service-instance 100

[H3C-GigabitEthernet2/0/1-srv100]

 

MPLS L3VPN command views

Command view

Description

Command to enter

Example

VPN instance view

·       Create a VPN instance and enter its view.

·       After entering this view, you can configure attributes for the VPN instance.

ip vpn-instance

[H3C] ip vpn-instance vpn1

[H3C-vpn-instance-vpn1]

BGP VPN instance view

·       Create the corresponding VPN instance before entering BGP VPN instance view.

·       After entering this view, you can configure BGP-related attributes for the VPN instance.

ipv4-family vpn-instance

[H3C] bgp 1

[H3C-bgp] ipv4-family vpn-instance vpn1

[H3C-bgp-vpn1]

BGP-VPNv4 subaddress family view

·       Enable BGP-VPNv4 subaddress family and enter BGP-VPNv4 subaddress family view.

·       After entering this view, you can configure the parameters for advertising BGP-VPNv4 routes in an MPLS L3VPN network.

ipv4-family vpnv4

[H3C] bgp 1

[H3C-bgp] ipv4-family vpnv4

[H3C-bgp-af-vpnv4]

Tunneling policy view

·       Create a tunneling policy and enter tunneling policy view.

·       After entering this view, you can configure the preference for tunnel selection and the number of tunnels for load balancing.

tunnel-policy

[H3C] tunnel-policy po1

[H3C-tunnel-policy-po1]

 

 

 

Copyright © 2011 Hangzhou H3C Technologies Co., Ltd.

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网