Professional Documents
Culture Documents
Overview
Description
In this lab, we will create a simple edge router configuration on the ERX
using IP, BGP and PPP.
Objectives
After completing this lab, you will be able to do the following:
• Configure the Fast Ethernet Interface on the SRP with IP
• Configure a Loopback Interface with IP
• Configure a Static Route
• Configure a PPP interface with IP
• Configure the ERX to use BGP
• Use the show commands to troubleshoot and verify the configuration
IP/BGP
PPP
IP IP
SRP SRP
Slot ___
0 1 1 0 Slot ___
IP/BGP
PPP
IP IP
SRP SRP
Slot ___
0 1 1 0 Slot ___
Getting Started
1. Cable the ERX using the physical network map noting the slot numbers
on the map.
2. If you or your lab partner do not need practice performing the initial
ERX configuration (Fast Ethernet, Loopback Interface, Telnet, ERX
Hostname), configure the ERX to boot using the start.cnf file
specifying the once option and reload the ERX. Then skip to the
section Configuring IP/BGP/PPP.
3. If you or your lab partner need practice performing the initial ERX
configuration, reload the ERX using factory defaults.
Configuring the Fast Ethernet, Loopback Interface, Telnet, and Hostname for
the Default Router
Using the information on the physical network map, perform the following
steps:
1. Review the factory default configuration file.
2. Enter configuration terminal mode on the ERX.
3. Configure the Fast Ethernet Interface on the SRP.
4. Configure the Fast Ethernet for IP using the address and subnet mask
found on the network map.
5. Exit configuration mode.
6. Verify that you can ping the other ERX on the Ethernet.
7. Review the configuration file.
8. Enter configuration terminal mode.
9. Configure the Loopback 1 interface on the ERX using the IP address
and subnet mask found on the network map.
10. Exit the interface configuration mode.
11. Configure the ERX for Telnet using the line vty command. Specify no
login to disable Telnet passwords.
12. Exit the line configuration mode.
13. Configure the ERX hostname.
14. Exit configuration mode.
1. Determine the default factory settings for the ERX timing sources:
7. NOTE: All lines (CT3, E1, POS, etc.) will have their clock source
configured for internal chassis and will derive clock based on the
parameters configured above.
15. Examine the default router’s IP routing table.
♦ How many routes are listed in the default router’s routing table?
_____________________________________________________________
Configuring IP/BGP/PPP
Configuring PPP
Verifying PPP
2. Verify that frames are being transmitted and received on the serial
interface.
4. Verify that frames are being transmitted and received on the PPP
interface.
♦ Are any additional routes are listed in the IP routing table? ______
_____________________________________________________________
7. Do not continue until you can ping the other end of the PPP link.
3. Using the AS number found on the network map, enable BGP on the
router.
5. Configure the EBGP neighbor using the IP address of the PPP link.
_____________________________________________________________
♦ Have any routes been learned via BGP at this point in time?
_____________________________________________________________
3. Examine the BGP routing table using the show ip bgp command.
♦ Have any routes been learned via BGP at this point in time?
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
3. Verify that a BGP prefix or update message has been received from
your neighbor using the command show ip bgp summary. Remember
to use CLI output filtering.
4. Examine the BGP routing table using the show ip bgp command.
♦ Have any routes been learned via BGP at this point in time?
_____________________________________________________________
_____________________________________________________________
Advertising Local Networks with BGP using Route Redistribution, Route Maps,
and Access Lists
Using BGP Route Redistribution along with Route Maps and Access Lists,
only advertise the following loopback addresses:
ERX 1/3/5/7: Advertise 192.168.1.0 and 192.168.2.0
Do NOT advertise 192.168.3.0
Do NOT advertise 10.13.7.0
ERX 2/4/6/8 Advertise 192.168.16.0 and 192.168.17.0
Do NOT advertise 192.168.18.0
Do NOT advertise 10.13.7.0.
1. Create an access list(s) that will permit and deny the appropriate IP
addresses. Keep in mind that order is important in access lists.
2. Create a route map that will permit and match the appropriate IP
addresses defined in the access lists.
4. Examine the BGP routing table and verify that the appropriate
loopback addresses are being advertised.
_____________________________________________________________
6. Verify that BGP prefixes or update messages have been received from
your neighbor using the command show ip bgp summary. Remember
to use CLI output filtering.
slot enable 4
slot enable 5
!
profile default
virtual-router default
!
mpls rsvp profile default
!
mpls ldp profile default
!
interface null 0
interface loopback 1
description default router loopback
ip address 192.168.1.1 255.255.255.0
!
interface loopback 2
ip address 192.168.2.1 255.255.255.0
!
interface loopback 3
ip address 192.168.3.1 255.255.255.0
!
interface serial 4/0:4/1
encapsulation ppp
description ebgp to erx2
ip address 192.168.5.1 255.255.255.0
!
interface fastEthernet 0/0
description ERX1 mgmt enet
ip address 10.13.7.11 255.255.255.0
!
ip route 192.168.10.0 255.255.255.0 null0
ip route 192.168.11.0 255.255.255.0 null0
!
access-list mynets permit ip 192.168.1.0 0.0.0.255 any
access-list mynets permit ip 192.168.2.0 0.0.0.255 any
access-list mynets deny ip any any
!
!
route-map mynets permit 10
match ip address mynets
!
router bgp 8
no synchronization
no auto-summary
redistribute connected route-map mynets
neighbor 192.168.5.2 remote-as 24
network 192.168.10.0 mask 255.255.255.0
network 192.168.11.0 mask 255.255.255.0
! Trap Source: <not configured>
! Note: SNMP server not running.
erx1#config t
Enter configuration commands, one per line. End with CNTL/Z.
erx1(config)#cont t3 4/0
erx1(config-controll)#no shutdown
erx1(config-controll)#clock source internal chassis
erx1(config-controll)#t1 4/1 time 1-12
erx1(config-controll)#exit
erx1(config)#interface serial 4/0:4/1
erx1(config-if)#encap ppp
erx1(config-if)#ip address 192.168.5.1 255.255.255.0
erx1(config-if)#description ebgp to erx2
erx1(config-if)#exit
erx1#ping 192.168.5.1
Sending 5 ICMP echos to 192.168.5.1, timeout = 2 sec.
!!!!!
Success rate = 100% (5/5), round-trip min/avg/max = 0/0/1 ms
erx1#show int ser 4/0:4/1
Interface statistics
Packets received 13
Bytes received 236
Errored packets received 0
Packets sent 13
Bytes send 186
Errored packets sent 0
DS3 4/0
ifOperStatus = ifOperUp
snmp trap link-status = enabled
Framing is C-BIT, Line Code is B3ZS, Clock Source is Internal - Chassis
Cable Length is 0 ft
Loopback Disabled
Number of valid interval - 0
Time elapse in current interval - 320
erx1#ping 192.168.5.2
Sending 5 ICMP echos to 192.168.5.2, timeout = 2 sec.
!!!!!
Success rate = 100% (5/5), round-trip min/avg/max = 5/5/5 ms
erx1#show ip int ser 4/0:4/1
serial4/0:4/1 is up, line protocol is up
Description: ebgp to erx2
Network Protocols: IP
Internet address is 192.168.5.1/255.255.255.0
Broadcast address is 255.255.255.255
Operational MTU = 1596 Administrative MTU = 0
Operational speed = 768000 Administrative speed = 0
Discontinuity Time = 0
Router advertisement = disabled
Administrative debounce-time = disabled
Operational debounce-time = disabled
Access routing = disabled
Multipath mode = hashed
erx1#show ip route
Protocol/Route type codes:
I1- ISIS level 1, I2- ISIS level2,
I- route type intra, IA- route type inter, E- route type external,
i- metric type internal, e- metric type external,
O- OSPF, E1- external type 1, E2- external type2,
N1- NSSA external type1, N2- NSSA external type2
erx1#config t
Enter configuration commands, one per line. End with CNTL/Z.
erx1(config)#router bgp 8
erx1(config-router)#no synchronization
erx1(config-router)#no au
erx1(config-router)#no auto-summary
erx1(config-router)#neighbor 192.168.5.2 remote-as 24
erx1(config-router)#exit
erx1(config)#exit
Messages Messages
Prefixes
For Training Purposes Only Rev 3.2 5-19
ERX Configuration using
IP, BGP4 and PPP Lab 5
erx1#show ip bgp
Local BGP identifier 10.1.7.1, local AS 8
4 routes (208 bytes), 5 distinct destinations (360 bytes)
2 routes selected for route table installation
3 path attribute entries (372 bytes)
Local-RIB version 4. Processed 4 changes (0 pending)
erx1#config t
Enter configuration commands, one per line. End with CNTL/Z.
erx1(config)#access mynets permit 192.168.1.0 0.0.0.255
erx1(config)#access mynets permit 192.168.2.0 0.0.0.255
erx1(config)#route-map mynets permit
erx1(config-route-map)#match ip add mynets
erx1(config-route-map)#exit
erx1(config)#router bgp 8
erx1(config-router)#redis connected route-map mynets
erx1(config-router)#^Z
erx1#show access
IP Access List mynets:
permit ip 192.168.1.0 0.0.0.255 any
permit ip 192.168.2.0 0.0.0.255 any
deny ip any any
erx1#show route-map
route-map mynets, permit, sequence 10
Match clauses:
match access-list mynets
erx1#show ip bgp neigh 192.168.5.2 advertised-routes
Local BGP identifier 10.1.7.1, local AS 8
6 routes (288 bytes), 7 distinct destinations (504 bytes)
2 routes selected for route table installation
5 path attribute entries (620 bytes)
Local-RIB version 8. Processed 8 changes (0 pending)
erx1#ping 192.168.16.1
Sending 5 ICMP echos to 192.168.16.1, timeout = 2 sec.
!!!!!
Success rate = 100% (5/5), round-trip min/avg/max = 5/5/5 ms
erx1#ping 192.168.17.1
Sending 5 ICMP echos to 192.168.17.1, timeout = 2 sec.
!!!!!
Success rate = 100% (5/5), round-trip min/avg/max = 5/5/5 ms
erx1#
5-22 Rev 3.2 ERX Circuit Aggregation Configuration Basics