Sie sind auf Seite 1von 42

Packet Tracer

Simulation Lab
L3 Routing
Johnson Liu

CCIE#11440(R&S, SP)
CCSI#31346

Agenda Slide
Setup two Routers with WAN WIC(WAN Interface Card)
Setup each LAN segment behind both Routers
Assign WAN IP address between Routers
Enable Static route in both Routers

Enable RIP routing protocols


Enable OSPF routing protocols

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

Setup two Routers with WAN


WIC(WAN Interface Card)

Setup two Routers with WAN WIC(WAN


Interface Card)

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

Setup two Routers with WAN WIC(WAN


Interface Card)

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

Router basic configurations


Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#enable secret cisco
R1(config)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#exit
R1(config)#exit
R1(config)#interface loopback0 => Loopback interface for management
R1(config-if)#ip address 1.1.1.1 255.255.255.255
R1(config-if)#^Z =>(Ctrl-Z)
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#telnet 1.1.1.1
Trying 1.1.1.1 ...Open

User Access Verification


Password:
R1>en
Password:
R1#
R1#

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

Assign WAN IP address between Routers

Setup two Routers with WAN WIC(WAN


Interface Card)

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

Check interface list and status in brief


R1#sh ip int brief
Interface

IP-Address

OK? Method Status

FastEthernet0/0

unassigned

YES unset

administratively down down

FastEthernet0/1

unassigned

YES unset

administratively down down

Serial0/0/0

unassigned

YES unset

administratively down down

Serial0/0/1

unassigned

YES unset

administratively down down

Loopback0

1.1.1.1

YES manual up

Vlan1

unassigned

YES unset

R1#

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

Protocol

up

administratively down down

Common Leased Line Physical Topology

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

10

DCE vs DTE

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

11

Routers w/ V.35 Serial cable


setup back-to-back connection
Serial
(DTE)

Male
V.35

Female
V.35

Clock Rate

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

12

Serial
(DCE)

Check serial interface type in each router


R1#sh controllers s0/0/0
Interface Serial0/0/0
Hardware is PowerQUICC MPC860
DCE V.35, no clock
idb at 0x81081AC4, driver data structure at 0x81084AC0
SCC Registers:
(omit)

R2#show controllers s0/0/0


Interface Serial0/0/0
Hardware is PowerQUICC MPC860
DTE V.35 clocks stopped.
idb at 0x81081AC4, driver data structure at 0x81084AC0
SCC Registers:
(omit)

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

13

Configure R1 Serial0/0/0
R1>en
Password:
R1#conf t
Enter configuration commands, one per line.
R1(config)#int s0/0/0
R1(config-if)#no shutdown

End with CNTL/Z.

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down


R1(config-if)#clock rate 64000 => Since R1 s0/0/0 is DCE, so it must config clock rate
R1(config-if)#ip address 10.100.1.1 255.255.255.252
R1(config-if)#^Z
R1#
%SYS-5-CONFIG_I: Configured from console by console

R1#sh ip int brief


Interface

IP-Address

OK? Method Status

FastEthernet0/0

unassigned

YES unset

administratively down down

FastEthernet0/1

unassigned

YES unset

administratively down down

Serial0/0/0

10.100.1.1

YES manual down

Serial0/0/1

unassigned

YES unset

Loopback0

1.1.1.1

YES manual up

Vlan1

unassigned

YES unset

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

14

Protocol

down

administratively down down


up

administratively down down

Configure R2 Serial0/0/0
R2>en
Password:
R2#conf t
R2(config)#int s0/0/0
R2(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up


%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
R2(config-if)#ip address 10.100.1.2 255.255.255.252
R2(config-if)#^Z
R2#
%SYS-5-CONFIG_I: Configured from console by console

R2#sh ip int brief


Interface

IP-Address

OK? Method Status

FastEthernet0/0

unassigned

YES unset

administratively down down

FastEthernet0/1

unassigned

YES unset

administratively down down

Serial0/0/0

10.100.1.2

YES manual up

Serial0/0/1

unassigned

YES unset

Loopback0

2.2.2.2

YES manual up

Vlan1

unassigned

YES unset

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

15

Protocol

up

administratively down down


up

administratively down down

Check R1 serial interface status


R1#sh int s0/0/0
Serial0/0/0 is up, line protocol is up (connected)
Hardware is HD64570
Internet address is 10.100.1.1/30
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
(omit)
R1#ping 10.100.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.100.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/20/20 ms

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

16

WAN interconnection was ready!

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

17

Setup each LAN segment behind Routers

Setup LAN switch & host in both site

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

19

Check R1 interface list and status in brief


R1#sh ip int brief
Interface

IP-Address

OK? Method Status

FastEthernet0/0

unassigned

YES unset

administratively down down

FastEthernet0/1

unassigned

YES unset

administratively down down

Serial0/0/0

10.100.1.1

YES manual up

Serial0/0/1

unassigned

YES unset

Loopback0

1.1.1.1

YES manual up

Vlan1
R1#

unassigned

YES unset

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

20

Protocol

up

administratively down down


up

administratively down down

Configure R1 FastEthernet0/0/0
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int f0/0
R1(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up


R1(config-if)#ip address 10.100.2.254 255.255.255.0
R1(config-if)#^Z
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#sh ip int brief
Interface

IP-Address

OK? Method Status

Protocol

FastEthernet0/0

10.100.2.254

YES manual up

up

FastEthernet0/1

unassigned

YES unset

Serial0/0/0

10.100.1.1

YES manual up

Serial0/0/1

unassigned

YES unset

Loopback0

1.1.1.1

YES manual up

Vlan1

unassigned

YES unset

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

21

administratively down down


up

administratively down down


up

administratively down down

Configure R2 FastEthernet0/0/0
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int f0/0
R2(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up


R2(config-if)#ip address 10.100.3.254 255.255.255.0
R2(config-if)#^Z
R2#
%SYS-5-CONFIG_I: Configured from console by console
R2#sh ip int brief
Interface

IP-Address

OK? Method Status

Protocol

FastEthernet0/0

10.100.3.254

YES manual up

up

FastEthernet0/1

unassigned

YES unset

Serial0/0/0

10.100.1.2

YES manual up

Serial0/0/1

unassigned

YES unset

Loopback0

2.2.2.2

YES manual up

Vlan1

unassigned

YES unset

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

22

administratively down down


up

administratively down down


up

administratively down down

Configure switches & hosts


Keep switch default configuration without any change, because we use
switch default VLAN 1 only without management SVI and any
dedicated VLAN/Trunk port configuration
Configure host IP Address behind R1
IP Address: 10.100.2.1
Subnet Mask: 255.255.255.0
Default Gateway: 10.100.2.254 (R1 F0/0 IP Address)

Configure host IP Address behind R2


IP Address: 10.100.3.1
Subnet Mask: 255.255.255.0
Default Gateway: 10.100.3.254 (R1 F0/0 IP Address)

Now only R1 can ping PC1, R2 can ping PC2, but PC1 cannot ping
PC2, because R1 and R2 still not have complete routing information

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

23

Enable Static route in both Routers

How to test in routers (1/2) ?


When execute ping function in routers under default parameter, it will
use outgoing interface IP address as source IP(ex:R1 s0/0/0), so it will
always works!
R1#ping 10.100.3.1 => The host behind R2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.100.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/58/61 ms

Thats because the other router (R2) has WAN(10.100.1.0/30) and


LAN(10.100.1.0/30) routing information so it can route the packet
between these IP networks.
R2#sh ip route
Gateway of last resort is not set

C
C
C

3/6/2013

2.0.0.0/32 is subnetted, 1 subnets


2.2.2.2 is directly connected, Loopback0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
10.100.1.0/30 is directly connected, Serial0/0/0
10.100.3.0/24 is directly connected, FastEthernet0/0

Confidential | Copyright 2012 Trend Micro Inc.

25

How to test in routers (2/2) ?


You can use extension ping as below to specify any source IP which
owns by this router interface:
R1#ping
Protocol [ip]: => Leave it alone, it means IP protocol
Target IP address: 10.100.3.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 10.100.2.254 => Using R1 F0/0 IP address as Source IP
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.100.3.1, timeout is 2 seconds:
Packet sent with a source address of 10.100.2.254
.....
Success rate is 0 percent (0/5)

So, lets fix it by static route in both routers !

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

26

Configure R1 static route


R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip route 10.100.3.0 255.255.255.0 10.100.1.2
R1(config)#^Z
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set

C
C
S

3/6/2013

1.0.0.0/32 is subnetted, 1 subnets


1.1.1.1 is directly connected, Loopback0
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
10.100.1.0/30 is directly connected, Serial0/0/0
10.100.2.0 is directly connected, FastEthernet0/0
10.100.3.0 [1/0] via 10.100.1.2

Confidential | Copyright 2012 Trend Micro Inc.

27

Configure R2 static route


R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#ip route 10.100.2.0 255.255.255.0 10.100.1.1
R2(config)#^Z
R2#
%SYS-5-CONFIG_I: Configured from console by console
R2#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set

C
S
C

3/6/2013

2.0.0.0/32 is subnetted, 1 subnets


2.2.2.2 is directly connected, Loopback0
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
10.100.1.0/30 is directly connected, Serial0/0/0
10.100.2.0/24 [1/0] via 10.100.1.1
10.100.3.0/24 is directly connected, FastEthernet0/0

Confidential | Copyright 2012 Trend Micro Inc.

28

Check the routing in Router and host


R1#ping
Protocol [ip]: => Leave it alone, it means IP protocol
Target IP address: 10.100.3.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 10.100.2.254 => Using R1 F0/0 IP address as Source IP
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.100.3.1, timeout is 2 seconds:
Packet sent with a source address of 10.100.2.254
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 43/54/60 ms
PC>ping 10.100.3.1
Pinging 10.100.3.1 with 32 bytes of data:

Reply from 10.100.3.1: bytes=32 time=101ms TTL=126


Ping statistics for 10.100.3.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 100ms, Maximum = 101ms, Average = 100ms

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

29

Enable RIP routing protocols

Clear static route configuration at first


Before we starting to configure RIP protocol, please remove the static
route in both R1 and R2 to ensure our RIP can work for routing
exchange and packet forwarding
R1#sh run
(omit)
!
ip route 10.100.3.0 255.255.255.0 10.100.1.2
!
(omit)
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#no ip route 10.100.3.0 255.255.255.0 10.100.1.2
R1(config)#^Z
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
C
1.1.1.1 is directly connected, Loopback0
10.0.0.0/24 is subnetted, 2 subnets
C
10.100.1.0 is directly connected, Serial0/0/0
C
10.100.2.0 is directly connected, FastEthernet0/0

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

31

Configure RIP protocol


R1#conf t
Enter configuration commands, one per line.
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 10.0.0.0
R1(config-router)#no auto-summary
R1(config-router)#^Z
R1#
R2#conf t
Enter configuration commands, one per line.
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 10.0.0.0
R2(config-router)#no auto-summary
R2(config-router)#^Z
R2#

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

End with CNTL/Z.

End with CNTL/Z.

32

Check R1 & R2 routing table


R1#sh ip route
Gateway of last resort is not set

C
C
R

1.0.0.0/32 is subnetted, 1 subnets


1.1.1.1 is directly connected, Loopback0
10.0.0.0/24 is subnetted, 3 subnets
10.100.1.0 is directly connected, Serial0/0/0
10.100.2.0 is directly connected, FastEthernet0/0
10.100.3.0 [120/1] via 10.100.1.2, 00:00:26, Serial0/0/0

R2#sh ip route
Gateway of last resort is not set

C
C
R
C

3/6/2013

2.0.0.0/32 is subnetted, 1 subnets


2.2.2.2 is directly connected, Loopback0
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
10.100.1.0/30 is directly connected, Serial0/0/0
10.100.2.0/24 [120/1] via 10.100.1.1, 00:00:07, Serial0/0/0
10.100.3.0/24 is directly connected, FastEthernet0/0

Confidential | Copyright 2012 Trend Micro Inc.

33

Enable OSPF routing protocols

OSPF Topology Design

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

35

Check R1 OSPF neighbor and routing table


R1#sh ip ospf neighbor

Neighbor ID
2.2.2.2

Pri
0

State
FULL/

Dead Time
00:00:38

Address
10.100.1.2

Interface
Serial0/0/0

R1#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set

C
O

C
C
O

3/6/2013

1.0.0.0/32 is subnetted, 1 subnets


1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
2.2.2.2 [110/65] via 10.100.1.2, 00:00:31, Serial0/0/0
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
10.100.1.0/30 is directly connected, Serial0/0/0
10.100.2.0/24 is directly connected, FastEthernet0/0
IA
10.100.3.0/24 [110/65] via 10.100.1.2, 00:08:39, Serial0/0/0

Confidential | Copyright 2012 Trend Micro Inc.

36

Check R2 OSPF neighbor and routing table


R2#sh ip ospf neighbor

Neighbor ID
1.1.1.1

Pri
0

State
FULL/

Dead Time
00:00:36

Address
10.100.1.1

Interface
Serial0/0/0

R2#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O
1.1.1.1 [110/65] via 10.100.1.1, 00:02:13, Serial0/0/0
2.0.0.0/32 is subnetted, 1 subnets
C
2.2.2.2 is directly connected, Loopback0
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C
10.100.1.0/30 is directly connected, Serial0/0/0
O IA
10.100.2.0/24 [110/65] via 10.100.1.1, 00:10:06, Serial0/0/0
C
10.100.3.0/24 is directly connected, FastEthernet0/0

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

37

Q&A

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

38

Appendix

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

39

PDU Simulation for troubleshooting

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

40

PDU Simulation for troubleshooting

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

41

PDU Simulation for troubleshooting

3/6/2013

Confidential | Copyright 2012 Trend Micro Inc.

42

Das könnte Ihnen auch gefallen