PC1:-
Configuration:-
PC1> show ip
NAME :
PC1[1]
PC1[1]
IP/MASK :
10.1.1.10/24
10.1.1.10/24
GATEWAY :
255.255.255.0
255.255.255.0
DNS :
MAC :
00:50:79:66:68:00
00:50:79:66:68:00
LPORT : 10000
RHOST:PORT :
192.168.56.1:10001
192.168.56.1:10001
MTU: : 1500
Verification:-
PC1> ping 10.1.1.2
84 bytes from 10.1.1.2 icmp_seq=1 ttl=255 time=20.748 ms
84 bytes from 10.1.1.2 icmp_seq=2 ttl=255 time=46.277 ms
84 bytes from 10.1.1.2 icmp_seq=3 ttl=255 time=47.200 ms
84 bytes from 10.1.1.2 icmp_seq=4 ttl=255 time=44.257 ms
84 bytes from 10.1.1.2 icmp_seq=5 ttl=255 time=34.722 ms
PC1> ping 10.1.1.3
84 bytes from 10.1.1.3 icmp_seq=1 ttl=255 time=69.798 ms
84 bytes from 10.1.1.3 icmp_seq=2 ttl=255 time=162.311 ms
84 bytes from 10.1.1.3 icmp_seq=3 ttl=255 time=100.966 ms
84 bytes from 10.1.1.3 icmp_seq=4 ttl=255 time=78.673 ms
84 bytes from 10.1.1.3 icmp_seq=5 ttl=255 time=90.670 ms
PC1> ping 10.1.1.11
84 bytes from 10.1.1.11 icmp_seq=1 ttl=64 time=43.250 ms
84 bytes from 10.1.1.11 icmp_seq=2 ttl=64 time=55.295 ms
84 bytes from 10.1.1.11 icmp_seq=3 ttl=64 time=58.007 ms
84 bytes from 10.1.1.11 icmp_seq=4 ttl=64 time=59.030 ms
84 bytes from 10.1.1.11 icmp_seq=5 ttl=64 time=51.903 ms
R1:-
Configuration:-
hostname R1
interface FastEthernet0/0
Description “Connected to PC1”
switchport access
vlan 100
vlan 100
spanning-tree
portfast
portfast
interface FastEthernet0/1
Description “Connected to R2”
switchport access
vlan 100
vlan 100
spanning-tree
portfast
portfast
interface Vlan100
ip address
10.1.1.2 255.255.255.0
10.1.1.2 255.255.255.0
R2:-
Configuration:-
ip vrf cust1
rd 1:1
route-target
export 1:1
export 1:1
route-target
import 1:1
import 1:1
interface Loopback0
ip address 2.2.2.2
255.255.255.255
255.255.255.255
interface FastEthernet0/1
Description “Connected to R1”
no ip address
xconnect 4.4.4.4
100 encapsulation mpls
100 encapsulation mpls
interface FastEthernet2/0
Description “Connected to R3”
ip address
23.23.23.2 255.255.255.0
23.23.23.2 255.255.255.0
mpls ip
router ospf 10
log-adjacency-changes
network 2.2.2.2
0.0.0.0 area 0
0.0.0.0 area 0
network 23.23.23.2
0.0.0.0 area 0
0.0.0.0 area 0
router bgp 1
no synchronization
bgp log-neighbor-changes
neighbor 4.4.4.4
remote-as 1
remote-as 1
neighbor 4.4.4.4
update-source Loopback0
update-source Loopback0
no auto-summary
address-family
vpnv4
vpnv4
neighbor 4.4.4.4
activate
activate
neighbor 4.4.4.4
send-community extended
send-community extended
exit-address-family
mpls ldp router-id Loopback0 force
Verfication:-
R2#sh bgp vpnv4 unicast all summary
BGP router identifier 2.2.2.2, local AS number 1
BGP table version is 1, main routing table version 1
Neighbor
V AS MsgRcvd MsgSent TblVer
InQ OutQ Up/Down State/PfxRcd
V AS MsgRcvd MsgSent TblVer
InQ OutQ Up/Down State/PfxRcd
4.4.4.4
4 1 54
54 1 0
0 00:44:52 0
4 1 54
54 1 0
0 00:44:52 0
R2#show mpls forwarding-table
Local
Outgoing Prefix Bytes Label Outgoing
Next Hop
Outgoing Prefix Bytes Label Outgoing
Next Hop
Label
Label or Tunnel Id Switched interface
Label or Tunnel Id Switched interface
16 Pop
Label 34.34.34.0/24 0 Fa2/0 23.23.23.3
Label 34.34.34.0/24 0 Fa2/0 23.23.23.3
17 18 4.4.4.4/32 0 Fa2/0 23.23.23.3
18 Pop
Label 3.3.3.3/32 0 Fa2/0 23.23.23.3
Label 3.3.3.3/32 0 Fa2/0 23.23.23.3
19 No
Label l2ckt(100) 19424 Fa0/1 point2point
Label l2ckt(100) 19424 Fa0/1 point2point
R2#show mpls ip binding
2.2.2.2/32
in
label: imp-null
label: imp-null
out
label: 19 lsr: 3.3.3.3:0
label: 19 lsr: 3.3.3.3:0
out
label: 16 lsr: 4.4.4.4:0
label: 16 lsr: 4.4.4.4:0
3.3.3.3/32
in
label: 18
label: 18
out
label: imp-null lsr: 3.3.3.3:0 inuse
label: imp-null lsr: 3.3.3.3:0 inuse
out
label: 18 lsr: 4.4.4.4:0
label: 18 lsr: 4.4.4.4:0
4.4.4.4/32
in
label: 17
label: 17
out
label: 18 lsr: 3.3.3.3:0 inuse
label: 18 lsr: 3.3.3.3:0 inuse
out
label: imp-null lsr: 4.4.4.4:0
label: imp-null lsr: 4.4.4.4:0
23.23.23.0/24
in
label: imp-null
label: imp-null
out
label: imp-null lsr: 3.3.3.3:0
label: imp-null lsr: 3.3.3.3:0
out
label: 17 lsr: 4.4.4.4:0
label: 17 lsr: 4.4.4.4:0
34.34.34.0/24
in
label: 16
label: 16
out
label: imp-null lsr: 3.3.3.3:0 inuse
label: imp-null lsr: 3.3.3.3:0 inuse
out
label: imp-null lsr: 4.4.4.4:0
label: imp-null lsr: 4.4.4.4:0
R2#show mpls ldp neighbor
Peer LDP Ident:
3.3.3.3:0; Local LDP Ident 2.2.2.2:0
3.3.3.3:0; Local LDP Ident 2.2.2.2:0
TCP
connection: 3.3.3.3.37189 – 2.2.2.2.646
connection: 3.3.3.3.37189 – 2.2.2.2.646
State:
Oper; Msgs sent/rcvd: 70/71; Downstream
Oper; Msgs sent/rcvd: 70/71; Downstream
Up time:
00:54:39
00:54:39
LDP
discovery sources:
discovery sources:
FastEthernet2/0, Src IP addr: 23.23.23.3
Addresses
bound to peer LDP Ident:
bound to peer LDP Ident:
23.23.23.3 3.3.3.3 34.34.34.3
Peer LDP Ident:
4.4.4.4:0; Local LDP Ident 2.2.2.2:0
4.4.4.4:0; Local LDP Ident 2.2.2.2:0
TCP
connection: 4.4.4.4.45408 – 2.2.2.2.646
connection: 4.4.4.4.45408 – 2.2.2.2.646
State:
Oper; Msgs sent/rcvd: 63/61; Downstream
Oper; Msgs sent/rcvd: 63/61; Downstream
Up time:
00:46:34
00:46:34
LDP
discovery sources:
discovery sources:
Targeted
Hello 2.2.2.2 -> 4.4.4.4, active, passive
Hello 2.2.2.2 -> 4.4.4.4, active, passive
Addresses
bound to peer LDP Ident:
bound to peer LDP Ident:
34.34.34.4 4.4.4.4
R2#show mpls l2transport vc 100
Local intf
Local circuit Dest
address VC ID Status
Local circuit Dest
address VC ID Status
————-
————————– ————— ———- ———-
————————– ————— ———- ———-
Fa0/1
Ethernet
4.4.4.4 100
UP
Ethernet
4.4.4.4 100
UP
R2#show mpls l2transport vc 100 detail
Local interface: Fa0/1 up, line protocol up, Ethernet up
Destination
address: 4.4.4.4, VC ID: 100, VC status: up
address: 4.4.4.4, VC ID: 100, VC status: up
Output
interface: Fa2/0, imposed label stack {18 19}
interface: Fa2/0, imposed label stack {18 19}
Preferred path:
not configured
not configured
Default path:
active
active
Next hop:
23.23.23.3
23.23.23.3
Create time:
03:20:58, last status change time: 00:46:45
03:20:58, last status change time: 00:46:45
Signaling
protocol: LDP, peer 4.4.4.4:0 up
protocol: LDP, peer 4.4.4.4:0 up
Targeted Hello:
2.2.2.2(LDP Id) -> 4.4.4.4, LDP is UP
2.2.2.2(LDP Id) -> 4.4.4.4, LDP is UP
Status TLV
support (local/remote) :
enabled/supported
support (local/remote) :
enabled/supported
LDP route
watch : enabled
watch : enabled
Label/status
state machine : established,
LruRru
state machine : established,
LruRru
Last local
dataplane status rcvd: No fault
dataplane status rcvd: No fault
Last local
SSS circuit status rcvd: No fault
SSS circuit status rcvd: No fault
Last local
SSS circuit status sent: No fault
SSS circuit status sent: No fault
Last
local LDP TLV status sent: No fault
local LDP TLV status sent: No fault
Last remote
LDP TLV status rcvd: No fault
LDP TLV status rcvd: No fault
Last remote
LDP ADJ status rcvd: No fault
LDP ADJ status rcvd: No fault
MPLS VC labels:
local 19, remote 19
local 19, remote 19
Group ID: local
0, remote 0
0, remote 0
MTU: local
1500, remote 1500
1500, remote 1500
Remote
interface description:
interface description:
Sequencing:
receive disabled, send disabled
receive disabled, send disabled
Control Word: On
(configured: autosense)
(configured: autosense)
VC statistics:
transit packet
totals: receive 3766, send 8667
totals: receive 3766, send 8667
transit byte
totals: receive 275450, send 796027
totals: receive 275450, send 796027
transit packet
drops: receive 0, seq error 0, send 0
drops: receive 0, seq error 0, send 0
R3:-
Configuration:-
hostname R3
interface Loopback0
ip address 3.3.3.3
255.255.255.255
255.255.255.255
interface FastEthernet2/0
Description “Connected to R2”
ip address
23.23.23.3 255.255.255.0
23.23.23.3 255.255.255.0
mpls ip
interface FastEthernet2/1
Description “Connected to R4”
ip address
34.34.34.3 255.255.255.0
34.34.34.3 255.255.255.0
mpls ip
router ospf 10
log-adjacency-changes
network 3.3.3.3
0.0.0.0 area 0
0.0.0.0 area 0
network 23.23.23.3
0.0.0.0 area 0
0.0.0.0 area 0
network 34.34.34.3
0.0.0.0 area 0
0.0.0.0 area 0
mpls ldp router-id Loopback0 force
Verification:-
R3#show mpls ldp neighbor
Peer LDP Ident:
2.2.2.2:0; Local LDP Ident 3.3.3.3:0
2.2.2.2:0; Local LDP Ident 3.3.3.3:0
TCP
connection: 2.2.2.2.646 – 3.3.3.3.37189
connection: 2.2.2.2.646 – 3.3.3.3.37189
State:
Oper; Msgs sent/rcvd: 74/73; Downstream
Oper; Msgs sent/rcvd: 74/73; Downstream
Up time:
00:57:24
00:57:24
LDP
discovery sources:
discovery sources:
FastEthernet2/0, Src IP addr: 23.23.23.2
Addresses
bound to peer LDP Ident:
bound to peer LDP Ident:
2.2.2.2 23.23.23.2
Peer LDP Ident:
4.4.4.4:0; Local LDP Ident 3.3.3.3:0
4.4.4.4:0; Local LDP Ident 3.3.3.3:0
TCP
connection: 4.4.4.4.49005 – 3.3.3.3.646
connection: 4.4.4.4.49005 – 3.3.3.3.646
State:
Oper; Msgs sent/rcvd: 63/64; Downstream
Oper; Msgs sent/rcvd: 63/64; Downstream
Up time:
00:49:20
00:49:20
LDP
discovery sources:
discovery sources:
FastEthernet2/1, Src IP addr: 34.34.34.4
Addresses
bound to peer LDP Ident:
bound to peer LDP Ident:
34.34.34.4 4.4.4.4
R3#show mpls forwarding-table
Local
Outgoing Prefix Bytes Label Outgoing
Next Hop
Outgoing Prefix Bytes Label Outgoing
Next Hop
Label
Label or Tunnel Id Switched interface
Label or Tunnel Id Switched interface
18 Pop
Label 4.4.4.4/32 180845 Fa2/1 34.34.34.4
Label 4.4.4.4/32 180845 Fa2/1 34.34.34.4
19 Pop
Label 2.2.2.2/32 89623 Fa2/0 23.23.23.2
Label 2.2.2.2/32 89623 Fa2/0 23.23.23.2
R3#show mpls ip binding
2.2.2.2/32
in
label: 19
label: 19
out
label: imp-null lsr: 2.2.2.2:0 inuse
label: imp-null lsr: 2.2.2.2:0 inuse
out
label: 16 lsr: 4.4.4.4:0
label: 16 lsr: 4.4.4.4:0
3.3.3.3/32
in
label: imp-null
label: imp-null
out
label: 18 lsr: 2.2.2.2:0
label: 18 lsr: 2.2.2.2:0
out
label: 18 lsr: 4.4.4.4:0
label: 18 lsr: 4.4.4.4:0
4.4.4.4/32
in
label: 18
label: 18
out
label: 17 lsr: 2.2.2.2:0
label: 17 lsr: 2.2.2.2:0
out
label: imp-null lsr: 4.4.4.4:0 inuse
label: imp-null lsr: 4.4.4.4:0 inuse
23.23.23.0/24
in label: imp-null
out
label: imp-null lsr: 2.2.2.2:0
label: imp-null lsr: 2.2.2.2:0
out
label: 17 lsr: 4.4.4.4:0
label: 17 lsr: 4.4.4.4:0
34.34.34.0/24
in
label: imp-null
label: imp-null
out
label: 16 lsr: 2.2.2.2:0
label: 16 lsr: 2.2.2.2:0
out
label: imp-null lsr: 4.4.4.4:0
label: imp-null lsr: 4.4.4.4:0
R3#sh ip ospf neighbor
Neighbor ID
Pri State Dead Time Address Interface
Pri State Dead Time Address Interface
4.4.4.4
1 FULL/DR 00:00:36 34.34.34.4 FastEthernet2/1
1 FULL/DR 00:00:36 34.34.34.4 FastEthernet2/1
2.2.2.2
1 FULL/DR 00:00:32
23.23.23.2 FastEthernet2/0
1 FULL/DR 00:00:32
23.23.23.2 FastEthernet2/0
R3#show ip route
Codes: L – local, C – connected, S – static, R – RIP, M –
mobile, B – BGP
mobile, B – BGP
D – EIGRP,
EX – EIGRP external, O – OSPF, IA – OSPF inter area
EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF
NSSA external type 1, N2 – OSPF NSSA external type 2
NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF
external type 1, E2 – OSPF external type 2
external type 1, E2 – OSPF external type 2
i – IS-IS,
su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS
inter area, * – candidate default, U – per-user static route
inter area, * – candidate default, U – per-user static route
o – ODR, P –
periodic downloaded static route, H – NHRP
periodic downloaded static route, H – NHRP
+ –
replicated route, % – next hop override
replicated route, % – next hop override
Gateway of last resort is not set
2.0.0.0/32 is
subnetted, 1 subnets
subnetted, 1 subnets
O 2.2.2.2
[110/2] via 23.23.23.2, 00:54:20, FastEthernet2/0
[110/2] via 23.23.23.2, 00:54:20, FastEthernet2/0
3.0.0.0/32 is
subnetted, 1 subnets
subnetted, 1 subnets
C 3.3.3.3 is
directly connected, Loopback0
directly connected, Loopback0
4.0.0.0/32 is
subnetted, 1 subnets
subnetted, 1 subnets
O 4.4.4.4
[110/2] via 34.34.34.4, 00:51:06, FastEthernet2/1
[110/2] via 34.34.34.4, 00:51:06, FastEthernet2/1
23.0.0.0/8 is
variably subnetted, 2 subnets, 2 masks
variably subnetted, 2 subnets, 2 masks
C
23.23.23.0/24 is directly connected, FastEthernet2/0
23.23.23.0/24 is directly connected, FastEthernet2/0
L
23.23.23.3/32 is directly connected, FastEthernet2/0
23.23.23.3/32 is directly connected, FastEthernet2/0
34.0.0.0/8 is
variably subnetted, 2 subnets, 2 masks
variably subnetted, 2 subnets, 2 masks
C
34.34.34.0/24 is directly connected, FastEthernet2/1
34.34.34.0/24 is directly connected, FastEthernet2/1
L 34.34.34.3/32 is directly connected,
FastEthernet2/1
FastEthernet2/1
R4:-
Configuration:-
ip vrf cust1
rd 1:1
route-target
export 1:1
export 1:1
route-target
import 1:1
import 1:1
interface Loopback0
ip address 4.4.4.4
255.255.255.255
255.255.255.255
interface FastEthernet0/1
Description “Connected to R5”
no ip address
xconnect 2.2.2.2 100 encapsulation mpls
interface FastEthernet2/1
Description “Connected to R3”
ip address
34.34.34.4 255.255.255.0
34.34.34.4 255.255.255.0
speed auto
duplex auto
mpls ip
router ospf 10
log-adjacency-changes
network 4.4.4.4
0.0.0.0 area 0
0.0.0.0 area 0
network 34.34.34.4
0.0.0.0 area 0
0.0.0.0 area 0
router bgp 1
no synchronization
bgp
log-neighbor-changes
log-neighbor-changes
neighbor 2.2.2.2
remote-as 1
remote-as 1
neighbor 2.2.2.2
update-source Loopback0
update-source Loopback0
no auto-summary
address-family
vpnv4
vpnv4
neighbor 2.2.2.2
activate
activate
neighbor 2.2.2.2
send-community extended
send-community extended
exit-address-family
mpls ldp router-id Loopback0 force
R5:-
Configuration:-
interface
FastEthernet0/0
FastEthernet0/0
Description “Connected to PC2”
switchport access vlan 100
interface
FastEthernet0/1
FastEthernet0/1
Description “Connected to R4”
switchport access vlan 100
interface
Vlan100
Vlan100
ip address 10.1.1.3 255.255.255.0
Verification:-
R5# ping 10.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2
seconds:
seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max
= 92/126/208 ms
= 92/126/208 ms
R5#ping 10.1.1.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.10, timeout is 2
seconds:
seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max
= 92/119/180 ms
= 92/119/180 ms
R5#show spanning-tree vlan 100 summary
Root bridge for VLAN100 is 32768.cc01.0ec0.0000.
PortFast BPDU Guard is disabled
UplinkFast is disabled
BackboneFast is disabled
Name
Blocking Listening Learning Forwarding STP Active
Blocking Listening Learning Forwarding STP Active
——————– ——– ——— ——–
———- ———-
———- ———-
VLAN100
0 0 0 2 2
0 0 0 2 2
R5#show spanning-tree vlan 100 brief
VLAN100
Spanning tree
enabled protocol ieee
enabled protocol ieee
Root ID Priority
32768
32768
Address cc01.0ec0.0000
Cost 19
Port 2 (FastEthernet0/1)
Hello
Time 2 sec Max Age 20 sec Forward Delay 15 sec
Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority
32768
32768
Address cc05.1c8c.0001
Hello
Time 2 sec Max Age 20 sec Forward Delay 15 sec
Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging
Time 300
Time 300
Interface Designated
Name
Port ID Prio Cost Sts Cost Bridge ID Port ID
Port ID Prio Cost Sts Cost Bridge ID Port ID
——————– ——- —- —– — —–
——————– ——-
——————– ——-
FastEthernet0/0
128.1 128 19 FWD
19 32768 cc05.1c8c.0001 128.1
128.1 128 19 FWD
19 32768 cc05.1c8c.0001 128.1
FastEthernet0/1
128.2 128 19 FWD
0 32768 cc01.0ec0.0000 128.2
128.2 128 19 FWD
0 32768 cc01.0ec0.0000 128.2
PC2:-
Configuration:-
PC2> show ip
NAME :
PC2[1]
PC2[1]
IP/MASK :
10.1.1.11/24
10.1.1.11/24
GATEWAY :
255.255.255.0
255.255.255.0
DNS :
MAC :
00:50:79:66:68:01
00:50:79:66:68:01
LPORT : 10010
RHOST:PORT :
192.168.56.1:10011
192.168.56.1:10011
MTU: : 1500
Verification:-
PC2> ping 10.1.1.3
84 bytes from 10.1.1.3 icmp_seq=1 ttl=255 time=44.685 ms
84 bytes from 10.1.1.3 icmp_seq=2 ttl=255 time=39.397 ms
84 bytes from 10.1.1.3 icmp_seq=3 ttl=255 time=30.531 ms
84 bytes from 10.1.1.3 icmp_seq=4 ttl=255 time=29.676 ms
84 bytes from 10.1.1.3 icmp_seq=5 ttl=255 time=29.988 ms
PC2> ping 10.1.1.2
84 bytes from 10.1.1.2 icmp_seq=1 ttl=255 time=88.275 ms
84 bytes from 10.1.1.2 icmp_seq=2 ttl=255 time=83.330 ms
84 bytes from 10.1.1.2 icmp_seq=3 ttl=255 time=105.148 ms
84 bytes from 10.1.1.2 icmp_seq=4 ttl=255 time=73.325 ms
84 bytes from 10.1.1.2 icmp_seq=5 ttl=255 time=61.766 ms
PC2> ping 10.1.1.10
84 bytes from 10.1.1.10 icmp_seq=1 ttl=64 time=40.029 ms
84 bytes from 10.1.1.10 icmp_seq=2 ttl=64 time=82.339 ms
84 bytes from 10.1.1.10 icmp_seq=3 ttl=64 time=50.745 ms
84 bytes from 10.1.1.10 icmp_seq=4 ttl=64 time=40.292 ms
84 bytes from 10.1.1.10 icmp_seq=5 ttl=64 time=61.310 ms
For More Blogs:- Please visit www.Hevitech.com
