Escolar Documentos
Profissional Documentos
Cultura Documentos
Carrier-Class Router
ZTE CORPORATION
No. 55, Hi-tech Road South, ShenZhen, P.R.China
Postcode: 518057
Tel: +86-755-26771900
Fax: +86-755-26770801
URL: http://support.zte.com.cn
E-mail: support@zte.com.cn
LEGAL INFORMATION
Copyright 2014 ZTE CORPORATION.
The contents of this document are protected by copyright laws and international treaties. Any reproduction or
distribution of this document or any portion of this document, in any form by any means, without the prior written
consent of ZTE CORPORATION is prohibited.
Revision History
Revision No.
Revision Date
Revision Reason
R1.0
2014-10-20
First edition.
SJ-20140731105308-008|2014-10-20 (R1.0)
Contents
About This Manual ......................................................................................... I
Chapter 1 Interface Information Displaying ............................................. 1-1
1.1 Interface Types .................................................................................................. 1-1
1.2 Interface Naming Rule ........................................................................................ 1-1
1.3 Viewing Interface Information .............................................................................. 1-3
Figures............................................................................................................. I
Glossary ........................................................................................................ III
IV
SJ-20140731105308-008|2014-10-20 (R1.0)
Intended Audience
This manual is intended for the following engineers:
l
l
l
Summary
1, Interface Information
Displaying
2, Basic Interface
Configuration
3, Ethernet Interface
Configuration
4, VLAN Configuration
5, QinQ Configuration
6, SuperVLAN Configuration
7, SmartGroup Configuration
9, CPOS Interface
Configuration
configuration examples.
I
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter
Summary
Configuration
Configuration
configuration examples.
Configuration
Conventions
This manual uses the following conventions:
Typeface
Meaning
Italics
Bold
Constant width
Text that you type, program codes, filenames, directory names, and
function names.
[]
Optional parameters.
II
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 1
Interface Information
Displaying
Table of Contents
Interface Types...........................................................................................................1-1
Interface Naming Rule................................................................................................1-1
Viewing Interface Information .....................................................................................1-3
Physical interfaces
Physical interfaces refer to physically existing interfaces, such as Ethernet interfaces
of the LAN and POS interfaces of the WAN.
Logical interfaces
Logical interfaces refer to virtually existing interfaces that are created in configuration,
such as loopback and SuperVLAN interfaces.
For a description of interface types and their corresponding physical interfaces, refer
to Table 1-1.
Table 1-1 Interface Types and Corresponding Physical Interfaces
Interface Type
Physical Interface
gei
xgei
xlgei
cgei
pos
POS interface
1-1
SJ-20140731105308-008|2014-10-20 (R1.0)
l
l
l
l
l
Interface Type
Physical Interface
cpos
CPOS interface
Logical Interfaces
The Logical interfaces of the ZXR10 M6000-S are named in accordance with the following
rule: <Interface type> <Port ID>.
l
For a description of interface types and their corresponding logical interfaces, refer to
Table 1-2.
Table 1-2 Interface Types and Corresponding Logical Interfaces
Interface Type
Logical Interface
bvi
Bvi interface
cip
CIP interface
loopback
loopback interface
gre_tunnel
GRE_TUNNEL interface
smartgroup
Smartgroup interface
supervlan
SuperVLAN interface
null
Null interface
te_tunnel
TE_TUNNEL interface
mte_tunnel
MTE_TUNNEL interface
multilink
Multilink interface
mgmt_eth
Management interface
qx
ulei
Ulei interface
v6_tunnel
V6_TUNNEL interface
virtual_template
Virtual_template interface
posgroup
Posgroup interface
vbui
Vbui interface
ipsec_tunnel
Ipsec_tunnel interface
SJ-20140731105308-008|2014-10-20 (R1.0)
gei0/1/0/1: No.1 port on No.0 Gigabit Ethernet subcard in No.1 slot in No.0 shelf
pos30/4/0/1: No.1 port on No.0 POS card in No.4 slot in No.0 shelf
Function
ZXR10#show ip interface
in brief.
ZXR10#show ip interface brief [<interface-name>]
interfaces in brief.
ZXR10# show ip interface brief include <line>
Function
Command
Function
ll]
of an interface.
Function
1-4
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 2
2-1
SJ-20140731105308-008|2014-10-20 (R1.0)
Among class A, B and C addresses, some addresses are reserved for private networks.
This is recommended that private network addresses must be used for establishing internal
networks. These addresses refer to:
l
l
l
IP Subnet Classification
Address division is originally intended to facilitate design of routing protocols, so that
header feature bit of an IP address is enough for judging type of a network. However,
classification method restricts utilization of address space to greatest extent. With rapid
expansion of Internet, problem of insufficient addresses becomes more and more serious.
To utilize IP addresses to greater extent, a network can be divided into multiple subnets.
The "bit borrowing" mode can be used: highest bits of host bits are borrowed to serve
as subnet bits and left host bits still serve as host bits. Thus structure of an IP address
consists of three parts: Network bits, subnet bits and host bits.
Network bits and subnet bits are used to uniquely identify a network. Use subnet mask to
find which part in IP address indicates network bits and subnet bits, which part stands for
host bits. The part with subnet mask of "1" corresponds to network bits and subnet bits of
IP address, while the part with subnet mask of "0" corresponds to host bits.
Division of subnets greatly improves utilization of IP addresses, which relieves the problem
of insufficient IP addresses to some extent.
Regulations on IP addresses are shown below.
l
l
l
l
l
2-2
SJ-20140731105308-008|2014-10-20 (R1.0)
Steps
1. Configure an IP address.
Step
Command
Function
ZXR10(config)#interface <interface-name>
Configures an IP address.
address><net-mask>|<A.B.C.D/X>}[<broadcast-address>|
secondary]
Note:
secondary refers to the secondary address of the interface.
Function
>|[{exclude | include}<line>]]]
Steps
1. Configure a byname and description for an interface.
Step
Command
Function
ZXR10(config-if-interface-name)#byname
<WORD>
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
ZXR10(config-if-interface-name)#description
<line>
Command
Function
exclude | include}<line>]]]
specified interface.
specified interface.
Steps
1. Bind an interface to a VRF instance.
Step
Command
Function
ZXR10(config-vrf-vrf-name)#rd {<0-65535>:<0-4
294967295>|A.B.C.D:<0-65535>|<1-65535>.<0-6553
5>:<0-65535>}
3
ZXR10(config-vrf-vrf-name)#exit
2-4
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
ZXR10(config-if-interface-name)#ip vrf
forwarding <vrf-name>
instance.
Function
End of Steps
Configuration Flow
1. Configure main IP addresses of R1 and R2.
2. Test the configuration result to confirm that R1 and R2 can ping each other.
Configuration Command
Configuration on R1:
R1(config)#interface gei-0/1/0/1
R1(config-if-gei-0/1/0/1)#ip address 10.1.1.1 255.255.255.0
R1(config-if-gei-0/1/0/1)#no shutdown
R1(config-if-gei-0/1/0/1)#exit
Configuration on R2:
R2(config)#interface gei-0/1/0/2
2-5
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Verification
Verify the configuration on R1:
R1#ping 10.1.1.2
sending 5,100-byte ICMP echoes to 10.1.1.2,timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max = 129/185/200ms.
The result suggests that the addresses are configured correctly and R1 and R2 can
communicate normally.
Configuration Flow
1. Configure the auxiliary IP addresses of R1 and R2 (Before the configuration, ensure
that the main IP addresses have been configured for R1 and R2).
2. Test the configuration result to confirm that R1 and R2 can ping each other.
Configuration Command
Configuration on R1:
R1(config)#interface gei-0/1/0/1
R1(config-if-gei-0/1/0/1)#ip address 11.1.1.1 255.255.255.0
R1(config-if-gei-0/1/0/1)#ip address 10.1.1.1 255.255.255.0 secondary
2-6
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration on R2:
R2(config)#interface gei-0/1/0/2
R2(config-if-gei-0/1/0/2)#ip address 11.1.1.2 255.255.255.0
R2(config-if-gei-0/1/0/2)#ip address 10.1.1.2 255.255.255.0 secondary
R2(config-if-gei-0/1/0/2)#no shutdown
R2(config-if-gei-0/1/0/2)#exit
Configuration Verification
Verify the configuration on R1:
R1#ping 10.1.1.2
sending 5,100-byte ICMP echoes to 10.1.1.2,timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max= 129/185/200ms.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max= 129/185/200ms.
The result suggests that the addresses are configured correctly and R1 and R2 can
communicate normally.
An important problem is that the larger the IP MTU value is set, the more packets are
saved in cache. Thus, the client sends packets with lower rate that causes the time
delay for sending packets is bigger. When a large packet is transmitted from a PC to
another PC, it will pass through many network connections which have smaller IP MTU
2-7
SJ-20140731105308-008|2014-10-20 (R1.0)
values. In this way, the large packet will be disassembled, sent and reassembled. The
packet transmission time is increased a lot.
However, IP MTU value cannot be set too small because each packet has a 40 bytes
header containing important control information. The header occupies lots of available
bandwidth if IP MTU value is smaller.
For example, a 56k modem can upload data at 4200bytes/second. If IP MTU value is
set to 90 bytes, and the header occupies 40 bytes (44% of the size of the whole data
packet). The utilization rate of bandwidth is very low.
Steps
1. Configure an IP MTU.
Step
Command
Function
<byname>}
For an ATM interface, ATM sub-interface, and atm_dslgroup interface, the range of
the IP MTU is 68 to 9588, and the default value is 1500.
For an Ethernet interface, ulei interface, smartgroup interface, eth_dslgroup interface,
qx interface, and bvi interface, the range of the IP MTU is 68 to 9586, and the
default value is 1500. For an Ethernet sub-interface, ulei sub-interface, smartgroup
sub-interface, eth_dslgroup sub-interface, and supervlan interface, the range of the
IP MTU is 68 to 9578, and the default value is 1500.
For a POS interface, a POS sub-interface, and posgroup interface, the range of the IP
MTU is 68 to 9596, and the default value is 4470.
For a multilink interface, the range of the IP MTU is 68 to 9590, and the default value
is 4470.
For a channelized cpos_e1 interface, channelized cpos_e1 sub-interface, channelized
ce1 interface, dialer interface, and serial interface, the range of the IP MTU is 68 to
9596, and the default value is 1500.
For a loopback interface, virtual_template interface, IPv6 tunnel, TE tunnel, vbui
interface, L3 VLAN interface, vbui sub-interface, and IPsec tunnel, the range of the IP
MTU is 68 to 9600, and the default value is 1500.
2-8
SJ-20140731105308-008|2014-10-20 (R1.0)
For a GRE tunnel, the range of the IP MTU is from 68 to 9600, and the default value
is 1476.
2. Verify the configurations.
Command
Function
End of Steps
Configuration Flow
1. Enter interface configuration mode.
2. Configure IP MTU value of the interface.
Configuration Command
Configuration on R1:
ZXR10(config)#interface gei-0/7/1/4
ZXR10(config-if-gei-0/7/1/4)#ip mtu 1300
ZXR10(config-if-gei-0/7/1/4)#no shutdown
ZXR10(config-if-gei-0/7/1/4)#exit
Configuration Verification
View the configuration of the IP MTU on gei-0/7/1/4.
ZXR10(config)#show running-config-interface gei-0/7/1/4
!<if-intf>
interface gei-0/7/0/4
no shutdown
ip mtu 1300
2-9
SJ-20140731105308-008|2014-10-20 (R1.0)
Steps
1. Configure the interface MTU.
Step
Command
Function
<byname>}
mode.
ZXR10(config-if-interface-name)#mtu <bytes>
For an ATM interface, ATM sub-interface, and atm_dslgroup interface, the range of
the MTU is 1512 to 9600, and the default value is 1600.
For an Ethernet interface, ulei interface, smartgroup interface, eth_dslgroup interface,
bvi interface, and qx interface, the range of the MTU is 1514 to 9600, and the default
value is 1600.
2-10
SJ-20140731105308-008|2014-10-20 (R1.0)
For a pos interface, pos sub-interface, and dialer interface, the range of the MTU is
1504 to 9600, and the default value is 4600.
For a multilink interface, the range of the MTU is 1510 to 9600, and the default value
is 1600.
For an Ethernet sub-interface, ulei sub-interface, smartgroup sub-interface,
eth_dslgroup sub-interface, and supervlan interface, the range of the MTU is 1522 to
9600, and the default value is 1600.
For a channelized ce1 interface, posgroup interface, channelized cpos_e1 interface,
channelized cpos_e1 sub-interface, and serial interface, the range of the MTU is 1504
to 9600, and the default value is 1600.
2. Verify the configurations.
Command
Function
Steps
1. Configure the MPLS MTU for an interface.
Step
Command
Function
<byname>}
mode.
ZXR10(config-if-interface-name)#mpls mtu
<bytes>
interface.
For an ATM interface, ATM sub-interface, and atm_dslgroup interface, the range of
the MPLS MTU is 689588, and the default value is 1550.
For an Ethernet interface, ulei interface, and smartgroup interface, the range of the
MPLS MTU is 689586, and the default value is 1550.
For an Ethernet sub-interface, ulei sub-interface, smartgroup sub-interface, and
supervlan interface, the range of the MPLS MTU is 689578, and the default value
is 1550.
2-11
SJ-20140731105308-008|2014-10-20 (R1.0)
For a pos interface, pos sub-interface, posgroup interface, and serial interface, the
range of the MPLS MTU is 689596, and the default value is 4820.
For a channelized ce1 interface and channelized cpos_e1 interface, the range of the
MPLS MTU is 689596, and the default value is 1550.
For a multilink interface, the range of the MPLS MTU is 689590, and the default value
is 1550.
For a loopback interface, virtual_template interface, te tunnel interface, and L3 VLAN
interface, the range of the MPLS MTU is 689600, and the default value is 1550.
2. Verify the configuration.
Command
Function
<interface-name>: name of the specified interface. If this parameter is not set, basic
information about all interfaces is displayed. If this parameter is set, basic information
about the specified interface is displayed.
End of Steps
Steps
1. Enable an interface.
Step
Command
Function
<byname>}
mode.
ZXR10(config-if-interface-name)#no shutdown
2. Disable an interface.
Step
Command
Function
<byname>}
mode.
ZXR10(config-if-interface-name)#shutdown
2-12
SJ-20140731105308-008|2014-10-20 (R1.0)
Command
Function
exclude | include}<line>]]]
Configuration Flow
1. Configure the MTU of an interface.
2. Send traffic. ZXR10 forwards traffic.
Configuration Command
Set the MTU value of the gei-0/1/0/1 interface to 2000, and the IP MTU value of the
interface to 1982.
ZXR10(config)#interface gei-0/1/0/1
ZXR10(config-if-gei-0/1/0/1)#mtu 2000
ZXR10(config-if-gei-0/1/0/1)#ip mtu 1982
ZXR10(config-if-gei-0/1/0/1)#no shutdown
ZXR10(config-if-gei-0/1/0/1)#exit
Configuration Verification
View the configuration result.
ZXR10(config)#show interface gei-0/1/0/1
2-13
SJ-20140731105308-008|2014-10-20 (R1.0)
2-14
SJ-20140731105308-008|2014-10-20 (R1.0)
Steps
1. Configure MAC attributes.
Step
Command
Function
ZXR10(config)#mac
ZXR10(config-mac)#delete{[mac ]| [interface
<interface_name>]|[vlan <1-4094>]}
ZXR10(config-mac)#aging-time <seconds>
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
ZXR10(config-mac)#limit-maximum
<num>[interface <interface-name>]
{enable|disable}
{enable|disable}
10
{enable|disable}
11
{enable|disable}
12
13
14
15
16
ZXR10(config-mac)#learn-priority interface
<interface-name>{default|lower|normal|higher}
ZXR10(config)#vpls <vpls-name><multi-mac-spaces>
ZXR10(config-vpls-name)#mac
ZXR10(config-vpls-name-mac)#move-dampening
{enable|disable}
17
ZXR10(config-vpls-name-mac)#move-dampening-fr
equency <move-frequency>
2-16
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
18
Command
Function
ZXR10(config-vpls-name-mac)#move-dam
19
20
ZXR10(config-vpls-name-mac)#move-dampening-
interval <count-interval>
ZXR10(config-vpls-name-mac)#move-dampening-ti
meout <retry-timeout>
21
22
23
ZXR10(config-vpls-name-mac)#learn-dampening
{enable|disable}
ZXR10(config-vpls-name-mac)#learn-dampening-
interval <count-interval>
ZXR10(config-vpls-name-mac)#learn-dampening-ti
meout <retry-timeout>
ZXR10(config-vpls-name-mac)#filter
24
{source|destination|both}<mac-address>[to
<mac-address-end>][ vlan <vlan-id>]
Description
permanent
mac
MAC address.
interface <interface-name>
Interface name.
all-owner-vlan
vlan <vlan-id>
VLAN ID.
Description
mac
MAC address.
interface <interface-name>
Interface name.
vlan <vlan-id>
VLAN ID.
2-17
SJ-20140731105308-008|2014-10-20 (R1.0)
Description
<60-630>
<0>
Description
source
both
destination
mac
MAC address.
vlan <1-4094>
VLAN ID.
Description
interface <interface-name>
Interface name.
<num>
Description
drop
forward
For a description of the parameters in Steps 811, refer to the following table.
Parameter
Description
enable
disable
For a description of the parameters in Step 12, refer to the following table.
2-18
SJ-20140731105308-008|2014-10-20 (R1.0)
Parameter
Description
interface<interface-name>
Interface name.
default
lower
normal
higher
For a description of the parameter in Step 16, refer to the following table.
Parameter
Description
{enable|disable}
For a description of the parameter in Step 17, refer to the following table.
Parameter
Description
<move-frequency>
For a description of the parameters in Step 18, refer to the following table.
Parameter
Description
interface<interface-name>
Interface name.
{unblockable|blockable level
{primary|secondary}}
For a description of the parameter in Step 19, refer to the following table.
Parameter
Description
<count-interval>
For a description of the parameter in Step 20, refer to the following table.
Parameter
Description
<retry-timeout>
For a description of the parameter in Step 21, refer to the following table.
Parameter
Description
{enable|disable}
For a description of the parameter in Step 22, refer to the following table.
Parameter
Description
<count-interval>
SJ-20140731105308-008|2014-10-20 (R1.0)
For a description of the parameter in Step 23, refer to the following table.
Parameter
Description
<retry-timeout>
For a description of the parameter in Step 24, refer to the following table.
Parameter
source
Description
Indicates that packets with the specified source MAC address
are to be filtered out.
destination
both
<mac-address>
<vlan-id>
VLAN ID.
to
<mac-address-end>
End of Steps
2-20
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 3
Ethernet Interface
Configuration
Table of Contents
Ethernet Interface Overview .......................................................................................3-1
Ethernet Interface Configuration .................................................................................3-2
Ethernet Interface Configuration Example ..................................................................3-4
There are two working modes on Ethernet electrical interface, half-duplex and full-duplex
mode. Ethernet electrical interface has self-negotiation mode, it can negotiate working
mode and speed with other network devices. Ethernet electrical selects the appropriate
working mode and speed automatically, thus simplifying system configuration and
management.
In Open System Interconnection (OSI) seven layer model defined by International
Organization for Standardization (ISO), physical layer defines the physical interfaces
between two devices and their electrical, procedural and mechanical characteristics and
so on. The functions of Ethernet physical layer is similar to that defined by ISO. Ethernet
physical layer provides a standard. The network devices can communicate with each
other if manufactories produce them according to the same standard.
Ethernet physical layer has two working modes, full-duplex and half-duplex mode. The
different medium access modes are provided for them,
l
l
Full-duplex and half-duplex are physical layer concepts, and provide different access
modes for duplex modes in physical layer that is data link layer concept. In this way, an
important Ethernet feature is formed, data link layer and physical layer are related.
3-1
SJ-20140731105308-008|2014-10-20 (R1.0)
Steps
1. Configure the IP address of the Ethernet interface.
Step
Command
Function
ZXR10(config)#interface {<interface-name>|
byname <byname>}
ZXR10(config-if-interface-name)#ip address
{<ip-address><net-mask>|<A.B.C.D/X>}[<broadcast-a
ddress>| secondary]
interface.
Note:
Before entering configuration mode of the interface by using the byname parameter,
you must set the alias of the interface.
Command
Function
ZXR10(config)#interface {<interface-name>|
byname <byname>}
ZXR10(config-if-interface-name)#gateway
interface
SJ-20140731105308-008|2014-10-20 (R1.0)
Function
ZXR10(config-if-interface-name)#interface
mac-address|offset <mac-offset>
Function
ZXR10(config-if-interface-name)#interface
mac-address <xxxx.xxxx.xxxx>
Command
Function
ZXR10(config-if-interface-name)#duplex
{duplex-full |duplex-half}
ZXR10(config-if-interface-name)#negotiation
{negotiation-auto | negotiation-force}
ZXR10(config-if-interface-name)#speed
the interface.
Function
ude | include}<line>]]]
of an IP interface.
3-3
SJ-20140731105308-008|2014-10-20 (R1.0)
Command
Function
End of Steps
Configuration Flow
1. Enter global configuration mode.
2. Enter interface configuration mode.
3. Perform the required configuration.
Configuration Command
Configuration on R1
R1(config)#interface gei-0/2/0/2
R1(config-if-gei0/2/0/2)#ip address 168.2.1.1 255.255.255.0
R1(config-if-gei0/2/0/2)#mtu 1700
R1(config-if-gei0/2/0/2)#no shutdown
R1(config-if-gei0/2/0/2)#ip mtu 1000
R1(config-if-gei0/2/0/2)#exit
Configuration Verification
Use the show command to check the configuration.
R1(config)#show running-config-interface gei-0/2/0/2
! <if-intf>
interface gei-0/2/0/2
mtu 1700
ip mtu 1000
ip address 168.2.1.1 255.255.255.0
3-4
SJ-20140731105308-008|2014-10-20 (R1.0)
3-5
SJ-20140731105308-008|2014-10-20 (R1.0)
3-6
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 4
VLAN Configuration
Table of Contents
Basic VLAN Configuration ..........................................................................................4-1
VLAN Range Sub-Interface Configuration ..................................................................4-5
VLAN TPID Configuration...........................................................................................4-8
On the base of conventional Ethernet packet, a 4byte 802.1Q packet header is added.
l
The first two bytes are TAG Protocol Identifier (TPID). The TPID identifies the packet
type. By default, the packet is a 802.1Q packet, and the TPID is 0x8100, 88a8.
Common TPID values include 0x9100.
The last two bytes are Tag Control Information (TCI).
Priority (3 bits): The priority is decided by flow control information (such as QoS,
and so on).
4-1
SJ-20140731105308-008|2014-10-20 (R1.0)
Canonical Format Indicator (CFI) (1 bit): CFI is used to identify whether there is
a canonical MAC address. When CFI is set, it means that the Data field of the
frame carries the Token Ring frame that is not translated or encapsulated.
The last 12 bits in TCI are VLAN ID (VID). The largest VID is 4094.
Detailed descriptions of TCI field in 802.1Q header are shown in Figure 4-2.
Figure 4-2 802.1Q VLAN Packet Header Structure
Many sub-interfaces may be configured on a route attribute port. Each sub-interface can
encapsulate VLAN ID and VLAN Range. The packet is designated according to its VLAN
TAG. A packet without a VLAN TAG will be designated to a physical interface. After the
physical interface is designated, the packet is forwarded according to the forwarding table.
Steps
1. Configure a VLAN sub-interface.
Step
Command
Function
ZXR10(config)#vlan-configuration
ZXR10(config-vlan)#interface <interface-name>
ZXR10(config-vlan-if-interface-name)#encapsula
tion-dot1q <vlan-id>
Function
4-2
SJ-20140731105308-008|2014-10-20 (R1.0)
Command
Function
external-vlan-range <ExVlanId>}
End of Steps
Configuration Flow
1.
2.
3.
4.
Create a sub-interface.
Enter sub-interface VLAN configuration mode.
Configure a VLAN-ID.
Configure an IP address for the sub-interface. R1 and R2 can successfully ping each
other.
Configuration Command
Configuration for R1:
R1(config)#interface gei-0/2/0/2.1
R1(config-if-gei-0/2/0/2.1)#exit
R1(config)#vlan-configuration
R1(config-vlan)#interface gei-0/2/0/2.1
4-3
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Verification
Use the show command to check the configuration for R1, as shown below.
R1#show running-config vlan
! <vlan>
vlan-configuration
interface gei-0/2/0/2.1
encapsulation-dot1q 100
$
$
! </vlan>
Use the show command to check the configuration for R2, as shown below.
R2#show running-config-interface gei-0/3/0/3.1
! <if-intf>
interface gei-0/3/0/3.1
ip address 192.2.1.2 255.255.255.0
$
! </if-intf>
! <vlan>
vlan-configuration
interface gei-0/3/0/3.1
encapsulation-dot1q 100
$
$
! </vlan>
4-4
SJ-20140731105308-008|2014-10-20 (R1.0)
The result is that R1 and R2 can successfully ping each other, as shown below.
R2#ping 192.2.1.1
sending5,100-byte ICMP echoes to 192.2.1.1,timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max=157/190/199 ms.
R1#ping 192.2.1.2
sending5,100-byte ICMP echoes to 192.2.1.2,timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max=157/190/199 ms.
Steps
1. Configure a VLAN Range sub-interface.
Step
Command
Function
ZXR10(config)#vlan-configuration
ZXR10(vlan-config)#interface <interface-name>
ZXR10(config-vlan-if-interface-name)#encapsula
Encapsulates several
tion-dot1q range<vlan-id>-<vlan-id>
4-5
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
ZXR10(config-vlan-if-interface-name)#vlan-range-
range broadcast.
Function
End of Steps
Configuration Flow
1. Configure VLAN Range on R1, and enable broadcasting.
2. Configure a VLAN on R2.
3. Make sure that R1 and R2 can communicate with each other.
Configuration Command
Configuration for R1:
R1(config)#interface gei-0/2/0/2.1
R1(config-if-gei-0/2/0/2.1)#exit
R1(config)#vlan-configuration
R1(config-vlan)#interface gei-0/2/0/2.1
R1(config-vlan-if-gei-0/2/0/2.1)#encapsulation-dot1q range 1-10
R1(config-vlan-if-gei-0/2/0/2.1)#vlan-range-broadcast enable
R1(config-vlan-if-gei-0/2/0/2.1)#exit
R1(config-vlan)#exit
R1(config)#interface gei-0/2/0/2.1
4-6
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Verification
View the configuration result on R1, as shown below.
R1#show running-config-interface gei-0/2/0/2.1
! <if-intf>
interface gei-0/2/0/2.1
ip address 192.2.1.1 255.255.255.0
$
! </if-intf>
! <vlan>
vlan-configuration
interface gei-0/2/0/2.1
encapsulation-dot1q range 1-10
vlan-range-broadcast enable
$
$
! </vlan>
4-7
SJ-20140731105308-008|2014-10-20 (R1.0)
Verify that R1 and R2 can successfully ping each other, as shown below.
R2#ping 192.2.1.1
sending 5,100-byte ICMP echoes to 192.2.1.1,timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max= 157/190/199 ms.
R1#ping 192.2.1.2
sending 5,100-byte ICMP echoes to 192.2.1.2,timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max= 157/190/199 ms.
Steps
1. Configure the VLAN TPID.
Step
Command
Function
ZXR10(config)#vlan-configuration
4-8
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
ZXR10(vlan-config)#interface <interface-name>
ZXR10(config-vlan-if-interface-name)#pid-tag
ZXR10(config-vlan-if-interface-name)#pid-tag
mode supported by a
sub-interface, including
88a8, 8100, 9100, 9200, and
9300.
Function
End of Steps
Configuration Flow
1. Enter VLAN sub-interface configuration mode.
2. Configure TPIDs and VLAN IDs.
3. Configure IP addresses for sub-interfaces, ensuring that R1 and R2 can be mutually
pinged. Ensure that R1 and R2 can be mutually pinged even if different VLAN TPIDs
are configured. The pid-tag parameter is used to control external messages.
4-9
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Command
The following shows the configuration of R1:
R1(config)#interface gei-0/2/0/2.1
R1(config-if-gei-0/2/0/2.1)#exit
R1(config)#vlan-configuration
R1(config-vlan)#interface gei-0/2/0/2.1
R1(config-vlan-if-gei-0/2/0/2.1)#encapsulation-dot1q 100
R1(config-vlan-if-gei-0/2/0/2.1)#pid-tag external 9100 internal 8100
R1(config-vlan-if-gei-0/2/0/2.1)#exit
R1(config-vlan)#exit
R1(config)#interface gei-0/2/0/2.1
R1(config-if-gei-0/2/0/2.1)#ip address 192.2.1.1 255.255.255.0
R1(config-if-gei-0/2/0/2.1)#exit
R2(config)#interface gei-0/3/0/3.1
R2(config-if-gei-0/3/0/3.1)#ip address 192.2.1.2 255.255.255.0
R2(config-if-gei-0/3/0/3.1)#exit
Configuration Verification
Run the show command to verify the configuration result of R1:
R1#show running-config vlan
! <vlan>
vlan-configuration
interface gei-0/2/0/2.1
pid-tag external 9100 internal 8100
encapsulation-dot1q 100
$
$
! </vlan>
4-10
SJ-20140731105308-008|2014-10-20 (R1.0)
R1#ping 192.2.1.2
sending5, 100-byte ICMP echoes to 192.2.1.2, timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max=157/190/199ms.
4-11
SJ-20140731105308-008|2014-10-20 (R1.0)
4-12
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 5
QinQ Configuration
Table of Contents
Basic QinQ Configuration ...........................................................................................5-1
QinQ Range Sub-Interface Configuration ...................................................................5-4
Steps
1. Configure a QinQ sub-interface.
Step
Command
Function
ZXR10(config)#vlan-configuration
ZXR10(config-vlan)#interface <interface-name>
5-1
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
ZXR10(config-vlan-if-interface-name)#qinq
Function
[<interface-name>]
End of Steps
Configuration Flow
1.
2.
3.
4.
Create a sub-interface.
Enter sub-interface VLAN configuration mode.
Configure a QinQ ID.
Configure the IP address of the sub-interface. R1 and R2 can be mutually pinged.
Configuration Command
The following shows the configuration of R1:
R1(config)#interface gei-0/2/0/2.1
R1(config-if-gei-0/2/0/2.1)#exit
R1(config)#vlan-configuration
R1(config-vlan)#interface gei-0/2/0/2.1
R1(config-vlan-if-gei-0/2/0/2.1)#qinq
internal-vlanid 1 external-vlanid 2
R1(config-vlan-if-gei-0/2/0/2.1)#exit
R1(config-vlan)#exit
5-2
SJ-20140731105308-008|2014-10-20 (R1.0)
internal-vlanid 1 external-vlanid 2
R2(config-vlan-if-gei-0/3/0/3.1)#exit
R2(config-vlan)#exit
R2(config)#interface gei-0/3/0/3.1
R2(config-if-gei-0/3/0/3.1)#ip address 192.2.1.2 255.255.255.0
R2(config-if-gei-0/3/0/3.1)#exit
Configuration Verification
Run the show command to check the configuration results.
The following shows the configuration result of R1:
R1#show running-config vlan
! <vlan>
vlan-configuration
interface gei-0/2/0/2.1
qinq internal-vlanid 1 external-vlanid 2
$
$
! </vlan>
5-3
SJ-20140731105308-008|2014-10-20 (R1.0)
R1#ping 192.2.1.2
sending5, 100-byte ICMP echoes to 192.2.1.2, timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max=157/190/199ms.
Steps
1. Configure a QinQ Range sub-interface.
Step
Command
Function
ZXR10(config)#vlan-configuration
ZXR10(vlan-config)#interface <interface-name>
5-4
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
<vlan-id>-<vlan-id>
Function
End of Steps
Configuration Flow
1. Create a sub-interface.
2. Enter sub-interface VLAN configuration mode.
3. Configure QinQ Range.
Configuration Command
The configuration of R1:
R1(config)#interface gei-0/2/0/2.1
R1(config-if-gei-0/2/0/2.1)#exit
R1(config)#vlan-configuration
5-5
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Verification
Use the show command to check the configuration result.
R1(config)#show running-config vlan
! <vlan>
vlan-configuration
interface gei-0/2/0/2.1
qinq range internal-vlan-range 1-10 external-vlan-range 1-10
$
$
!
</vlan>
5-6
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 6
SuperVLAN Configuration
Table of Contents
SuperVLAN Overview ................................................................................................6-1
Configuring a SuperVLAN .........................................................................................6-2
SuperVLAN Configuration Example............................................................................6-4
all SubVLANs can allocate IP addresses in the SuperVLAN flexibly and use the default
gateway of the SuperVLAN.
Each SubVLAN has its own independent broadcast domain, which ensures the
isolation between different users.
The communication between SubVLANs is routed by the SuperVLAN.
The SuperVLAN supports cross-board interface binding and QinQ interface binding.
SuperVLAN Feature
After VLAN is introduced, different VLANs cannot communicate with each other through
L2 forwarding. The communication is realized through L3 routing. Thus, it is necessary
to configure different IP address segments between VLANs. To save IP addresses,
SuperVLAN is used.
The principle of common VLAN is shown in Figure 6-1.
Figure 6-1 VLAN Configuration on Device without SuperVLAN
6-1
SJ-20140731105308-008|2014-10-20 (R1.0)
On the device, the ports connecting A, B,C and D belong to different VLANs. Therefore,
the different IP address segments are configured on A, B, C and D. The communications
are realized through L3 route forwarding.
As shown in Figure 6-2, after SuperVLAN is used, VLAN 1 and VLAN 2 are bound to
SuperVLAN1, while VLAN 3 and VLAN 4 are bound to SuperVLAN2.
Figure 6-2 Configuration on Device with SuperVLAN
The network segment x.x.x.0/24 is configured on both A and B, and x.x.y.0/24 network
segment is configured on C and D. SuperVLAN 1 acts as the ARP proxy between A and B,
and SuperVLAN2 acts as the ARP proxy between C and D. Therefore, the communications
between A and B, and between C and D can be realized through L2 forwarding. However,
the communication between the hosts in different network segments (such as A and C)
still needs to be realized through L3 forwarding.
In addition, each VLAN member of SuperVLAN is allocated an IP address segment.
To ensure the security, the packets will be discarded if the IP addresses of the packets
received by the SuperVLAN do not match the allocated IP address segment.
Steps
1. Configure the attributes of the SuperVLAN:
Step
Command
Function
ZXR10(config)#supervlan
Enters SuperVLAN
configuration mode.
ZXR10(config-supervlan)#interface supervlan
<supervlan-id>
6-2
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
ZXR10(config-supervlan-superif)#arp-broadcast
{enable | disable}
ZXR10(config-supervlan-superif)#inter-subvlan-rou
inter-SubVLAN routing
function. By default, this
function is enabled.
ZXR10(config-supervlan-superif)#ip-pool-filter
{enable | disable}
Command
Function
ZXR10(config)#supervlan
Enters SuperVLAN
configuration mode.
ZXR10(config-supervlan)#interface <interface-name>
Enters SuperVLAN
sub-interface configuration
mode.
ZXR10(config-supervlan-subif)#supervlan
<supervlan-id>
ZXR10(config-supervlan-subif)#vlanpool
<ip-address1><ip-address2>
to a SubVLAN interface.
Function
End of Steps
6-3
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Flow
Create a SuperVLAN interface, disable source IP address filter function and then bind
SubVLAN interfaces to the specific SuperVLAN interface. Configure IP pool on SubVLAN
interfaces.
1. Create a SuperVLAN interface.
2. Configure an IP address.
3. Input SuperVLAN interface name, and then enter SuperVLAN aggregation interface
configuration mode.
4. Disable source IP address filter function.
5. Input the name of the sub-interface encapsulated with VLAN-ID, and then enter
SuperVLAN member interface configuration mod.
6. Bind the sub-interface to the SuperVLAN.
7. Configure IP pool on the sub-interface.
6-4
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Command
Configuration for ZXR10:
ZXR10(config)#interface gei-0/2/0/2.1
ZXR10(config-if-gei-0/2/0/2.1)#exit
ZXR10(config)#vlan-configuration
ZXR10(config-vlan)#interface gei-0/2/0/2.1
ZXR10(config-vlan-if-gei-0/2/0/2.1)#encapsulation-dot1q 100
ZXR10(config-vlan-if-gei-0/2/0/2.1))#exit
ZXR10(config-vlan)#exit
ZXR10(config)#interface supervlan11
ZXR10(config-if-supervlan11)#ip address 192.11.1.1 255.255.255.0
ZXR10(config-if-supervlan11)#exit
ZXR10(config)#supervlan
ZXR10(config-supervlan)#interface
supervlan11
ZXR10(config-supervlan-superif)#ip-pool-filter disable
ZXR10(config-supervlan-superif)#exit
ZXR10(config-supervlan)#interface gei-0/2/0/2.1
ZXR10(config-supervlan-subif)#supervlan 11
ZXR10(config-supervlan-subif)#vlanpool 192.11.1.1 192.11.1.10
ZXR10(config-supervlan-subif)#end
Configuration Verification
Use the show command to check the configuration result, as shown below.
ZXR10#show supervlan
The total supervlan number:1
SuperVLAN No: 11
ARP-Broadcast
: Disable
Gratuitous-ARP-Broadcast
: Enable
Inter-SubVLAN-Routing-IPv4: Enable
Inter-SubVLAN-Routing-IPv6: Enable
IP-POOL-Filter
: Disable
ND-Broadcast
: Disable
---------------------------------------SubIntf
gei-0/2/0/2.1
6-5
SJ-20140731105308-008|2014-10-20 (R1.0)
ZXR10(config)#show supervlan-pool
Addr-Begin
192.11.1.1
Addr-End
SuperVLAN-Name
192.11.1.10
supervlan11
SubIntf-Name
gei-0/2/0/2.1
Configuration Flow
1. Create a sub-interface and encapsulate a VLAN-ID.
2. Bind the sub-interface to a SuperVLAN.
3. Configure vlanpool in SuperVLAN mode.
Configuration Command
Configuration for R2:
R2#configure terminal
Enter configuration commands, one per line.
R2(config)#interface gei-0/1/0/10.1
R2(config-if-gei-0/1/0/10.1)#exit
R2(config)#vlan-configuration
R2(config-vlan)#interface gei-0/1/0/10.1
R2(config-vlan-if-gei-0/1/0/10.1)#encapsulation-dot1q 1
R2(config-vlan-if-gei-0/1/0/10.1)#exit
R2(config-vlan)#exit
R2(config)#interface supervlan11
R2(config-if-supervlan11)#ip address 192.1.1.1 255.255.255.0
6-6
SJ-20140731105308-008|2014-10-20 (R1.0)
R2(config)#supervlan
R2(config-supervlan)#interface gei-0/1/0/10.1
R2(config-supervlan-subif)#supervlan 11
R2(config-supervlan-subif)#vlanpool 192.1.1.1 192.1.1.10
/*VLAN bound to an IP address*/
R2(config-supervlan-subif)#exit
R2(config-supervlan)#exit
Configuration Verification
View the configuration for R2.
R2#show supervlan11
The total SuperVLAN number:1
SuperVLAN No: 11
ARP-Broadcast
: Disable
Gratuitous-ARP-Broadcast
: Enable
Inter-SubVLAN-Routing-IPv4: Enable
Inter-SubVLAN-Routing-IPv6: Enable
IP-POOL-Filter
: Disable
ND-Broadcast
: Disable
---------------------------------------SubIntf
gei-0/1/0/10.1
R2(config)#show supervlan-pool 11
Addr-Begin
Addr-End
SuperVLAN-Name
SubIntf-Name
192.1.1.1
192.1.1.10
supervlan11
gei-0/1/0/10.1
Configuration Flow
1. Create a SuperVLAN interface on R1, and then configure the IP address for the
interface.
6-7
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Command
The following example shows the configuration of R1:
R1(config)#interface supervlan255
R1(config-if-supervlan255)#ip address 192.11.1.1 255.255.255.0
R1(config-if-supervlan255)#exit
R1(config)#supervlan
R1(config-supervlan)#interface gei-0/2/0/2
R1(config-supervlan-subif)#supervlan 255
R1(config-supervlan-subif)#vlanpool 192.11.1.1 192.11.1.10
R1(config-supervlan-subif)#exit
R1(config-supervlan)#exit
R1(config)#arp
R1(config-arp)#interface gei-0/2/0/2
R1(config-arp-if-gei-0/2/0/2)#arp permanent 192.11.1.2 0000.0145.4303
/*Bind a MAC adress to the IP address*/
R1(config-arp-if-gei-0/2/0/2)#exit
R1(config-arp)#exit
Hardware
Age
Exter
Address
Interface
Inter
Sub
---------------------------------------------------------------------------192.11.1.2
0000.0145.4303 gei-0/3/0/3
N/A
N/A
N/A
6-8
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Verification
R2 can be pinged from R1:
R1#ping 192.11.1.2
sending 5,100-byte ICMP echo(es) to 192.11.1.2,timeout is 2 second(s).
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max= 1/2/7 ms.
After configuring a MAC flap for R2 interface (configure an MAC address that is different
from the MAC address of the binded IP address), R2 cannot be pinged from R1.
R2(config)#interface gei-0/3/0/3
R2(config-if-gei-0/3/0/3)#interface mac-address offset 2
R2(config-if-gei-0/3/0/3)#end
R2#show arp interface gei-0/3/0/3
Arp protect interface is disabled
The count is 1
IP
Address
Hardware
Age
Exter
Address
Interface
Inter
Sub
---------------------------------------------------------------------------192.11.1.2
0000.0145.4305 gei-0/3/0/3
N/A
N/A
N/A
R1#ping 192.11.1.2
sending 5,100-byte ICMP echo(es) to 192.11.1.2,timeout is 2 second(s).
.....
Success rate is 0 percent(0/5).
6-9
SJ-20140731105308-008|2014-10-20 (R1.0)
6-10
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 7
SmartGroup Configuration
Table of Contents
SmartGroup Overview ................................................................................................7-1
Configuring a SmartGroup..........................................................................................7-2
SmartGroup Configuration Example ...........................................................................7-7
SmartGroup Features
The link aggregation of SmartGroup is to aggregate several ports into an aggregation
group, thus to share out/in load among the member ports. This also improves the reliability
of the connections. Outwardly, the aggregation group seems as a port. Load sharing of link
aggregation supports load-sharing aggregation and non-load-sharing aggregation.Figure
7-1 shows a SmartGroup n.
7-1
SJ-20140731105308-008|2014-10-20 (R1.0)
Steps
1. Create a SmartGroup.
Step
Command
Function
ZXR10(config)#interface smartgroup
Creates a SmartGroup.
<smartgroup-id>
Command
Function
ZXR10(config)#lacp
7-2
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
member-number>
ZXR10(config-lacp)#interface smartgroup
<smartgroup-id>
configuration mode.
ZXR10(config-lacp-sg-if-smartgroupid)#lacp
the SmartGroup.
ZXR10(config-lacp-sg-if-smartgroupid)#lacp
ZXR10(config-lacp-sg-if-smartgroupid)#lacp
ZXR10(config-lacp-sg-if-smartgroupid)#lacp
fast respond
ZXR10(config-lacp-sg-if-smartgroupid)#lacp
10
ZXR10(config-lacp-sg-if-smartgroupid)#lacp
sys-priority<priority>
7-3
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
11
ZXR10(config-lacp-sg-if-smartgroupid)#lacp
non-revertive}
12
ZXR10(config-lacp-sg-if-smartgroupid)#lacp
13
14
ZXR10(config-lacp-sg-if-smartgroupid)#lacp
force-switch
ZXR10(config-lacp-sg-if-smartgroupid) #lacp
hold-off<0-65535>
15
ZXR10(config-lacp-sg-if-smartgroupid)#mc-lag
priority <priority>
16
ZXR10(config-lacp-sg-if-smartgroupid)#mc-lag
7-4
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
MAC address or multicast MAC
address. The range of the priority
is 165535.
17
ZXR10(config-lacp-sg-if-smartgroupid)#mc-lag
iccp <iccp-session-id>
18
ZXR10(config-lacp-sg-if-smartgroupid)#mc-lag
19
ZXR10(config-lacp-sg-if-smartgroupid)#mc-lag
mode {auto|force-master|force-backup}
802.3ad : The aggregation control mode of the smartgroup interface uses LACP of
802.3ad standard.
on: Static trunk, that is, LACP is not used. By default, the aggregation mode is static
trunk (on) mode.
3. Configure an LACP member interface and its parameters.
Step
Command
Function
ZXR10(config-lacp)#interface <interface-name>
ZXR10(config-lacp-member-if-interface-
active | on}
ZXR10(config-lacp-member-if-interface-
7-5
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
ZXR10(config-lacp-member-if-interface-
ZXR10(config-lacp-member-if-interface-
name)#track <track-name>
Function
| neighbors|mc-lag}| sys-id}
Function
counters
and received.
all}
Configuration Flow
1. Create smartgroup1 on R1, and create smartgroup1 on R2.
2. Enter LACP configuration mode from global configuration mode, and then enter the
smartgroup interfaces.
3. Set the aggregation mode of smartgroup1 to LACP on R1 and R2. Configure load
sharing policy and the minimum number of members.
4. Enter LACP configuration mode from global configuration mode, and then enter the
physical interfaces.
5. Add the physical interfaces on R1 and R2 to the smartgroup1.
6. Configure LACP negotiation mode and time-out period on the member interfaces of
smartgroup1 on R1 and R2.
Configuration Command
Configuration for R1:
R1(config)#interface smartgroup1
R1(config-if-smartgroup1)#ip address 196.1.1.27 255.255.255.0
R1(config-if-smartgroup1)#exit
R1(config)#lacp
R1(config-lacp)#interface smartgroup1
R1(config-lacp-sg-if-smartgroup1)#lacp mode 802.3ad
R1(config-lacp-sg-if-smartgroup1)#lacp load-balance
R1(config-lacp-sg-if-smartgroup1)#lacp
per-destination
minimum-member 1
7-7
SJ-20140731105308-008|2014-10-20 (R1.0)
per-destination
minimum-member 1
R2(config-lacp-sg-if-smartgroup1)#exit
R2(config-lacp)#interface gei-0/3/0/5
R2(config-lacp-member-if-gei-0/3/0/5)#smartgroup 1 mode active
R2(config-lacp-member-if-gei-0/3/0/5)#lacp timeout short
R2(config-lacp-member-if-gei-0/3/0/5)#exit
R2(config-lacp)#interface gei-0/3/0/9
R2(config-lacp-member-if-gei-0/3/0/9)#smartgroup 1 mode active
R2(config-lacp-member-if-gei-0/3/0/9)#lacp timeout short
R2(config-lacp-member-if-gei-0/3/0/9)#end
Configuration Verification
Check the configuration for R1 and check whether the configuration takes effect.
R1(config)#show lacp 1 internal
Smartgroup:1
Flags:
Actor
Agg
LACPDUs
Port[Flags]
State
Interval Pri
Port
Oper
Port
Key
State Machine
RX
Mux
Machine
1
1
32768 0x111
32768 0x111
0x3f
0x3f
CURRENT
CURRENT
COLL&DIST
COLL&DIST
7-8
SJ-20140731105308-008|2014-10-20 (R1.0)
7-9
SJ-20140731105308-008|2014-10-20 (R1.0)
/*View neighbors*/
Smartgroup 1
neighbors
Actor
Partner
Partner
Port
Oper
Port
Port
System ID
Port No.
Priority
Key
State
--------------------------------------------------------------------gei-0/2/0/9
0x8000,00d0.d012.1127
21
0x8000
0x111
0x3f
gei-0/2/1/5
0x8000,00d0.d012.1127
17
0x8000
0x111
0x3f
LACPDUs
Port
Tx
Rx
Marker
LACPDUs
Marker
Tx
Err
Err
Rx
------------------------------------------------------------------gei-0/2/0/9
1840
1840
1840
1840
Configuration Flow
1. Create smartgroup1 on R1, and create smartgroup1 on R2.
2. Enter LACP configuration mode from global configuration mode, and then enter the
smartgroup interfaces.
3. Configure the same negotiation mode "on" on the smartgroup1 interfaces on R1 and
R2.
4. Enter LACP configuration mode from global configuration mode, and then enter the
physical interfaces.
5. Add the physical interfaces on R1 and R2 to the smartgroup1.
7-10
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Command
Configuration for R1:
R1(config)#interface smartgroup1
R1(config-if)#ip address 196.1.1.27 255.255.255.0
R1(config-if)#exit
R1(config)#lacp
R1(config-lacp)#interface smartgroup1
R1(config-lacp-sg-if)#lacp mode on
R1(config-lacp-sg-if)#exit
R1(config-lacp)#interface gei-0/2/1/5
R1(config-lacp-member-if)#smartgroup 1 mode on
R1(config-lacp-member-if)#exit
R1(config-lacp)#interface gei-0/2/0/9
R1(config-lacp-member-if)#smartgroup 1 mode on
R1(config-lacp-member-if)#exit
Configuration Verification
Check the configuration for R1 and check whether the configuration takes effect.
R1#show lacp 1 internal
Smartgroup:1
Flags:
Actor
Agg
LACPDUs
Port
Oper
Port
Port[Flags]
State
Interval
Pri
Key
State Machine
RX
Mux
Machine
---------------------------------------------------------------------------gei-0/2/0/9
ACTIVE
30
32768
0x11
0x3d
N/A
N/A
7-11
SJ-20140731105308-008|2014-10-20 (R1.0)
ACTIVE
30
32768
0x11
0x3d
N/A
N/A
7-12
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 8
Steps
1. Configure a POS interface.
Step
Command
<byname>}
interface.
ZXR10(config-if-interface-name)#ip address
Configures an IP address on a
{<ip-address><net-mask>|<A.B.C.D/X>}[<broadcast-a
POS interface.
Function
ddress>| secondary]
8-1
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
ZXR10(config-if-interface-name)#mtu <bytes>
ZXR10(config-if)#strict mtu
ZXR10(config-if-interface-name)#encapsulation
Interface
Interface
Feasibility
Line-derived clock
Line-derived clock
Line-derived clock
Internal clock
Internal clock
Line-derived clock
Internal clock
Internal clock
Remark
8-2
SJ-20140731105308-008|2014-10-20 (R1.0)
To configure an interface clock on the ZXR10 M6000-S, use the following commands.
Steps
Command
Function
ZXR10(config)#interface <interface-name>
ZXR10(config-if-interface-name)#clock mode
send{internal| line}
To judge whether a flash exists during a set delay time, add the delay up command.
A timer is started for verifying the network state after the preset delay time.
l
l
On the ZXR10 M6000-S, execute the following commands to activate the POS
interface delay down function.
Step
Command
Function
ZXR10(config)#interface <interface-name>
ZXR10(config-if-interface-name)#link-delay-down
<timer>
ZXR10(config-if-interface-name)#link-delay-up
<timer>
an interface to be up from
down, range: 0-20000, unit:
ms, default: 0 (meaning no
delay).
8-3
SJ-20140731105308-008|2014-10-20 (R1.0)
Command
Function
|<interface-name>|[{exclude | include}<line>]]]
ZXR10#show interface description
ZXR10#show running-config-interface
<interface-name>
End of Steps
Configuration Flow
1. Configure IP addresses of the POS interfaces on R1 and R2.
2. Validate configuration to make sure that R1 and R2 can ping each other.
Configuration Command
Configuration on R1:
R1(config)#interface pos192-0/1/0/1
R1(config-if-pos192-0/1/0/1)#clock mode line
R1(config-if-pos192-0/1/0/1)#exit
R1(config)#interface pos192-0/1/0/1
R1(config-if-pos192-0/1/0/1)#no shutdown
R1(config-if-pos192-0/1/0/1)#ip address 11.12.13.14
255.255.255.0
R1(config-if-pos192-0/1/0/1)#exit
Configuration on R2:
R2(config)#interface pos192-0/2/0/1
R2(config-if-pos192-0/2/0/1)#clock mode internal
8-4
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Verification
Check the configuration on R1, as shown below.
R1#ping 21.22.23.24
sending 5,100-byte ICMP echoes to 21.22.23.24,timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max= 12/18/20ms.
Configuration Flow
1. Enter the interface configuration mode.
2. Configures the delay time for the POS interface to be down from up.
3. Configures the delay time for the POS interface to be up from down.
Configuration Command
Configuration on R1:
R1(config)#interface pos192-0/3/3/1
R1(config-if-pos192-0/3/3/1)#link-delay-down 100
R1(config-if-pos192-0/3/3/1)#link-delay-up 100
R1(config-if-pos192-0/3/3/1)#exit
8-5
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Verification
If the ACT indicator on the board has no change during the configuration (100ms), execute
the show command on R1, and the result is displayed as follows.
R1#show running-config-interface pos192-0/3/3/1
! <Interface>
interface pos192-0/3/3/1
encapsulation hdlc
no shutdown
$
! </Interface>
! <pm_if>
interface pos192-0/3/3/1
link-delay-down 100
link-delay-up 100
$
! </pm_if>
8-6
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 9
From the physical perspective, the CPOS interface is called controller. It can be logically
channelized into multiple E1/T1 channels for transmission purposes.
The CPOS interface supports SDH transmission and SONET transmission.
l
SDH transmission
In SDH transmission mode, only the CPOS clock, E1 clock, and the E1 frame format
should be set. In addition, the multiplexing path should be selected based on the
country.
SONET transmission
In SONET transmission mode, only the CPOS clock, E1 clock, and the E1 frame
format should be set. In addition, the frame format for the CPOS interface should be
set to SONET, and the multiplexing path should be selected based on the country.
E1/T1-to-STM-1 Multiplexing
In a G.709-recommended SDH multiplexing procedure, there may be more than one path
for multiplexing a low-speed frame carrying the payload to an STM-N link. Figure 9-1 and
Figure 9-2 illustrate the processes of multiplexing an E1/T1 frame to an STM-1 frame.
9-1
SJ-20140731105308-008|2014-10-20 (R1.0)
The multiplexing paths may vary with countries and areas. Either the AU-3 or AU-4
multiplexing path can be specified for a CPOS interface through the multiplex mode
command, which ensures the interconnection between two ends.
9-2
SJ-20140731105308-008|2014-10-20 (R1.0)
Steps
1. Enter controller configuration mode of the CPOS interface.
Command
Function
ZXR10(config)#controller <interface-name>
Function
ZXR10(config-ctrl-interface-name)#loopback {
ZXR10(config-ctrl-interface-name)#clock mode {
internal |line}
ZXR10(config-ctrl-interface-name)#damping
{<maxsuptime><suppress><reuse><halflife>|enable |disable}
ZXR10(config-ctrl-interface-name)#holdtime <holdtime>
9-3
SJ-20140731105308-008|2014-10-20 (R1.0)
Steps
1. Configure the frame format of the CPOS interface as SDH.
Step
Command
Function
ZXR10(config)#controller <interface-name>
ZXR10(config-ctrl-interface-name)#framing sdh
Function
ZXR10(config-ctrl-interface-name-sdh)#flag j0
ZXR10(config-ctrl-interface-name-sdh)#flag j0ex
ZXR10(config-ctrl-interface-name-sdh)#threshold
sd-ber <sd>
ZXR10(config-ctrl-interface-name-sdh)#threshold
sf-ber <sf>
SJ-20140731105308-008|2014-10-20 (R1.0)
Command
Function
ZXR10(config-ctrl-interface-name-sdh)#aug mapping
{au3|au4}
Steps
1. Configure the frame format of the CPOS interface as SDH.
Step
Command
Function
ZXR10(config)#controller <interface-name>
ZXR10(config-ctrl-interface-name)#framing sdh
Command
Function
ZXR10(config-ctrl-interface-name-sdh)#aug
mapping au4
ZXR10(config-ctrl-interface-name-sdh)#au4
Configures a multiplexing
path.
Command
Function
ZXR10(config-ctrl-interface-name-sdh-tug3)#m
ode e1
ZXR10(config-ctrl-interface-name-sdh-tug3)#tug2
Creates an e1.
<tug2-num> e1 <e1-num>
3
ZXR10(config-ctrl-interface-name-sdh-tug3-
dcr-domain <1-504>}
ZXR10(config-ctrl-interface-name-sdh-tug3-
ZXR10(config-ctrl-interface-name-sdh-tug3-e1)#f
raming { crc4|no-crc4}
format.
ZXR10(config-ctrl-interface-name-sdh-tug3-
loopback-outer }
7
ZXR10(config-ctrl-interface-name-sdh-tug3-e1)#f
ZXR10(config-ctrl-interface-name-sdh-tug3-e1)#f
}<j2ex>
ZXR10(config-ctrl-interface-name-sdh-tug3-e1)#f
lag v5 <v5>
10
11
ZXR10(config-ctrl-interface-name-sdh-tug3e1)#unframe
Steps
1. Configure the frame format of the CPOS interface as SDH.
Step
Command
Function
ZXR10(config)#controller <interface-name>
ZXR10(config-ctrl-interface-name)#framing sdh
Command
Function
ZXR10(config-ctrl-interface-name-sdh)#aug
mapping au4
ZXR10(config-ctrl-interface-name-sdh)#au4
Configures a multiplexing
path.
Command
Function
ZXR10(config-ctrl-interface-name-sdh-tug3)#m
ode e1
ZXR10(config-ctrl-interface-name-sdh-tug3)#flag
64-trace-byte}<j1>
J1.
ZXR10(config-ctrl-interface-name-sdh-tug3)#flag
ex>
ZXR10(config-ctrl-interface-name-sdh-tug3)#flag
c2 <c2>
upper-layer services.
5
ZXR10(config-ctrl-interface-name-sdh-tug3)#flag
c2ex <c2ex>
9-7
SJ-20140731105308-008|2014-10-20 (R1.0)
<j1ex>: description about the expected peer-end high-order channel trace byte J1.
<c2>: Signal flag byte is used for indicating the multiplexing structure and information
payload of the VC frame, for example, the loading information of the channel, the
types and mapping modes of the loaded services. This byte can be set as 000, 001,
002, 003, 004, 018, 019, 020, 021, 022, 023, 024, 025, 026, 027, 207, and 254.
For example, C2=00H indicates that the VC4 channel carries no signal. C2=02H
indicates that the payload carried by the VC4 channel is multiplexed by following the
TUG multiplex path. C2=15H indicates that the payload of the VC4 channel is FDDI
signals. To multiplex 2 M signals, C2 needs to select the TUG structure. The settings
of C2 on the Send Port and Receive Port must be the same. If the settings are not
the same, the HP-SLM alarm is submitted on the device containing the receive port,
indicating that the signals received actually on C2 is different from the signals which
C2 should receive.
End of Steps
Function
ZXR10#show running-config-controller
<interface-name>[all]
9-8
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Flow
1.
2.
3.
4.
5.
6.
7.
Configuration Command
Configuration for ZXR10:
ZXR10(config)#controller cpos3-0/4/1/1
ZXR10(config-ctrl-cpos3-0/4/1/1)#framing sdh
ZXR10(config-ctrl-cpos3-0/4/1/1-sdh)#aug mapping au4
ZXR10(config-ctrl-cpos3-0/4/1/1-sdh)#au4 1 tug3 1
ZXR10(config-ctrl-cpos3-0/4/1/1-sdh-tug3)#mode e1
ZXR10(config-ctrl-cpos3-0/4/1/1-sdh-tug3)#tug2 2 e1 1
ZXR10(config-ctrl-cpos3-0/4/1/1-sdh-tug3-e1)#unframe
ZXR10(config-ctrl-cpos3-0/1/1/1-sdh-tug3-e1)#!
ZXR10(config)#interface cpos3_e1-0/3/1/1.1/2/1:1
ZXR10(config-if-cpos3_e1-0/4/1/1.1/2/1:1)#no shutdown
Configuration Verification
Check the running status of the CPOS interface on ZXR10.
ZXR10#show ip interface brief include cpos
Interface
IP-Address
Mask
Admin Phy
Prot
cpos3_e1-0/4/1/1.1/2/1:1
unassigned
unassigned
up
up
up
/*After the two ends are successfully connected, the protocol status is "up". */
ZXR10 #show controller cpos3-0/4/1/1
cpos3-0/4/1/1 is up
Physical layer is Packet over (SDH)
Port connector type is OC48/STM16-SR
Clock
source: line
9-9
SJ-20140731105308-008|2014-10-20 (R1.0)
SF: 10e-4
SECTION
Active
Alarm: NONE
LOS =0
AIS = 0
RDI =0
SD
= 0
SF
=0
TIM = 0
TU
=0
SEF = 0
Error
: BIP(B1) = 65535
BIP(B2) = 67108863
J0(TX)
CRC-7
: 0xa6
REI(M1) = 67108863
5a 54 45 20 5a 58 52 31 30 20 54 38 30 30 30
J0(RX)
CRC-7
: 0xa6
J0(EX)
CRC-7
: 0xa6
5a 54 45 20 5a 58 52 31 30 20 54 38 30 30 30
5a 54 45 20 5a 58 52 31 30 20 54 38 30 30 30
Higher order Path 1: STM1/AU4 1/1 is up
Active
Alarm: TM
SLM
RDI = 0
= 1
TU
SLM = 1
LOP = 0
= 0
SLU = 0
UNEQP = 0
Error
: BIP(B3) = 5
C2(TX)
: 0x16
C2(RX)
: 0x16
C2(EX)
: 0x2
J1(TX)
CRC-7
: 0xa6
NEWPTR
REI(G1) = 1
= 0
PSE = 0
NSE = 0
TUG structure
5a 54 45 20 5a 58 52 31 30 20 54 38 30 30 30
J1(RX)
CRC-7
: 0xa6
5a 54 45 20 5a 58 52 31 30 20 54 38 30 30 30
J1(EX)
CRC-7
: 0xa6
5a 54 45 20 5a 58 52 31 30 20 54 38 30 30 30
9-10
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 10
CE1 Configuration
Table of Contents
CE1 Overview ..........................................................................................................10-1
Configuring CE1.......................................................................................................10-2
CE1 Configuration Example .....................................................................................10-4
When the interface operates in E1 mode, it is like an interface that does not have any
time slots, and has a bandwidth of 2.048 Mbit/s. Its logical features are the same with
those of a synchronization serial port. It supports link layer protocols, like PPP, HDLC
and frame trunk. It also supports IP network protocols.
When the interface operates in CE1 mode, it has 32 time slots (ID: 0-31). Among
which, time slot 1 to time slot 30 can be grouped in any methods, and time slot 0 is
used to transmit frame synchronization signals. Thus time slot 0 cannot be bound.
When some time slots are bound, they can be used as an interface (channel-set). Its
logical features are the same with those of a synchronization serial port. It supports
link layer protocols, like PPP, HDLC and frame trunk. It also supports IP network
protocols.
The CE1 configuration described in this manual is the configuration of the E1 interface in
CE1 operating mode.
Related Terms
l
SJ-20140731105308-008|2014-10-20 (R1.0)
Channelized: In framed mode, time slots except frame header of digital code
stream (E1, T1, E3, and DS3) can be allocated to multiple channels.
Unchannelized: In framed mode, time slots except frame header of digital code
stream (E1, T1, E3, and DS3) can only be allocated to one channel.
Clear Channel: It is also call unframed mode. Any bit in a code stream carries
data, and the data in code stream belongs to one channel.
Steps
1. Configure the properties of the CE1 interface.
Step
Command
Function
ZXR10(config)#controller <interface-name>
ZXR10(config-ctrl-interface-name)#loopback
<loopback-mode>
(including loopback-cancel,
loopback-inner, and loopbackouter) of the CE1 interface.
ZXR10(config-ctrl-interface-name)#clock
dcr-domain <1-24>}
ZXR10(config-ctrl-interface-name)#clock
10-2
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
ZXR10(config-ctrl-interface-name)#clock
ZXR10(config-ctrl-interface-name)#damping
{<maxsuptime><suppress><reuse><halflife>| enable |
disable}
ZXR10(config-ctrl-interface-name)#holdtime
<holdtime>
ZXR10(config-ctrl-interface-name)#framing
<frame-type>
ZXR10(config-ctrl-interface-name)#itf-type
<itf-type>
10
ZXR10(config-ctrl-interface-name)#linecode
<linecode>
11
ZXR10(config-ctrl-interface-name)#pcm
<pcm>
12
ZXR10(config-ctrl-interface-name)#threshold
error-packet <errpacket>
Command
Function
ZXR10(config)#controller <interface-name>
10-3
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
ZXR10(config-ctrl-interface-name)#channelgr
Function
End of Steps
Configuration Flow
1. Configure controllers on both R1 and R2 to unframed controller and framed controller.
2. For an unframed controller, you can only enter the ce1-0/1/3/1:1 and ce1-0/4/3/13:1
interfaces to configure the IP addresses on both ends to be in the same network
segment.
3. For a framed controller, you must configure channelgroup and timeslots of ce1 both
on R1 and R2 to the same.
4. Enter the channelized interface of channelgroup on R1 and R2. In this example,
ce1-0/1/3/1:2 and ce1-0/4/3/13:2 interfaces are used. Configure the IP addresses of
both of the interfaces to be in the same network segment.
5. Test the configuration results. Ensure that R1 and R2 can be mutually pinged.
10-4
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Command
The following example shows how to configure CE1 on R1:
R1(config)#controller ce1-0/1/3/1
R1(config-ctrl-ce1-0/1/3/1)#unframe
R1(config-ctrl-ce1-0/1/3/1)#exit
R1(config)#interface ce1-0/1/3/1:1
R1(config-if-ce1-0/1/3/1:1)#no shutdown
R1(config-if-ce1-0/1/3/1:1)#ip address 136.155.3.1 255.255.255.0
R1(config-if-ce1-0/1/3/1:1)#exit
R1(config)#controller ce1-0/1/3/1
R1(config-ctrl-ce1-0/1/3/1)#no unframe
/*To configure unframed controller and framed controller on
the same physical interface, run the no unframe command
before configuring the framed controller*/
R1(config-ctrl-ce1-0/1/3/1)#channelgroup 2 timeslots 2
/*Configure framed channel ID and time slot*/
R1(config-ctrl-ce1-0/1/3/1)#exit
R1(config)#interface ce1-0/1/3/1:2
R1(config-if-ce1-0/1/3/1:2)#no shutdown
R1(config-if-ce1-0/1/3/1:2)#ip address 136.155.3.1 255.255.255.0
R1(config-if-ce1-0/1/3/1:2)#end
R2(config-ctrl-ce1-0/1/3/13)#exit
R2(config)#interface ce1-0/4/3/13:1
R2(config-if-ce1-0/4/3/13:1)#no shutdown
R2(config-if-ce1-0/4/3/13:1)#ip address 136.155.3.2 255.255.255.0
R2(config-if-ce1-0/4/3/13:1)#exit
R2(config)#controller ce1-0/4/3/13
R2(config-ctrl-ctrl-ce1-0/1/3/13)#no unframe
/*To configure unframed controller and framed controller on
the same physical interface, run the no unframe command
before configuring the framed controller*/
R2(config-ctrl-ctrl-ce1-0/1/3/13)#channelgroup 2 timeslots 2
/*Configure framed channel ID and time slot*/
R2(config-ctrl-ctrl-ce1-0/1/3/13)#exit
R2(config)#interface ce1-0/4/3/13:2
R2(config-if-ce1-0/4/3/13:2)#no shutdown
R2(config-if-ce1-0/4/3/13:2)#ip address 136.155.3.1 255.255.255.0
R2(config-if-ce1-0/4/3/13:2)#end
10-5
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Verification
For unframed mode, the following are the verification results on R1:
R1#ping 136.155.3.2
sending 5,100-byte ICMP echoes to 136.155.3.2,timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max= 3/3/5 ms.
For unframed mode, the following are the verification results on R2:
R2#ping 136.155.3.1
sending 5,100-byte ICMP echoes to 136.155.3.1,timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max= 3/3/4 ms.
For framed mode, the following are the verification results on R1:
R1#ping 136.155.3.2
sending 5,100-byte ICMP echoes to 136.155.3.2,timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max= 39/40/42 ms.
For framed mode, the following are the verification results on R2:
R2#ping 136.155.3.1
sending 5,100-byte ICMP echoes to 136.155.3.1,timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max= 34/37/42 ms.
10-6
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 11
PPP Configuration
Table of Contents
PPP Overview ..........................................................................................................11-1
Configuring PPP.......................................................................................................11-3
PPP Configuration Example .....................................................................................11-5
PPP Features
PPP protocol has two parts, LCP and NCP. They are used to negotiate to establish and
maintain point-to-point link on interfaces (such as E1, T1, E3, T3 and POS). Meanwhile,
LCP and NCP provide packet encapsulation format which is different from that of Ethernet
protocol for upper layer protocols.
For a upper layer protocol packet (such as IP packet, MPLS packet, and so on), a 2bytes
protocol field is encapsulated to the packet, and two PPP headers with a fixed value
(0xFF03) is added. According to actual requirements, the PPP header can be compressed
by negotiation.
PPP negotiation has three stages, LCP, authentication (optional) and NCP.
l
PPP has higher bandwidth use rate. For shorter packets, the effect is more
obvious. Additionally, compared with Ethernet encapsulation, the encapsulation of
a PPP packet header is more simple. Complex MAC header encapsulation and
decapsulation is removed from the mechanism of packet sending and receiving.
PPP protocol state machine is more complex than that of Ethernet, because PPP
protocol is set up after the negotiation is successful on an interface. After that, the
upper layer can send and receive service packets.
By default, the protocol state is in down state on an interface after a PPP interface
is created. After PPP negotiation is successful, the interfaces will be in up state.
After PPP link negotiation is successful, both sides will send LCP keepalive packets
periodically. If one side fails to receive ECHO response packets after N (N >= 1)
keepalive request packets are sent by the other side, the link will be in down state.
Meanwhile, the protocol state is down. The operations (such as route recalculation,
route update, and so on) are triggered.
11-2
SJ-20140731105308-008|2014-10-20 (R1.0)
Steps
1. Configure the encapsulation mode of a POS interface to ppp.
Step
Command
Function
ZXR10(config)#interface <interface-name>
ZXR10(config-if-interface-name)#encapsulation
Command
Function
ZXR10(config)#ppp
ZXR10(config-ppp-if-interface-name)#ppp
ZXR10(config-ppp-if-interface-name)#ppp
ZXR10(config-ppp-if-interface-name)#ppp
ZXR10(config-ppp-if-interface-name)#ppp
open
ZXR10(config-ppp-if-interface-name)#ppp pap
encrypted <password>}
11-3
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
ZXR10(config-ppp-if-interface-name)#ppp
ZXR10(config-ppp-if-interface-name)#ppp
10
ZXR10(config-ppp-if-interface-name)#keepa
11
ZXR10(config-ppp-if-interface-name)#ppp
max-echo <max_count>
12
ZXR10(config-ppp-if-interface-name)#ppp
13
ZXR10(config-ppp-if-interface-name)#ppp bcp
<enable| disable>
14
ZXR10(config-ppp-if-interface-name)#ppp
15
16
ZXR10(config-ppp-if-interface-name)#bind-i
p-pool <poolname>
ZXR10(config-ppp-if-interface-name)#ip-acces
11-4
SJ-20140731105308-008|2014-10-20 (R1.0)
Command
Function
|<interface-name>|[{exclude | include}<line>]]]
ZXR10#show ppp multilink [<multilink-number>]
Function
<interface-name>]
authentication.
<interface-name>]
events.
<interface-name>]
End of Steps
11-5
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Flow
1. Configure IP address on the POS192 interfaces of R1 and R2.
2. Configure authentication mode on the POS192 interfaces of R1 and R2.
3. Test the configuration to check whether R1 and R2 can ping each other successfully.
Configuration Command
The configuration of R1:
R1(config)#interface pos192-0/1/0/1
R1(config-if-pos192-0/1/0/1)#ip address 11.12.13.14 255.255.255.0
R1(config-if-pos192-0/1/0/1)#exit
R1(config)#ppp
R1(config-ppp)#interface pos192-0/1/0/1
R1(config-ppp-if-pos192-0/1/0/1)#ppp authentication pap
R1(config-ppp-if-pos192-0/1/0/1)#ppp pap sent-username zte password zte
R1(config-ppp-if-pos192-0/1/0/1)#end
Configuration Verification
Check the configuration result on R1, as shown below.
R1#ping 21.22.23.24
sending 5,100-byte ICMP echoes to 21.22.23.24,timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),
round-trip min/avg/max= 129/185/200ms.
11-6
SJ-20140731105308-008|2014-10-20 (R1.0)
11-7
SJ-20140731105308-008|2014-10-20 (R1.0)
11-8
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 12
HDLC Configuration
Table of Contents
HDLC Overview .......................................................................................................12-1
Configuring HDLC ....................................................................................................12-3
HDLC Configuration Examples.................................................................................12-4
HDLC can aggregate several POS interfaces encapsulated with HDLC into a POSgroup
logical interface. On ZXR10 M6000-S, posgroup provides more flexible and effective
solutions about network architecture for users. It brings more flexibility in network planning
and network architecture designing with ZXR10 series products. It also improves the
network stability greatly, especially for Ethernet and network environments in which
Ethernet interfaces are used. POSgroup function can extend bandwidth, which makes
the cost to construct network more reasonable.
l
POSgroup can improve the communication ability of the links. It aggregates several
POS interfaces into an interface. The bandwidth of a POSgroup interface is the
bandwidth sum of the member interfaces. In this way, the interface bandwidth is
increased.
12-1
SJ-20140731105308-008|2014-10-20 (R1.0)
l
l
l
l
Posgroup supports the aggregation of POS interfaces across boards and of different
speeds.
POSgroup supports two modes of load sharing, per-packet mode and per-destination
mode.
64 POSgroup interfaces can be configured at most.
There are 16 POS interfaces at most in each POSgroup interface.
HDLC Features
HDLC provides a mechanism to detect whether the physical link works properly. It provides
an encapsulation mode for the upper layer packets. HDLC supports encapsulation for IP
packets and Intermediate System-to-Intermediate System (IS-IS) packets. In addition,
HDLC can aggregate several POS interfaces encapsulated with HDLC into a logical
interface with larger bandwidth, that is, implementing link aggregation of POS interfaces.
Link aggregation means to aggregate several physical links with the same transmission
medium and speed to form a data channel in logic. The POSgroup link aggregation is
shown in Figure 12-2.
Figure 12-2 POSgroup Link Aggregation
l
l
l
Devices of most vendors support CISCO HDLC. At present, ZTE devices also support
CISCO HDLC. The main function of CISCO HDLC is to provide transparent transmission
for the upper layer protocol. The chief characteristic of CISCO HDLC is simple and
effective.
12-2
SJ-20140731105308-008|2014-10-20 (R1.0)
Steps
1. Configure the encapsulation mode of a POS interface to hdlc.
Step
Command
Function
ZXR10(config)#interface <interface-name>
ZXR10(config-if-interface-name)#encapsulation
Command
Function
ZXR10(config)#hdlc
ZXR10(config-hdlc)#interface <interface-name>
ZXR10(config-hdlc-if-interface-name)#keepal
ive [<timeout>|disable]
ZXR10(config)#interface <posgroup-name>
ZXR10(config)#mhdlc
ZXR10(config-mhdlc)#interface <interface>
ZXR10(config-mhdlc-member-if-interface-
12-3
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
ZXR10(config-mhdlc-sg-if-posgroup-name)#)#m
10
ZXR10(config-mhdlc-sg-if-posgroup-name)#)#m
Function
>|[{exclude | include}<line>]]]
ZXR10#show mhdlc [<posgroup-id>]
Function
e>]| all }
End of Steps
12-4
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Flow
1. Set the encapsulation type to frame-relay on the POS192 interfaces of R1 and R2.
2. Configure IP addresses on the POS192 interfaces of R1 and R2. The IP addresses
are in the same segment.
3. Test the configuration to check whether R1 and R2 can ping each other successfully.
Configuration Command
Configuration for R1:
R1(config)#interface pos192-0/1/0/1
R1(config-if-pos192-0/1/0/1)#no shutdown
R1(config-if-pos192-0/1/0/1)#encapsulation hdlc
R1(config-if-pos192-0/1/0/1)#ip address 11.12.13.14 255.255.255.0
R1(config-if-pos192-0/1/0/1)#exit
Configuration Verification
Check the configuration result on R1, as shown below.
R1#ping 11.12.13.15
sending 5,100-byte ICMP echoes to 11.12.13.15,timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max= 129/185/200ms.
12-5
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Flow
1. Set the encapsulation type to HDLC on the POS192 interfaces of R1 and R2.
2. Create posgroup interfaces. Configure IP addresses on the POS192 interfaces of R1
and R2. The IP addresses are in the same segment.
3. Aggregate the POS interfaces to the POSgroups.
4. Test the configuration to check whether R1 and R2 can ping each other successfully.
Configuration Command
Configuration for R1:
R1(config)#interface pos192-0/1/0/1
R1(config-if-pos192-0/1/0/1)#no shutdown
R1(config-if-pos192-0/1/0/1)#encapsulation hdlc
R1(config-if-pos192-0/1/0/1)#exit
R1(config)#interface pos192-0/1/0/4
R1(config-if-pos192-0/1/0/4)#no shutdown
R1(config-if-pos192-0/1/0/4)#encapsulation hdlc
R1(config-if-pos192-0/1/0/4)#exit
R1(config)#interface
posgroup1
R1(config)#mhdlc
R1(config-mhdlc)#interface
pos192-0/1/0/1
R1(config-mhdlc-member-if-pos192-0/1/0/1)#posgroup 1
R1(config-mhdlc-member-if-pos192-0/1/0/1)#exit
R1(config-mhdlc)#interface
pos192-0/1/0/4
12-6
SJ-20140731105308-008|2014-10-20 (R1.0)
posgroup2
R2(config)#mhdlc
R2(config-mhdlc)#interface
pos192-0/5/1/1
R2(config-mhdlc-member-if-pos192-0/5/1/1)#posgroup 2
R2(config-mhdlc-member-if-pos192-0/5/1/1)#exit
R2(config-mhdlc)#interface
pos192-0/5/1/4
R2(config-mhdlc-member-if-pos192-0/5/1/4)#posgroup 2
R2(config-mhdlc-member-if-pos192-0/5/1/4)#end
Configuration Verification
Check the configuration result on R1, as shown below.
R1#ping 11.12.13.15
sending 5,100-byte ICMP echoes to 11.12.13.15,timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max= 129/185/200ms.
12-7
SJ-20140731105308-008|2014-10-20 (R1.0)
12-8
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 13
ICBG Configuration
Table of Contents
ICBG Overview ........................................................................................................13-1
Configuring an ICBG ................................................................................................13-1
ICBG Configuration Example....................................................................................13-2
Steps
1. Create an ICBG.
Command
Function
ZXR10(config)#icbg <group-name>
Function
ZXR10(config-icbg-name)#bind interface
<local-port-name>
Function
ZXR10(config-icbg-name)#track <track-name>
13-1
SJ-20140731105308-008|2014-10-20 (R1.0)
Function
ZXR10(config-icbg-name)#bind rg <group-number>
Function
ZXR10(config-icbg-name)#group-backup-interval
<value>
Function
ZXR10(config-icbg-name)#group-backup-immediately
7. Query an ICBG.
Command
Function
End of Steps
13-2
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Flow
1. Configure interface addresses on PE1 and PE2 to establish an OSPF neighbor
relationship.
2. Configure a redundancy group and ICCP connection between PE1 and PE2.
3. Configure a track on PE1 and PE2 each.
4. Bind the ICBG to the track and redundancy group on PE1 and PE2.
5. Trigger backup for the ICBG in ICBG configuration mode.
Configuration Commands
Configuration for PE1:
PE1(config)#interface loopback1
PE1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
PE1(config-if-loopback1)#exit
PE1(config)#interface gei-0/1/0/2
PE1(config-if-gei-0/1/0/2)#ip address 5.5.5.1 255.255.255.255
PE1(config-if-gei-0/1/0/2)#exit
PE1(config)#router ospf 1
PE1(config-ospf-1)#router-id 1.1.1.1
PE1(config-ospf-1)#network 5.5.5.0 0.0.0.255 area 0
PE1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
PE1(config-ospf-1)#exit
13-3
SJ-20140731105308-008|2014-10-20 (R1.0)
PE1(config)#icbg zte
PE1(config-icbg-zte)#bind interface gei-0/1/0/2
PE1(config-icbg-zte)#bind rg 1
PE1(config-icbg-zte)#track 1
PE2(config)#samgr
PE2(config-samgr)#track 1 interface gei-0/1/0/2
PE2(config-samgr)#exit
PE2(config)#icbg zte
PE2(config-icbg-zte)#bind interface gei-0/1/0/2
PE2(config-icbg-zte)#bind rg 1
PE2(config-icbg-zte)#track 1
PE2(config-icbg-zte)#group-backup-immediately
Configuration Verification
Check the ICBG on PE1.
13-4
SJ-20140731105308-008|2014-10-20 (R1.0)
:zte
Track
:1
Interval
:10(min)
Interface :gei-0/1/0/2
Status
:master
Redundancy group:1
------------------------------------------
13-5
SJ-20140731105308-008|2014-10-20 (R1.0)
13-6
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 14
Multilink Configuration
Table of Contents
Multilink Overview ....................................................................................................14-1
Configuring Multilink .................................................................................................14-2
Multilink Configuration Example ...............................................................................14-4
Multilink Features
Multilink port is a virtual port and has all the functions of a normal layer-3 port. Multiple PPP
ports are bound to the Multilink port, meaning that one Multilink virtual port corresponds to
multiple PPP physical real ports (Multilink corresponds to multiple physical links).
For relation between Multilink and PPP, refer to Figure 14-1. LCP is negotiated by each
PPP independently. The configuration options carried by an LCP must include options
corresponding to Multilink (such as MRRU, EPD, short sequence, and class header
format.) After the successful LCP negotiation, NCP negotiation is started. The NCP
negotiation is completed by the Multilink virtual port (the verifying flow of LCP is the same
as that of a normal PPP port, and therefore related details are omitted in the following
figure).
14-1
SJ-20140731105308-008|2014-10-20 (R1.0)
During the basic parameters negotiation in the LCP link creation, the following three
configuration options are defined to negotiate the start of Multilink: Multilink Maximum
Received Reconstructed Unit (MRRU), Multilink Short Sequence Number Header
Format (SSNHF), and endpoint discriminator.
Before the use of Multilink, at least Multilink MRRU has to be negotiated successfully
on each link between two devices. Once the negotiation is completed, each physical
link has an LCP link. The LCP links form a virtual bundle, and Multilink will be able to
work.
On a low-speed link, such as the traditional circuit E1/T1, multiple low-speed links can
be bundled into one logical link through the Multilink protocol. To some extent, this
increases the bandwidth.
Comparing with an ordinary PPP packet in terms of encapsulation format, the long
Multilink packet increases a 4-byte overhead, and the short Multilink packet increases
a 4-byte overhead.
To some extent, Multilink fragmentation and reconstruction will occupy many CPU
resources.
Steps
1. Create a multilink interface.
Command
Function
ZXR10(config)#interface multilink<multilink-id>
14-2
SJ-20140731105308-008|2014-10-20 (R1.0)
Command
Function
ZXR10(config)#ppp
ZXR10(config-ppp-interface-name)#interface
<interface-name>
configuration mode.
ZXR10(config-ppp-if-interface-name)#multili
nk-group multilink<multilink-id>
MPPP interface.
ZXR10(config-ppp-if-interface-name)#ppp
endpoint <string>: Description string. Range: 116 bytes. The default is generated
automatically based on certain rules. By default, endpoints of the sub-links in a multi
link are the same.
Parameter description for the command is as follows:
3. Configure parameters of MPPP.
Step
Command
Function
ZXR10(config)#mppp
ZXR10(config-mppp)#interface <interface-name>
ZXR10(config-mppp-if-interface-name)#mppp
ZXR10(config-mppp-if-interface-name)#mppp
multilink fragmentation
fragmentation mode. It is
necessary to unbind the Multilink
bundle before the configuration.
No fragmentation is by default.
ZXR10(config-mppp-if-interface-name)#mppp
Command
Function
Function
<interface-name>]
debugging function.
functions.
End of Steps
14-4
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Flow
1. Create a Multilink1 interface respectively on R1 and R2, and configure IP addresses
in the same network segment or different network segments for the created interfaces.
2. Set the load sharing mode of the Multilink interfaces to per packet.
3. Bind the CPOS interfaces of R1 and R2 respectively to the Multilink 1 interfaces.
4. Test the configuration result to confirm that the Multilink interfaces between R1 and R2
can successfully ping each other.
Configuration Command
Configuration on R1:
R1(config)#interface multilink1
R1(config-if-multilink1)#ip address 11.12.13.14 255.255.255.0
R1(config-if-multilink1)#exit
R1(config)#mppp
R1(config-mppp)#interface multilink1
R1(config-mppp-if-multilink1)#mppp load-balance per-packet
R1(config-mppp-if-multilink1)#exit
R1(config-mppp)#exit
R1(config)#interface cpos3_e1-0/2/1/1.1/1/1:1
R1(config-if-cpos3_e1-0/2/1/1.1/1/1:1)#no shutdown
R1(config-if-cpos3_e1-0/2/1/1.1/1/1:1)#exit
R1(config)#ppp
R1(config-ppp)#interface cpos3_e1-0/2/1/1.1/1/1:1
R1(config-ppp-if-cpos3_e1-0/2/1/1.1/1/1:1)#multilink-group multilink1
R1(config-ppp-if-cpos3_e1-0/2/1/1.1/1/1:1)#end
Configuration on R2:
R2(config)#interface multilink1
R2(config-if-multilink1)#ip address 21.22.23.24 255.255.255.0
R2(config-if-multilink1)#exit
R2(config)#mppp
R2(config-mppp)#interface multilink1
R2(config-mppp-if-multilink1)#mppp load-balance per-packet
R2(config-mppp-if-multilink1)#exit
R2(config-mppp)#exit
R2(config)#interface cpos3_e1-0/2/1/2.1/1/1:1
R2(config-if-cpos3_e1-0/2/1/2.1/1/1:1)#no shutdown
R2(config-if-cpos3_e1-0/2/1/2.1/1/1:1)#exit
14-5
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Verification
View the configuration on R1:
R1#show running-config-interface cpos3_e1-0/2/1/1.1/1/1:1
! <Interface>
interface cpos3_e1-0/2/1/1.1/1/1:1
no shutdown
$
! </Interface>
! <ppp>
ppp
interface cpos3_e1-0/2/1/1.1/1/1:1
multilink-group multilink1
$
$
! </ppp>
14-6
SJ-20140731105308-008|2014-10-20 (R1.0)
14-7
SJ-20140731105308-008|2014-10-20 (R1.0)
14-8
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 15
Interface Handover
Configuration
Table of Contents
LAN/WAN Handover Overview .................................................................................15-1
Configuring Interface Handover ................................................................................15-2
Interface Handover Configuration Example ..............................................................15-2
There are many differences between the requirements of indicators, including the
requirements of clock oscillation, Bit Error Rate (BER) and QoS. Therefore, the
standards of two different physical mediums are defined.
There are some common points between the two physical layers, for example, they
share the same MAC layer, only support full duplex, omit the CSMA/CD policy and
use optical fiber as physical medium.
The physical layer of a 10 G LAN has the following features. It supports 802.3 MAC
full duplex working mode. The frame format is the same as Ethernet frame format. The
working rate is 10 Gb/s. The a 10 G LAN transmits Ethernet frames on the optical fiber
directly. As LAN Ethernet uses Ethernet frame format, the transmission rate is 10 Gb/s.
A 10 G WAN uses OC-192c (optical counterpoint of STS-192c) frame format to transmit
data on links, and the transmission rate is 9.953280 Gb/s.
At present, RP-02XGE-SFP+-S/RP-01XGE-SFP+-S supports 10 G LAN and 10 G WAN
access.
Here take RP-02XGE-SFP+-S as an example, RP-02XGE-SFP+-S consists of an optical
interface module, a Physical layer (PHY) module, a Field Programmable Gate Array
(FPGA) and an Erasable Programmable Logic Device (EPLD).
The
command
can
manually
specify
the
line
interface
bard
RP-02XGE-SFP+-S/RP-01XGE-SFP+-S to switch between 10G LAN access and 10G
WAN access.
15-1
SJ-20140731105308-008|2014-10-20 (R1.0)
Steps
1. Configure the LAN/WAN handover of the interface.
Step
Command
Function
ZXR10(config)#interface <interface-name>
ZXR10(config-if-interface-name)#port-mode
handover.
Caution!
If LAN/WAN attribute is not configured on a port, RP(S)-02XGE-SFP+-S will initialize
the port to LAN mode.
LAN/WAN handover will clear all upper layer configurations. During use, configure
other configurations after the LAN/WAN mode is fixed. If configurations are configured
before the LAN/WAN mode is fixed, all the configurations configured previously will be
cleared.
Function
End of Steps
Configuration Flow
1. Use the show version command to view the slot of the sub-card that is required to hand
over.
2. Enter interface configuration mode from global configuration mode.
15-2
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration Command
Configuration on ZXR10 M6000-S:
ZXR10(config)#interface xgei-0/2/1/1
ZXR10(config-if-xgei-0/2/1/1)#port-mode lan-wan wan
ZXR10(config)#
Configuration Verification
The handover result is shown below.
ZXR10#show ip interface brief phy
gei-0/2/0/1
unassigned
unassigned
up
up
up
gei-0/2/0/2
10.2.1.1
255.255.255.0
up
up
up
gei-0/2/0/3
unassigned
unassigned
down
down
down
gei-0/2/0/4
unassigned
unassigned
up
up
up
gei-0/2/0/5
unassigned
unassigned
down
down
down
gei-0/2/0/6
172.0.2.1
255.255.255.0
up
up
up
gei-0/2/0/7
unassigned
unassigned
up
up
up
gei-0/2/0/8
unassigned
unassigned
up
up
up
gei-0/2/0/9
unassigned
unassigned
up
up
up
gei-0/2/0/10
unassigned
unassigned
up
up
up
xgeiw-0/2/1/1
unassigned
unassigned
down
down
down
15-3
SJ-20140731105308-008|2014-10-20 (R1.0)
15-4
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 16
16-1
SJ-20140731105308-008|2014-10-20 (R1.0)
Steps
1. Activate the port damping function.
Perform the following steps to activate the port damping function on a port of the ZXR10
M6000-S. The port damping function is activated by default.
Step
Command
Function
ZXR10(config)#interface <interface-name>
ZXR10(config-if-interface-name)#damping enable
function on a port.
Function
ZXR10(config-if-interface-name)#damping
<maxsuptime><suppress><reuse><halflife>
Note:
Configuration requirements: <maxsuptime> is greater than <halflife>, and <suppress> is
greater than <reuse>.
Function
The information to be displayed includes port type, physical address of port, flap times,
port damping times, the current penalty value, the maximum penalty value, the port
16-2
SJ-20140731105308-008|2014-10-20 (R1.0)
is suppressed or not, the maximum damping time, damping threshold value, reuse
threshold value, and half-life.
End of Steps
Configuration Flow
Configure port damping function in the following steps.
1. Enter interface configuration mode.
2. Enable port damping function on R1 port (Port damping function is enabled by default).
3. Set port damping attributes.
Caution!
By default, the damping function is enabled for all ports. You can run the show damping
command to view the damping function state of interfaces.
Configuration Command
Configuration on R1:
R1(config)#interface gei-0/2/1/3
R1(config-if-gei-0/2/1/3)#damping enable
R1(config-if-gei-0/2/1/3)#damping 20 2000 1000 5
R1(config-if-gei-0/2/1/3)#end
Configuration Verification
View the configuration on R1, as shown below.
R1#show portdamping gei-0/2/1/3
===================================================================
16-3
SJ-20140731105308-008|2014-10-20 (R1.0)
Penalty
MaxSTm
SuppV
ReuseV
HalfL
Suppress
====================================================================
gei-0/2/1/3
MaxSTm SuppV ReuseV HalfL MaxPenalty DampNum Suppress Penalty Flaps
====================================================================
20
2000
1000
16000
--------------------------------------------------------------------
16-4
SJ-20140731105308-008|2014-10-20 (R1.0)
Chapter 17
Other Interfaces
Configuration
Logical interfaces are manually configured interfaces which do not physically exist.
The ZXR10 M6000-S supports the following logical interfaces, loopback, NULL, Ulei,
Tunnel, SDU, SuperVLAN, and SmartGroup interfaces. These logical interfaces share
the following features:
1. There is no corresponding physical interface, though mapping relationships
sometimes exist between the real and logical interfaces.
2. Logical interfaces (except NULL interfaces) cannot be automatically generated
accompanied with physical interfaces. They have to be created manually in
accordance with actual requirements.
Table of Contents
Configuring a Loopback Interface .............................................................................17-1
Configuring a NULL Interface ...................................................................................17-4
Configuring a ULEI Interface ....................................................................................17-6
Configuring a Tunnel ................................................................................................17-8
Context
A loopback interface has the following usage:
l
After planning the network architecture, the system administrator creates a loopback
interface for each router and assigns an IP address for each loopback interface.
The system administrator logs in to a router through the corresponding loopback IP
address by using the Telnet application. Since the loopback interface is always on
UP status after being created, the IP address of the loopback interface functions as
a device name. The loopback interface does not interconnect with the peer end.
Therefore, the IP address of the loopback interface is set as a 32-digit mask.
The IP address of loopback interface acts as Router-ID of dynamic routing protocol
(such as OSPF and BGP).
17-1
SJ-20140731105308-008|2014-10-20 (R1.0)
In dynamic routing protocol running process (OSPF and BGP), a Router-ID needs to
be specified to act as the unique identifier of the router. The Router-ID is unique in the
entity autonomous system. The Router-ID is a 32-bit unsigned integer, which is very
similar to an IP address. The IP address cannot be repeated, therefore, Router-ID
is usually specified to be the IP address of a interface on router. The IP address of
a loopback interface is usually regarded as the identifier of a router, so it is the best
choice of Router-ID.
l
It can act as the source address of the BGP to create the TCP connection.
In BGP, the neighborhood is created by TCP connection between two routers
running BGP. Specify loopback interfaces to be the source addresses to create TCP
connection. It is usually applied to Interior Border Gateway Protocol (IBGP), which
can enhance the robustness of TCP connection.
Steps
1. Configuring a loopback interface.
Step
Command
Function
<byname>}
address><net-mask>|<A.B.C.D/X>}[<broadcast-address>|
secondary]
interface.
Function
ZXR10#show ip interface
Shows IP interface
End of Steps
Configuration description
A loopback interface usually acts as the next hop of the routing, which can have the
effect of black hole route.
17-2
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration flow
1. Create the loopback interface and configure the IP address.
2. Configure the loopback interface to be the next hop of the routing.
Configuration command
The following shows the configuration of R1:
R1(config)#interface loopback?
<1-64>
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 192.1.1.2 255.255.255.0
R1(config-if-loopback1)#exit
R1(config)#ip route 192.11.1.2 255.255.255.255 loopback1
Configuration verification
Run the show command to verify the configuration:
R1(config)#show running-config-interface loopback1
! <Interface>
interface loopback1
ip address 192.1.1.2 255.255.255.0
$
!</Interface>
!<static_route>
ip route 192.11.1.2 255.255.255.255 loopback1
!</static_route>
Gw
Interface
Owner
Pri Metric
192.1.1.2
loopback1
static
Configuration description
Figure 17-2 shows an example of using the loopback interface as Router-ID on R1.
17-3
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration flow
1. Create a loopback interface and configure IP address.
2. Configure the loopback interface as Router-ID of routing protocol.
Configuration command
The following shows the configuration of R1:
R1(config)#interface loopback1
R1(config-if-loopback1)#ip adderss 1.1.1.2 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/1/0/1
R1(config-if-gei-0/1/0/1)#ip address 30.0.0.1 255.255.255.252
R1(config-if-gei-0/1/0/1)#exit
R1(config)#interface gei-0/1/0/2
R1(config-if-gei-0/1/0/2)#ip address 30.0.2.1 255.255.255.252
R1(config-if-gei-0/1/0/2)#exit
R1(config)#router ospf 10
R1(config-ospf-10)#router-id 1.1.1.2
R1(config-ospf-10)#network 30.0.0.0 0.0.0.3 area 0
R1(config-ospf-10)#redistribute connected
R1(config-ospf-10)#exit
Context
The NULL interface is a logical interface that cannot be configured with an IP address. The
NULL interface can be used in the BGP to save an IP address, and it also can be used to
configure a black hole routing for avoiding loops.
All the data packets transmitting to the NULL interface are discarded. For example, all the
packets transmitting to 192.101.0.0 will be discarded by running the ip route 192.101.0.0
255.255.0.0 null1 command.
Steps
1. Configure a NULL interface.
The system automatically creates a NULL1 interface. It needs no configuration and
cannot be deleted.
17-4
SJ-20140731105308-008|2014-10-20 (R1.0)
Function
ZXR10#show running-config-interface
End of Steps
Example
The following example shows how to configure a NULL interface.
l
Configuration description
The NULL interface does not forward any packet. All the packets transmitting to the
NULL interface are discarded. The NULL interface is usually used for:
Filter traffic.
The NULL interface usually acts as the next hop of the routing, which has the effect of
black hole route. Figure 17-3 shows an example of constructing a blackhole routing
on R1 to introduce the 192.11.1.2 host route to the black hole routing.
Figure 17-3 NULL Interface Configuration Example
Configuration flow
Configure NULL interface as the next hop of static route.
Configuration command
The following shows the configuration of R1:
R1(config)#ip route 192.11.1.2 255.255.255.255 null?
<1-1>
R1(config)#ip route 192.11.1.2 255.255.255.255 null1
Configuration verification
Run the show command to verify the configuration:
R1(config)#show running-config-interface null1
!<Interface>
interface null1
$
!</Interface>
!<static_route>
ip route 192.11.1.2 255.255.255.255 null1
17-5
SJ-20140731105308-008|2014-10-20 (R1.0)
Gw
Interface
Owner
Pri Metric
0.0.0.0
null1
static
Context
A Universal Logical Ethernet Interface (ULEI) is a logical interface with Ethernet attributes.
The ULEI interface supports all Ethernet services (sub-interfaces, VLAN, QINQ, L2VPN,
L3VPN, routing, BFD, and MSTP). The ULEI interface implements the following purposes:
l
Steps
1. Configure a ULEI interface.
Step
Command
Function
ZXR10(config)#interface [ulei_name]
17-6
SJ-20140731105308-008|2014-10-20 (R1.0)
Step
Command
Function
ZXR10(config)#ppp
ZXR10(config-ppp)#interface <interface-name>
ZXR10(config-ppp-if-interface-name)#no ppp
ipcp enable
4
ZXR10(config-ppp-if-interface-name)#ppp bcp
enable
5
ZXR10(config)#interface [pos_name]
ZXR10(config-if-interface-name)#map to
<ulei_name>
Function
<ulei-name>
End of Steps
Configuration description
Configure the mapping between a ULEI interface and a POS interface on the router.
Configuration flow
1. Enter PPP mode to configure a POS interface.
2. Create a ULEI interface.
3. Associate the ULEI interface with the POS interface.
Configuration command
Configuration for the router:
ZXR10(config)#ppp
ZXR10(config-ppp)#interface pos192-0/7/0/2
ZXR10(config-ppp-if-pos192-0/7/0/2)#no ppp ipcp enable
ZXR10(config-ppp-if-pos192-0/7/0/2)#ppp bcp enable
ZXR10(config-ppp-if-pos192-0/7/0/2)#exit
17-7
SJ-20140731105308-008|2014-10-20 (R1.0)
ZXR10(config)#interface pos192-0/7/0/2
ZXR10(config-if-pos192-0/7/0/2)#map-to ulei-0/7/0/1
ZXR10(config-if-pos192-0/7/0/2)#exit
Configuration verification
Use the show command to verify the mapping configuration.
ZXR10#show running-config portmap
! <PMAP>
interface pos192-0/7/0/2
map-to ulei-0/7/0/1
$
! </PMAP>
Context
Tunnel is a type of encapsulation technology that uses a network protocol to transmit
another network protocol. That is, the tunnel technology uses a network transmission
protocol to encapsulate data packets generated by other protocols in its own packets, and
then transmits them in the network.
At present, the tunnels supported by the ZXR10 M6000-S include GRE_tunnel, TE_tunnel,
and v6_tunnel.
l
GRE_tunnel
The Generic Routing Encapsulation (GRE) is a mechanism for encapsulating a
packet of one protocol into a packet of another protocol. This enables packets to be
transmitted across different networks. Channels over which packets are transmitted
across different networks are called tunnels. The GRE can also acts as Layer3
tunneling protocol of the VPN, providing a transparent channel for VPN data.
The process of transmitting packets through a GRE tunnel includes encapsulation and
decapsulation processes.
After receiving the data that needs to be encapsulated and routed over any network
layer protocol (such as IPX), the system first adds a GRE packet header to the data to
form a GRE packet, and then encapsulates the packet over another protocol (such as
17-8
SJ-20140731105308-008|2014-10-20 (R1.0)
IP). As specified by the GRE encapsulation specification, the GRE can encapsulate
Layer-2 frames (such as PPP frames and MPLS) besides IP packets.
l
TE_Tunnel
The RSVP is an advertisement mechanism for reserved resources used across the
network. It is not a routing protocol. Routing decisions are made by the IGP protocol,
the IGP TE extension, and the CSPF. The RSVP is only used to advertise and maintain
reserved resources on the network. The TE-extended RSVP protocol is called the
RSVP-TE protocol, which can be used in MPLS-TE signaling.
The process of establishing a tunnel for RSVP-TE signaling is as follows:
1. The head end of a tunnel sends a Path message to the next hop along the
calculated path to advertise the procedure of establishing a tunnel.
2. After receiving the Path message, the downstream router performs admission
control, including checking the validity of the message and the resource
requested by the message. If admission control is successful, the downstream
router generates a new Path message and sends it to the next hop in the Explicit
Route Object (ERO).
3. The tail end of the tunnel also performs admission control. Knowing that the local
router is the destination of the Path message, the tail end returns a Resv message
to the upstream router, carrying the flag used when the upstream router sends the
packet to the local router.
4. After receiving the Resv message, each node reserves resources based on the
resource requirement of this message, writes the forwarding table based on the
flag carried by this message, generates a new Resv message, and sends it to
the upstream router. After the new Resv message arrives at the head node, the
establishment of a tunnel is completed.
v6_tunnel
The IPv6 over IPv4 tunneling mechanism first encapsulates an IPv4 packet header for
an IPv6 packet, and makes the IPv6 packet pass through the IPv4 network through a
tunnel. This interconnects isolated IPv6 networks.
A tunnel can be established between host-host, host-device, device-host, and
device-device. The termination of a tunnel may be the destination of an IPv6 packet,
and the IPv6 packet may be further forwarded. Based on the methods for obtaining
the IPV4 address of a tunnel termination, tunnels are divided into "self-defined
tunnels" and "auto tunnels".
For IPv4/IPv6 over IPv6 tunnels, the protocol encapsulates IPv4 or IPv6 packets to
enable encapsulated packets to be transmitted over another IPv6 network. These
encapsulated packets are IPv6-tunnel packets.
Steps
1. Configuring a Tunnel.
Run the following command to configure a GRE tunnel on the ZXR10 M6000-S:
17-9
SJ-20140731105308-008|2014-10-20 (R1.0)
Command
Function
ZXR10(config)#interface gre_tunnel<tunnel_id>
Function
ZXR10(config)#interface te_tunnel<tunnel_id>
Function
ZXR10(config)#interface v6_tunnel<tunnel_id>
Function
l_id>
ZXR10(config)#show ip interface te_tunnel<tunne
l_id>
ZXR10(config)#show ip interface v6_tunnel<tunne
l_id>
End of Steps
Configuration description
For how to configure a tunnel interface on a router, and detailed tunnel applications,
refer to the ZXR10 M6000-S Carrier-Class Router Configuration Guide (MPLS),
ZXR10 M6000-S Carrier-Class Router Configuration Guide (VPN), and ZXR10
M6000-S Carrier-Class Router Configuration Guide (IPv6).
Configuration flow
1. Enter tunnel interface configuration mode.
2. Configure the related attributes.
Configuration command
Configuration for the router:
17-10
SJ-20140731105308-008|2014-10-20 (R1.0)
Configuration verification
Run the show command to verify the configuration.
ZXR10(config)#show ip interface gre_tunnel1
gre_tunnel1 AdminStatus is up, PhyStatus is up, line protocol is down
Ip unnumbered loopback1
(use ip address:1.2.3.81)
(use ip address:1.2.3.81)
17-11
SJ-20140731105308-008|2014-10-20 (R1.0)
17-12
SJ-20140731105308-008|2014-10-20 (R1.0)
Figures
Figure 2-1 Five Classes of IP Addresses .................................................................. 2-1
Figure 2-2
II
SJ-20140731105308-008|2014-10-20 (R1.0)
Glossary
ATM
- Asynchronous Transfer Mode
BCP
- Bridging Control Protocol
BER
- Bit Error Rate
BGP
- Border Gateway Protocol
BOOTP
- Bootstrap Protocol
CFI
- Canonical Format Indicator
CHAP
- Challenge Handshake Authentication Protocol
CIP
- Customer Instance Port
CSMA/CD
- Carrier Sense Multiple Access/Collision Detect
DCE
- Data Circuit-terminating Equipment
DHCP
- Dynamic Host Configuration Protocol
DTE
- Data Terminal Equipment
EPLD
- Erasable Programmable Logic Device
FDDI
- Fiber Distributed Data Interface
FE
- Fast Ethernet
FPGA
- Field Programmable Gate Array
GE
- Gigabit Ethernet
III
SJ-20140731105308-008|2014-10-20 (R1.0)
GRE
- General Routing Encapsulation
HDLC
- High-level Data Link Control
IBGP
- Interior Border Gateway Protocol
IP
- Internet Protocol
IPCP
- IP Control Protocol
IS-IS
- Intermediate System-to-Intermediate System
ISO
- International Organization for Standardization
LACP
- Link Aggregation Control Protocol
LAN
- Local Area Network
LCP
- Link Control Protocol
MAC
- Message Authentication Code
MD5
- Message Digest 5 Algorithm
MEN
- Metro Ethernet Network
MPLS
- Multiprotocol Label Switching
MPLSCP
- MPLS Control Protocol
MTU
- Maximum Transmission Unit
NCP
- Network Control Protocol
OSI
- Open System Interconnection
PAP
- Password Authentication Protocol
IV
SJ-20140731105308-008|2014-10-20 (R1.0)
Glossary
PHY
- Physical layer
POS
- Packet Over SDH
POS
- Packet Over SONET/SDH
PPP
- Point to Point Protocol
RARP
- Reverse Address Resolution Protocol
RSVP
- Resource Reservation Protocol
SPE
- Signal Portal Element
TCI
- Tag Control Information
TPID
- Tag Protocol Identifier
VID
- VLAN Identifier
VLAN
- Virtual Local Area Network
VPN
- Virtual Private Network
WAN
- Wide Area Network
WDM
- Wavelength Division Multiplexing
V
SJ-20140731105308-008|2014-10-20 (R1.0)