Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Step

Description

Command

Keys

1

In the context of MPLS parameters configuration, specify the interfaces involved in the MPLS switching process

esr(config-mpls)# forwarding interface { <IF> | <TUN> }

<IF> – an interface's name, specified in the form described in Section Types and naming order of router interfaces;.

<TUN> – the name of the tunnel is specified as described in section Types and naming order of router tunnels;.

2

Specify the router-id for LDP (not necessary if transport-address is specified).

esr(config-ldp)# router-id <ID>

<ID> – router identifier, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255].

3

In the context of the address family ipv4 settings, specify transport-address (not necessary if router-id is specified).

esr(config-ldp-af-ipv4)# transport-address <ADDR>

<ADDR> – defined as AAA.BBB.CCC.DDD where each part takes values of [0..255].

4

In the context of the address family ipv4 settings, specify interfaces for enabling LDP process.

esr(config-ldp-af-ipv4)# interface { <IF> | <TUN> }

<IF> – an interface's name, specified in the form described in Section Types and naming order of router interfaces.

<TUN> – the name of the tunnel is specified as described in section Types and naming order of router tunnels.

5

Enable LDP process.

esr(config-ldp)# enable


6

Enable explicit-null functionality (optional).

esr(config-ldp)# egress-label-type explicit-null


7

In the LDP neighbor configuration mode, set the password with the password command (optional).

esr(config-ldp-neig)# password {<TEXT> | ENCRYPTED-TEXT>}

<CLEAR-TEXT> – password, sets by string of [8..16] characters;

<ENCRYPTED-TEXT> – encrypted password of [8..16] bytes ([16..32] characters) in hexadecimal format (0xYYYY...) or (YYYY...).

The following functionality is also available as part of the LDP configuration:

...

Step

Description

Command

Keys

1

Configure the LDP (see section LDP configuration).

2

Create pw-class in the system and switch to the pw-class configuration mode.

esr(config-l2vpn)# pw-class <WORD>

<WORD> — pw-class name [1..31] characters long.

3

Add a description for pw-class (optional).

esr(config-l2vpn-pw-class)# description <LINE>

<LINE> – description. Set by the string [1..255] characters long.

4

Set the MTU value for the pseudo-wire included in the pw-class (optional).

esr(config-l2vpn-pw-class)# encapsulation
mpls mtu <MTU>

<MTU> — MTU value, takes values in the range of [552..10000]

Default value: 1500.

5

Disable status-tlv messaging (optional).

esr(config-l2vpn-pw-class)# encapsulation
mpls status-tlv disable

Default value: status-tlv enable

6

Create p2p-class in the system and switch to the p2p-class configuration mode.

esr(config-l2vpn)# p2p <NAME>

<NAME> — name of the p2p service, set by the string of up to 31 characters.

7

Specify Attached Circuit interface.

esr(config-l2vpn-p2p)# interface
 { <IF> | <TUN> }

<IF> – an interface's name, specified in the form described in Section Types and naming order of router interfaces;.

<TUN> – the name of the tunnel is specified as described in section Types and naming order of router tunnels.

8

Enable p2p tunnel.

esr(config-l2vpn-p2p)# enable


9

Specify transport mode (optional).

esr(config-l2vpn-p2p)# transport-mode
{ ethenet | vlan }

<ethernet> — mode in which the 802.1Q tag is removed from the header when entering pseudo-wire;

<vlan> — mode in which the 802.1Q tag can be saved when transmitted over pseudo-wire.

Default value: ethernet.

10

Create a pseudo-wire and switch to its parameters configuration mode.

esr(config-l2vpn-p2p)# pw <PW_ID> <LSR_ID>

<PW_ID> — psewdowire identifier, specified in the range [1..4294967295].

<LSR_ID> — identifier of LSR to which pseudo-wire is built, specified as AAA.BBB.CCC.DDD, where each part takes values [0..255].

11

Add a description for pseudo-wire (optional).

esr(config-l2vpn-pw)# description <LINE>

<LINE> – description. Set by the string [1..255] characters long.

12

Set pw-class for pseudo-wire.

esr(config-l2vpn-pw)# pw-class <WORD>

<WORD> — pw-class name [1..31] characters long.

13

Set the LSR address to which the pseudo-wire is set (optional if the neighbor address is the same as the LSR_ID).

esr(config-l2vpn-pw)# neighbor-address <ADDR>

<ADDR> – router IP address, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255]. 

14

Enable pseudo-wire.

esr(config-l2vpn-pw)# enable



If it is necessary to change the default settings for a targeted LDP session, see section Configuring session parameters in targeted-LDP.

...

Примечание

When configuring MTU on a tunnel, consider the following:

  • At least one mpls label will be present when passing through the tunnel. Accounting should include all labels in the stack, for example, explicit null or entropy label; 
  • If MTU of the outgoing interface is exceeded, the packet will be dropped (if GRE traffic match traffic match fragment is disabled);
  • Control world is not supported;
  • DF bit will be set to 1.

Approximate packet structure is given in figure below:

...