Академический Документы
Профессиональный Документы
Культура Документы
for
CCNA Students
By
Eng. Abeer Hosni
https://www.facebook.com/groups/1720572871550995/
lab 1 (eBGP configuration)
Objective:
Configure eBGP peering between R1 and R2 then advertise their networks using the
network command.
Configuration:
R1(config)#int f0/0
R1(config-if)#ip address 10.0.0.1 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#int loop 1
R1(config-if)#ip address 1.1.1.1 255.255.255.255
R2(config)#int f1/0
R2(config-if)#ip address 10.0.0.2 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#int loop 2
R2(config-if)#ip address 2.2.2.2 255.255.255.255
Now to advertise each router networks, there are two ways to accomplish that. The
first one is by using the network command. The second one which is out of the scope of
our course is by using the redistribution command.
To verify:
R1#show ip bgp
<Output omitted>
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 2.2.2.2/32 10.0.0.2 0 0 200 i
R2#show ip bgp
<Output omitted>
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 10.0.0.1 0 0 100 i
*> 2.2.2.2/32 0.0.0.0 0 32768 i
R1#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/36/76 ms
Note:
When advertising a network using the network command, make sure that it matches
the prefix in the routing table using the mask option.
Objective:
Configure eBGP peering between R1 and R2 using their loopback interfaces.
Configuration:
R1(config)#int s1/0
R1(config-if)#no shutdown
R1(config-if)#int s1/1
R1(config-if)#no shutdown
R1(config-if)#int loop 1
R1(config-if)#ip address 1.1.1.1 255.255.255.255
R1(config-if)#exit
R2(config)#int s1/0
R2(config-if)#no shutdown
R2(config-if)#int s1/1
R2(config-if)#no shutdown
R2(config-if)#int loop 2
R2(config-if)#exit
But the adjacency doesn’t come up as the TTL value for the eBGP control plane is 1 by default.
<Output omitted>
<Output omitted>
<Output omitted>
Objective:
Configure MP-BGP to support IPV6 for the previous topology.
Configuration:
R1(config)#int f0/0
R1(config-if)#ipv6 address 2001:ab::1/64
R1(config-if)#no shutdown
R1(config-if)#int loop 1
R1(config-if)#ipv6 address 2001::1/128
R1(config-if)#exit
R1(config)#ipv6 unicast-routing
R2(config)#int f0/0
R2(config-if)#ipv6 address 2001:ab::2/64
R2(config-if)#no shutdown
R2(config-if)#int loop 2
R2(config-if)#ipv6 address 2001::2/128
R2(config-if)#exit
R2(config)#ipv6 unicast-routing
Since the two routers are neighbors, we can advertise the networks using the network
command or redistribution.
R1#ping 2001::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/21/36 ms
R2#ping 2001::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/25/36 ms
Best wishes
Abeer