Anda di halaman 1dari 26

1 - 15 CCNP 3: Multilayer Switching v 4.0 –Copyright © 2005, Cisco Systems, Inc.

Modified by Rick Graziani, Cabrillo College for NetLab (9/10/2006)

Lab 5.3.4.1 Inter-VLAN Routing with the Internal Route Processor

Notes:
• Our “Core 3550” switch will be acting as the access layer switch, ALSwitch.
• The first part of the lab will not use the router, Router1

Objective
The purpose of this lab is to configure Inter-VLAN routing using a switch with an internal route
processor.

Scenario
The network switching equipment currently includes a 3550 distribution layer switch and a 2950
access switch. The network is segmented into three functional VLANs for better network
management. The VLANs include Accounting and Marketing for the users and the default name
is used for the native VLAN network management. After the subnet ranges and VTP configuration
have been determined, Inter-VLAN routing will be implemented. Inter-VLAN routing will allow
individuals and servers on the Virtual LANs to exchange information. The internal route processor
will be used for routing on the 3550 and VLAN-trunking will be established over a gigabit Ethernet
link to the 2950.

1
Design

The VTP design information is as follows:

Switch VTP Domain VTP Mode

DLSwitch CORP Server

ALSwitch CORP Client

The VLAN configuration information is as follows:

VLAN ID VLAN Name VLAN Subnet DLSwitch ALSwitch Ports

1 Native 172.16.1.0 Fa0/7-10 Fa0/7-10

10 Accounting 172.16.10.0 Fa0/11-14 Fa0/11-14

20 Marketing 172.16.20.0 Fa0/11-14 Fa0/11-14

Trunk 802.1Q

The internal router processor interface configuration information is as follows:

Interface IP Address VLAN

VLAN1 172.16.1.1 1 Native

VLAN10 172.16.10.1 10

VLAN20 172.16.20.1 20

2
Initial Configuration
For all devices, verify that the startup-config is not present.

Switch#show start

If there is a startup-config, erase it.

Switch#
Switch#erase startup-config
Erasing the nvram filesystem will remove all files! Continue? [confirm]

Configure the following on each device: Several interfaces will be administratively shutdown. This is to
ensure that VTP, STP or other information that is configured on neighboring unused switches will not
affect the switches in this lab.

ALSwitch

Switch#config terminal
Switch(config)#hostname ALSwitch
ALSwitch(config)#line con 0
ALSwitch(config-line)#logging synchronous
ALSwitch(config-line)#exec-timeout 0 0

ALSwitch(config)#inter range fa 0/1 - 6


ALSwitch(config-if-range)#shutdown

ALSwitch(config)#inter gig 0/2


ALSwitch(config-if)#shutdown

DLSwitch

Switch#config terminal
Switch(config)#hostname DLSwitch
DLSwitch(config)#line con 0
DLSwitch(config-line)#logging synchronous
DLSwitch(config-line)#exec-timeout 0 0

DLSwitch(config)#inter gig 0/2


DLSwitch(config-if)#shutdown

Router1

Router#config terminal
Router(config)#hostname Router1
Router1(config)#line con 0
Router1(config-line)#logging synchronous
Router1(config-line)#exec-timeout 0 0

3
Step 1: Clear VLAN Database
Delete the vlan database if it exists on any switches and clear the configuration. After deleting the
vlan.dat, reload the switches.
Switch#delete flash:vlan.dat
Delete filename [vlan.dat]?
Delete flash:vlan.dat? [confirm]
Switch#
Switch#reload
System configuration has been modified. Save? [yes/no]:n
Proceed with reload? [confirm]

Step 2: Configure VTP

Configure the VLANs on DLSwitch.


Create the VLANs on DLSwitch and place the switch in vtp server mode. The default switch mode is
server.

DLSwitch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.

DLSwitch(vlan)#vtp domain CORP


Changing VTP domain name from NULL to CORP
DLSwitch(vlan)#vlan 10 name Accounting
VLAN 10 added:
Name: Accounting
DLSwitch(vlan)#vlan 20 name Marketing
VLAN 20 added:
Name: Marketing
DLSwitch(vlan)#exit
APPLY completed.
Exiting....
DLSwitch#

DLSwitch#show vtp status


VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 1005
Number of existing VLANs : 7
VTP Operating Mode : Server
VTP Domain Name : CORP
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x31 0x31 0xF4 0x65 0x66 0x67 0x37 0x63
Configuration last modified by 0.0.0.0 at 3-1-93 00:08:33
Local updater ID is 0.0.0.0 (no valid interface found)
DLSwitch#

4
ALSwitch

ALSwitch#vlan database
ALSwitch(vlan)#vtp domain CORP
ALSwitch(vlan)#vtp client
ALSwitch(vlan)#exit

ALSwitch#show vtp status


VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 1005
Number of existing VLANs : 7
VTP Operating Mode : Client
VTP Domain Name : CORP
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x31 0x31 0xF4 0x65 0x66 0x67 0x37 0x63
Configuration last modified by 0.0.0.0 at 3-1-93 00:08:33
ALSwitch#

Step 3: Configure VLANs on DLSwitch

Configure the DLSwitch ports for the proper VLAN. The interface range command can be used to
configure several interfaces at the same time. By default, all ports are in VLAN 1. The ports that belong to
VLAN 10 and 20 need to be moved.

DLSwitch(config)#inter range fa 0/7 - 10


DLSwitch(config-if-range)#switchport mode access
DLSwitch(config-if-range)#switchport access vlan 1

DLSwitch(config)#inter range fa 0/11 - 14


DLSwitch(config-if-range)#switchport mode access
DLSwitch(config-if-range)#switchport access vlan 10

DLSwitch(config)#inter range fa 0/14 - 24


DLSwitch(config-if-range)#switchport mode access
DLSwitch(config-if-range)#switchport access vlan 20

5
DLSwitch#show vlan

VLAN Name Status Ports


---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/25, Fa0/26
Fa0/27, Fa0/28, Fa0/29, Fa0/30
Fa0/31, Fa0/32, Fa0/33, Fa0/34
Fa0/35, Fa0/36, Fa0/37, Fa0/38
Fa0/39, Fa0/40, Fa0/41, Fa0/42
Fa0/43, Fa0/44, Fa0/45, Fa0/46
Fa0/47, Fa0/48, Gi0/2
10 Accounting active Fa0/11, Fa0/12, Fa0/13
20 Marketing active Fa0/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/19, Fa0/20, Fa0/21
Fa0/22, Fa0/23, Fa0/24

Step 4: Configure VLANs on ALSwitch

ALSwitch(config)#inter range fa 0/7 - 10


ALSwitch(config-if-range)#switchport mode access
ALSwitch(config-if-range)#switchport access vlan 1

ALSwitch(config)#inter range fa 0/11 - 14


ALSwitch(config-if-range)#switchport mode access
ALSwitch(config-if-range)#switchport access vlan 10

ALSwitch(config)#inter range fa 0/15 - 24


ALSwitch(config-if-range)#switchport mode access
ALSwitch(config-if-range)#switchport access vlan 20

ALSwitch#show vlan

VLAN Name Status Ports


---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Gi0/2
10 Accounting active Fa0/11, Fa0/12, Fa0/13, Fa0/14
20 Marketing active Fa0/15, Fa0/16, Fa0/17, Fa0/18
Fa0/19, Fa0/20, Fa0/21, Fa0/22
Fa0/23, Fa0/24

6
Step 5: Configure Trunking between DLSwtich and ALSwitch
DLSwitch(config)#inter gig 0/1
DLSwitch(config-if)#switchport trunk encapsulation dot1q
DLSwitch(config-if)#switchport mode trunk

ALSwitch(config)#inter gig 0/1


ALSwitch(config-if)#switchport trunk encapsulation dot1q
ALSwitch(config-if)#switchport mode trunk

ALSwitch#show inter trunk

Port Mode Encapsulation Status Native vlan


Gi0/1 on 802.1q trunking 1

Port Vlans allowed on trunk


Gi0/1 1-4094

Port Vlans allowed and active in management domain


Gi0/1 1,10,20

Port Vlans in spanning tree forwarding state and not pruned


Gi0/1 1,10,20
ALSwitch#

Step 6: Configure Inter-VLAN Routing

If we had workstations attached, a host connected to ALSwitch on VLAN 10 would be able to reach, ping,
a host connected to DLSwtich on VLAN 10. However, routing has not been configured on the multilayer
switch so hosts on different VLANs would not be able to communicate. A host on VLAN 10 could not ping
a host on VLAN 20.
Configure the management interfaces on DLSwitch and ALSwitch to be a member of VLAN 1.

DLSwitch(config)#inter vlan 1
DLSwitch(config-if)#ip add 172.16.1.1 255.255.255.0
DLSwitch(config-if)#no shut

ALSwitch(config)#inter vlan 1
ALSwitch(config-if)#ip address 172.16.1.2 255.255.255.0

ALSwitch(config)#ip default-gateway 172.16.1.1

Verify connectivity between devices in the same VLAN.


ALSwitch#ping 172.16.1.1

.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/4 ms
ALSwitch#

Note: Why did the first ping timeout? This was due to the ARP Request.

7
Create the Layer 3 VLAN interfaces to route between VLANs.

Configure the SVIs (Switch Virtual Interfaces) on DLSwitch. Switch virtual interfaces (SVI) are Layer 3
interfaces that are configured on multilayer Layer 3 Catalyst switches that are used for inter-VLAN
routing. An SVI is a virtual VLAN interface that is associated with the VLAN-ID to enable routing
capability on that VLAN. These are virtual interfaces!

To configure communication between VLANs, you must configure each SVI with an IP address and
subnet mask in the chosen address range for that subnet. The IP address associated with the VLAN
interface is the default gateway of the workstation.

Use the interface vlan vlan-id command to create the interface.

DLSwitch(config)#inter vlan 10
DLSwitch(config-if)#ip add 172.16.10.1 255.255.255.0
DLSwitch(config-if)#no shut

DLSwitch(config)#inter vlan 20
DLSwitch(config-if)#ip add 172.16.20.1 255.255.255.0
DLSwitch(config-if)#no shut

The switch can now route frames from host on VLAN 10 to a host on VLAN 20 directly on the switch via
hardware switching without requiring an external router. An SVI is mostly implemented to interconnect
the VLANs on the Building Distribution submodules or the Building Access submodules in the multilayer
switched network.

Notice, that the DLSwitch does not have IP routing enabled. Like any host, the switch has its own “host”
routing table to forward traffic originating from the switch (e.g. Switch#ping ip-address). However, it has
not yet been configured as a layer 3 multilayer switch (router), to forward packets entering the switch via
its switchports.

DLSwitch#show ip route
Default gateway is not set

Host Gateway Last Use Total Uses Interface


ICMP redirect cache is empty

8
Now, use the ip routing command to enable routing. This will enable routing between VLANs.

DLSwitch(config)#ip routing

DLSwitch#show 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

172.16.0.0/24 is subnetted, 3 subnets


C 172.16.20.0 is directly connected, Vlan20
C 172.16.10.0 is directly connected, Vlan10
C 172.16.1.0 is directly connected, Vlan1
DLSwitch#

Step 6: Verify Inter-VLAN Routing

Note: We cannot do the following verification without hosts attached. Hopefully, I will install VMWare
with hosts in the next few weeks.
Verify routing between VLANs.
Connect one workstation to VLAN 10 and one to VLAN 20. Use ping to test connectivity. Remember to
change the workstation IP address and gateway to match the subnet.

Did the ping work? Yes, but only from the host to another VLAN interface on the DLSwitch. The two
hosts cannot ping each other. This is because routing functionality has not been turned on. Use the
command on the DLSwitch, ip routing to correct this problem.

Why is a routing protocol unnecessary in this network?


The two networks are directly connected to the internal route processor.
Save the configurations for use in the next lab.

Note: You may either save your configs and do the second part of the lab later or continue on with the
next lab, Lab 5.3.4.2 Routing Between an External Router and an Internal Route Processor. I would
suggest continuing, as the next two labs are very short labs.

9
Lab 5.3.4.2 Routing Between an External Router and an Internal Route Processor

If continuing from the previous lab or after loading the saved configurations from the previous lab,
proceed to the next step.

10
Step 7: Configure Router1
Configure FastEthernet 0/1 on the 2600.

Router1(config)#inter fa 0/1
Router1(config-if)#ip add 10.200.1.2 255.255.255.0

Configure the loopback interface that will be used to test external connectivity.

Router1(config)#inter loop 0
Router1(config-if)#ip add 10.200.2.1 255.255.255.0

Configure EIGRP as the routing protocol. A routing protocol must be configured so that the routers can
learn about external networks.

Router1(config)#router eigrp 100


Router1(config-router)#no auto-summary
Router1(config-router)#network 10.200.1.0
Router1(config-router)#network 10.200.2.0

Step 8: Configure the Layer 3 interface on DLSwitch

Configure the Layer 3 interface on the 3550.


The 3550 supports Layer 2 interfaces and Layer 3 physical interfaces. If a port on the switch is connected
to an independent network without VLANs, it should be converted to a Layer 3 interface or routed port.
The no switchport command is used for this purpose.
Cisco IOS Switchport command
• The switchport command configures an interface as a Layer 2 interface.
• The no switchport command configures an interface as a Layer 3 interface.

A routed port is a physical port that acts similarly to a port on a traditional router with Layer 3 addresses
configured. Unlike an access port, a routed port is not associated with a particular VLAN. A routed port
behaves like a regular router interface, except that it does not support subinterfaces as with Cisco IOS
routers.

DLSwitch(config)#inter fa 0/13
DLSwitch(config-if)#no switchport
DLSwitch(config-if)#ip add 10.200.1.1 255.255.255.0
DLSwitch(config-if)#no shutdown

A routing protocol is needed to pass network information between the 2600 router and Catalyst 3550.
Configure EIGRP as the DLSwitch routing protocol. Configure EIGRP as the routing protocol.

11
Step 9: Configure Routing on DLSwitch

DLSwitch#show 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

172.16.0.0/24 is subnetted, 3 subnets


C 172.16.20.0 is directly connected, Vlan20
C 172.16.10.0 is directly connected, Vlan10
C 172.16.1.0 is directly connected, Vlan1
10.0.0.0/24 is subnetted, 1 subnets
C 10.200.1.0 is directly connected, FastEthernet0/13
DLSwitch#

Configure EIGRP on DLSwitch.

DLSwitch(config)#router eigrp 100


DLSwitch(config-router)#no auto-summary
DLSwitch(config-router)#network 10.200.1.0
DLSwitch(config-router)#network 172.16.1.0
DLSwitch(config-router)#network 172.16.10.0
DLSwitch(config-router)#network 172.16.20.0

Notice that DLSwitch is now receiving routes from Router1..

DLSwitch#show 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

172.16.0.0/24 is subnetted, 3 subnets


C 172.16.20.0 is directly connected, Vlan20
C 172.16.10.0 is directly connected, Vlan10
C 172.16.1.0 is directly connected, Vlan1
10.0.0.0/24 is subnetted, 2 subnets
D 10.200.2.0 [90/156160] via 10.200.1.2, 00:00:16, FastEthernet0/13
C 10.200.1.0 is directly connected, FastEthernet0/13
DLSwitch#

12
Router1 is now receiving routes from DLSwitch..

Router1#show 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, 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
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.16.0.0/24 is subnetted, 3 subnets


D 172.16.20.0 [90/28416] via 10.200.1.1, 00:03:15, FastEthernet0/1
D 172.16.10.0 [90/28416] via 10.200.1.1, 00:03:15, FastEthernet0/1
D 172.16.1.0 [90/28416] via 10.200.1.1, 00:03:15, FastEthernet0/1
10.0.0.0/24 is subnetted, 2 subnets
C 10.200.2.0 is directly connected, Loopback0
C 10.200.1.0 is directly connected, FastEthernet0/1
Router1#

Note: You may either save your configs and do the second part of the lab later or continue on with the
next lab, Lab 5.2.6 Monitoring Cisco Express Forwarding. I would suggest continuing, as this is a very
short lab.

13
Lab 5.2.6 Monitoring Cisco Express Forwarding

If continuing from the previous lab or after loading the saved configurations from the previous lab,
proceed to the next step.
Cisco Express Forwarding (CEF) is a Layer 3 IP switching technology used to optimize network
performance. CEF implements an advanced IP lookup and forwarding algorithm to deliver maximum
Layer 3 switching performance. CEF is less CPU-intensive than fast switching route caching. This allows
for more CPU processing power to be dedicated to packet forwarding.
In the Catalyst 3550 switch, the hardware uses CEF to achieve Gigabit speed line rate. In dynamic
networks, fast switching cache entries are frequently invalidated because of routing changes. This can
cause traffic to be process switched using the routing table, instead of fast switched using the route
cache. CEF uses the Forwarding Information Base (FIB) lookup table to perform destination-based
switching of IP packets.
CEF is enabled globally by default. If for some reason it is disabled, re-enable it by using the ip cef
global configuration command.

Note: The outputs in this lab are not discussed in detail. For more information on the outputs displayed
in this lab, use:

http://www.cisco.com/en/US/products/sw/iosswrel/ps5187/products_command_reference_chapte
r09186a008017cf46.html#wp1076661

14
To display CEF status, use the show ip cef command.

DLSwitch#show ip cef
Prefix Next Hop Interface
0.0.0.0/32 receive
10.200.1.0/24 attached FastEthernet0/13
10.200.1.0/32 receive
10.200.1.1/32 receive
10.200.1.2/32 10.200.1.2 FastEthernet0/13
10.200.1.255/32 receive
10.200.2.0/24 10.200.1.2 FastEthernet0/13
172.16.1.0/24 attached Vlan1
172.16.1.0/32 receive
172.16.1.1/32 receive
172.16.1.2/32 172.16.1.2 Vlan1
172.16.1.255/32 receive
172.16.10.0/24 attached Vlan10
172.16.10.0/32 receive
172.16.10.1/32 receive
172.16.10.255/32 receive
172.16.20.0/24 attached Vlan20
172.16.20.0/32 receive
172.16.20.1/32 receive
172.16.20.255/32 receive
224.0.0.0/4 drop
224.0.0.0/24 receive
Prefix Next Hop Interface
255.255.255.255/32 receive
DLSwitch#

To verify if CEF is enabled on an interface use the show ip interface command.

DLSwitch#show ip interface vlan 10


Vlan10 is up, line protocol is up
Internet address is 172.16.10.1/24
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Multicast reserved groups joined: 224.0.0.10
Outgoing access list is not set
Inbound access list is not set
Proxy ARP is enabled
Local Proxy ARP is disabled
Security level is default
Split horizon is enabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is enabled
IP fast switching on the same interface is disabled
IP Flow switching is disabled
IP CEF switching is enabled
IP CEF Fast switching turbo vector
<Output omitted>

15
Now check if any packets were dropped with the show cef drop command.

DLSwitch#show cef drop


CEF Drop Statistics
Slot Encap_fail Unresolved Unsupported No_route No_adj ChkSum_Err
RP 6 0 0 98 0 0
DLSwitch#

Use the show ip cef summary command to display the CEF table summary.

DLSwitch#show ip cef summary


IP CEF with switching (Table Version 20), flags=0x0
20 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 0
23 leaves, 16 nodes, 19768 bytes, 23 inserts, 0 invalidations
0 load sharing elements, 0 bytes, 0 references
universal per-destination load sharing algorithm, id BFE81AC3
2(0) CEF resets, 0 revisions of existing leaves
Resolution Timer: Exponential (currently 1s, peak 1s)
0 in-place/0 aborted modifications
refcounts: 1591 leaf, 1569 node

Table epoch: 0 (23 entries at this epoch)

Adjacency Table has 2 adjacencies


DLSwitch#

Use the show ip cef detail command to display the CEF table details.

DLSwitch#show ip cef detail


IP CEF with switching (Table Version 20), flags=0x0
20 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 0
23 leaves, 16 nodes, 19768 bytes, 23 inserts, 0 invalidations
0 load sharing elements, 0 bytes, 0 references
universal per-destination load sharing algorithm, id BFE81AC3
2(0) CEF resets, 0 revisions of existing leaves
Resolution Timer: Exponential (currently 1s, peak 1s)
0 in-place/0 aborted modifications
refcounts: 1591 leaf, 1569 node

Table epoch: 0 (23 entries at this epoch)

Adjacency Table has 2 adjacencies


0.0.0.0/32, version 0, epoch 0, receive
10.200.1.0/24, version 17, epoch 0, attached, connected
0 packets, 0 bytes
via FastEthernet0/13, 0 dependencies
valid glean adjacency
10.200.1.0/32, version 15, epoch 0, receive
10.200.1.1/32, version 14, epoch 0, receive
10.200.1.2/32, version 18, epoch 0, connected, cached adjacency 10.200.1.2
0 packets, 0 bytes

16
via 10.200.1.2, FastEthernet0/13, 0 dependencies
next hop 10.200.1.2, FastEthernet0/13
valid cached adjacency
10.200.1.255/32, version 16, epoch 0, receive
10.200.2.0/24, version 19, epoch 0, cached adjacency 10.200.1.2
0 packets, 0 bytes
via 10.200.1.2, FastEthernet0/13, 0 dependencies
next hop 10.200.1.2, FastEthernet0/13
valid cached adjacency
172.16.1.0/24, version 11, epoch 0, attached, connected
0 packets, 0 bytes
via Vlan1, 0 dependencies
valid glean adjacency
172.16.1.0/32, version 1, epoch 0, receive
172.16.1.1/32, version 0, epoch 0, receive
172.16.1.2/32, version 13, epoch 0, connected, cached adjacency 172.16.1.2
0 packets, 0 bytes
via 172.16.1.2, Vlan1, 0 dependencies
next hop 172.16.1.2, Vlan1
valid cached adjacency
172.16.1.255/32, version 2, epoch 0, receive
172.16.10.0/24, version 10, epoch 0, attached, connected
0 packets, 0 bytes
via Vlan10, 0 dependencies
valid glean adjacency
172.16.10.0/32, version 4, epoch 0, receive
172.16.10.1/32, version 3, epoch 0, receive
172.16.10.255/32, version 5, epoch 0, receive
172.16.20.0/24, version 9, epoch 0, attached, connected
0 packets, 0 bytes
via Vlan20, 0 dependencies
valid glean adjacency
172.16.20.0/32, version 7, epoch 0, receive
172.16.20.1/32, version 6, epoch 0, receive
172.16.20.255/32, version 8, epoch 0, receive
224.0.0.0/4, version 12, epoch 0
0 packets, 0 bytes, Precedence routine (0)
via 0.0.0.0, 0 dependencies
next hop 0.0.0.0
valid drop adjacency
224.0.0.0/24, version 2, epoch 0, receive
255.255.255.255/32, version 1, epoch 0, receive
DLSwitch#

17
Final Configs

Lab 5.3.4.1 Inter-VLAN Routing with the Internal Route Processor

DLSwitch#show running-config ALSwitch#show running-config


Building configuration... Building configuration...

Current configuration : 4006 bytes Current configuration : 2502 bytes


! !
version 12.1 version 12.1
no service pad no service pad
service timestamps debug uptime service timestamps debug uptime
service timestamps log uptime service timestamps log uptime
no service password-encryption no service password-encryption
! !
hostname DLSwitch hostname ALSwitch
! !
! !
ip subnet-zero ip subnet-zero
ip routing !
! !
ip ssh time-out 120 spanning-tree extend system-id
ip ssh authentication-retries 3 !
! !
spanning-tree mode pvst !
spanning-tree extend system-id interface FastEthernet0/1
! no ip address
! shutdown
! !
! interface FastEthernet0/2
! no ip address
interface FastEthernet0/1 shutdown
switchport mode dynamic desirable !
! interface FastEthernet0/3
interface FastEthernet0/2 no ip address
switchport mode dynamic desirable shutdown
! !
interface FastEthernet0/3 interface FastEthernet0/4
switchport mode dynamic desirable no ip address
! shutdown
interface FastEthernet0/4 !
switchport mode dynamic desirable interface FastEthernet0/5
! no ip address
interface FastEthernet0/5 shutdown
switchport mode dynamic desirable !
! interface FastEthernet0/6
interface FastEthernet0/6 no ip address
switchport mode dynamic desirable shutdown
! !
interface FastEthernet0/7 interface FastEthernet0/7
switchport mode access switchport mode access
! no ip address
interface FastEthernet0/8 !
switchport mode access interface FastEthernet0/8
! switchport mode access
interface FastEthernet0/9 no ip address
switchport mode access !
! interface FastEthernet0/9
interface FastEthernet0/10 switchport mode access
switchport mode access no ip address
! !
interface FastEthernet0/11 interface FastEthernet0/10
switchport access vlan 10 switchport mode access

18
switchport mode access no ip address
! !
interface FastEthernet0/12 interface FastEthernet0/11
switchport access vlan 10 switchport access vlan 10
switchport mode access switchport mode access
! no ip address
interface FastEthernet0/13 !
switchport access vlan 10 interface FastEthernet0/12
switchport mode access switchport access vlan 10
! switchport mode access
interface FastEthernet0/14 no ip address
switchport access vlan 20 !
switchport mode access interface FastEthernet0/13
! switchport access vlan 10
interface FastEthernet0/15 switchport mode access
switchport access vlan 20 no ip address
switchport mode access !
! interface FastEthernet0/14
interface FastEthernet0/16 switchport access vlan 10
switchport access vlan 20 switchport mode access
switchport mode access no ip address
! !
interface FastEthernet0/17 interface FastEthernet0/15
switchport access vlan 20 switchport access vlan 20
switchport mode access switchport mode access
! no ip address
interface FastEthernet0/18 !
switchport access vlan 20 interface FastEthernet0/16
switchport mode access switchport access vlan 20
! switchport mode access
interface FastEthernet0/19 no ip address
switchport access vlan 20 !
switchport mode access interface FastEthernet0/17
! switchport access vlan 20
interface FastEthernet0/20 switchport mode access
switchport access vlan 20 no ip address
switchport mode access !
! interface FastEthernet0/18
interface FastEthernet0/21 switchport access vlan 20
switchport access vlan 20 switchport mode access
switchport mode access no ip address
! !
interface FastEthernet0/22 interface FastEthernet0/19
switchport access vlan 20 switchport access vlan 20
switchport mode access switchport mode access
! no ip address
interface FastEthernet0/23 !
switchport access vlan 20 interface FastEthernet0/20
switchport mode access switchport access vlan 20
! switchport mode access
interface FastEthernet0/24 no ip address
switchport access vlan 20 !
switchport mode access interface FastEthernet0/21
! switchport access vlan 20
interface FastEthernet0/25 switchport mode access
switchport mode dynamic desirable no ip address
! !
interface FastEthernet0/26 interface FastEthernet0/22
switchport mode dynamic desirable switchport access vlan 20
! switchport mode access
interface FastEthernet0/27 no ip address
switchport mode dynamic desirable !
! interface FastEthernet0/23
interface FastEthernet0/28 switchport access vlan 20
switchport mode dynamic desirable switchport mode access
! no ip address

19
interface FastEthernet0/29 !
switchport mode dynamic desirable interface FastEthernet0/24
! switchport access vlan 20
interface FastEthernet0/30 switchport mode access
switchport mode dynamic desirable no ip address
! !
interface FastEthernet0/31 interface GigabitEthernet0/1
switchport mode dynamic desirable switchport trunk encapsulation dot1q
! switchport mode trunk
interface FastEthernet0/32 no ip address
switchport mode dynamic desirable !
! interface GigabitEthernet0/2
interface FastEthernet0/33 no ip address
switchport mode dynamic desirable shutdown
! !
interface FastEthernet0/34 interface Vlan1
switchport mode dynamic desirable ip address 172.16.1.2 255.255.255.0
! !
interface FastEthernet0/35 ip default-gateway 172.16.1.1
switchport mode dynamic desirable ip classless
! ip http server
interface FastEthernet0/36 !
switchport mode dynamic desirable !
! !
interface FastEthernet0/37 !
switchport mode dynamic desirable line con 0
! exec-timeout 0 0
interface FastEthernet0/38 logging synchronous
switchport mode dynamic desirable line vty 0 4
! login
interface FastEthernet0/39 line vty 5 15
switchport mode dynamic desirable login
! !
interface FastEthernet0/40 end
switchport mode dynamic desirable
! ALSwitch#
interface FastEthernet0/41
switchport mode dynamic desirable
!
interface FastEthernet0/42
switchport mode dynamic desirable
!
interface FastEthernet0/43
switchport mode dynamic desirable
!
interface FastEthernet0/44
switchport mode dynamic desirable
!
interface FastEthernet0/45
switchport mode dynamic desirable
!
interface FastEthernet0/46
switchport mode dynamic desirable
!
interface FastEthernet0/47
switchport mode dynamic desirable
!
interface FastEthernet0/48
switchport mode dynamic desirable
!
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet0/2
switchport mode dynamic desirable

20
shutdown
!
interface Vlan1
ip address 172.16.1.1 255.255.255.0
!
interface Vlan10
ip address 172.16.10.1 255.255.255.0
!
interface Vlan20
ip address 172.16.20.1 255.255.255.0
!
ip classless
ip http server
!
!
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
login
line vty 5 15
login
!
!
end

DLSwitch#

21
Final Configs

Lab 5.3.4.2 Routing Between an External Router and an Internal Route Processor

DLSwitch#show running-config ALSwitch#show running-config


Building configuration... Building configuration...

Current configuration : 4112 bytes Current configuration : 2502 bytes


! !
version 12.1 version 12.1
no service pad no service pad
service timestamps debug uptime service timestamps debug uptime
service timestamps log uptime service timestamps log uptime
no service password-encryption no service password-encryption
! !
hostname DLSwitch hostname ALSwitch
! !
! !
ip subnet-zero ip subnet-zero
ip routing !
! !
ip ssh time-out 120 spanning-tree extend system-id
ip ssh authentication-retries 3 !
! !
spanning-tree mode pvst !
spanning-tree extend system-id interface FastEthernet0/1
! no ip address
! shutdown
! !
! interface FastEthernet0/2
! no ip address
interface FastEthernet0/1 shutdown
switchport mode dynamic desirable !
! interface FastEthernet0/3
interface FastEthernet0/2 no ip address
switchport mode dynamic desirable shutdown
! !
interface FastEthernet0/3 interface FastEthernet0/4
switchport mode dynamic desirable no ip address
! shutdown
interface FastEthernet0/4 !
switchport mode dynamic desirable interface FastEthernet0/5
! no ip address
interface FastEthernet0/5 shutdown
switchport mode dynamic desirable !
! interface FastEthernet0/6
interface FastEthernet0/6 no ip address
switchport mode dynamic desirable shutdown
! !
interface FastEthernet0/7 interface FastEthernet0/7
switchport mode access switchport mode access
! no ip address
interface FastEthernet0/8 !
switchport mode access interface FastEthernet0/8
! switchport mode access
interface FastEthernet0/9 no ip address
switchport mode access !
! interface FastEthernet0/9
interface FastEthernet0/10 switchport mode access
switchport mode access no ip address
! !
interface FastEthernet0/11 interface FastEthernet0/10
switchport access vlan 10 switchport mode access

22
switchport mode access no ip address
! !
interface FastEthernet0/12 interface FastEthernet0/11
switchport access vlan 10 switchport access vlan 10
switchport mode access switchport mode access
! no ip address
interface FastEthernet0/13 !
no switchport interface FastEthernet0/12
ip address 10.200.1.1 255.255.255.0 switchport access vlan 10
! switchport mode access
interface FastEthernet0/14 no ip address
switchport access vlan 20 !
switchport mode access interface FastEthernet0/13
! switchport access vlan 10
interface FastEthernet0/15 switchport mode access
switchport access vlan 20 no ip address
switchport mode access !
! interface FastEthernet0/14
interface FastEthernet0/16 switchport access vlan 10
switchport access vlan 20 switchport mode access
switchport mode access no ip address
! !
interface FastEthernet0/17 interface FastEthernet0/15
switchport access vlan 20 switchport access vlan 20
switchport mode access switchport mode access
! no ip address
interface FastEthernet0/18 !
switchport access vlan 20 interface FastEthernet0/16
switchport mode access switchport access vlan 20
! switchport mode access
interface FastEthernet0/19 no ip address
switchport access vlan 20 !
switchport mode access interface FastEthernet0/17
! switchport access vlan 20
interface FastEthernet0/20 switchport mode access
switchport access vlan 20 no ip address
switchport mode access !
! interface FastEthernet0/18
interface FastEthernet0/21 switchport access vlan 20
switchport access vlan 20 switchport mode access
switchport mode access no ip address
! !
interface FastEthernet0/22 interface FastEthernet0/19
switchport access vlan 20 switchport access vlan 20
switchport mode access switchport mode access
! no ip address
interface FastEthernet0/23 !
switchport access vlan 20 interface FastEthernet0/20
switchport mode access switchport access vlan 20
! switchport mode access
interface FastEthernet0/24 no ip address
switchport access vlan 20 !
switchport mode access interface FastEthernet0/21
! switchport access vlan 20
interface FastEthernet0/25 switchport mode access
switchport mode dynamic desirable no ip address
! !
interface FastEthernet0/26 interface FastEthernet0/22
switchport mode dynamic desirable switchport access vlan 20
! switchport mode access
interface FastEthernet0/27 no ip address
switchport mode dynamic desirable !
! interface FastEthernet0/23
interface FastEthernet0/28 switchport access vlan 20
switchport mode dynamic desirable switchport mode access
! no ip address

23
interface FastEthernet0/29 !
switchport mode dynamic desirable interface FastEthernet0/24
! switchport access vlan 20
interface FastEthernet0/30 switchport mode access
switchport mode dynamic desirable no ip address
! !
interface FastEthernet0/31 interface GigabitEthernet0/1
switchport mode dynamic desirable switchport trunk encapsulation dot1q
! switchport mode trunk
interface FastEthernet0/32 no ip address
switchport mode dynamic desirable !
! interface GigabitEthernet0/2
interface FastEthernet0/33 no ip address
switchport mode dynamic desirable shutdown
! !
interface FastEthernet0/34 interface Vlan1
switchport mode dynamic desirable ip address 172.16.1.2 255.255.255.0
! !
interface FastEthernet0/35 ip default-gateway 172.16.1.1
switchport mode dynamic desirable ip classless
! ip http server
interface FastEthernet0/36 !
switchport mode dynamic desirable !
! !
interface FastEthernet0/37 !
switchport mode dynamic desirable line con 0
! exec-timeout 0 0
interface FastEthernet0/38 logging synchronous
switchport mode dynamic desirable line vty 0 4
! login
interface FastEthernet0/39 line vty 5 15
switchport mode dynamic desirable login
! !
interface FastEthernet0/40 end
switchport mode dynamic desirable
! ALSwitch#
interface FastEthernet0/41
switchport mode dynamic desirable
!
interface FastEthernet0/42
switchport mode dynamic desirable
!
interface FastEthernet0/43
switchport mode dynamic desirable
!
interface FastEthernet0/44
switchport mode dynamic desirable
!
interface FastEthernet0/45
switchport mode dynamic desirable
!
interface FastEthernet0/46
switchport mode dynamic desirable
!
interface FastEthernet0/47
switchport mode dynamic desirable
!
interface FastEthernet0/48
switchport mode dynamic desirable
!
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet0/2
switchport mode dynamic desirable

24
shutdown
!
interface Vlan1
ip address 172.16.1.1 255.255.255.0
!
interface Vlan10
ip address 172.16.10.1 255.255.255.0
!
interface Vlan20
ip address 172.16.20.1 255.255.255.0
!
router eigrp 100
network 10.0.0.0
network 172.16.0.0
no auto-summary
no eigrp log-neighbor-changes
!
ip classless
ip http server
!
!
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
login
line vty 5 15
login
!
!
end

DLSwitch#

Router1#show running-config
Building configuration...

Current configuration : 764 bytes


!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router1
!
!
ip subnet-zero
!
!
!
call rsvp-sync
!
!
!
!
!
!
!
!
interface Loopback0

25
ip address 10.200.2.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0
no ip address
shutdown
!
interface BRI0/0
no ip address
encapsulation hdlc
shutdown
!
interface FastEthernet0/1
ip address 10.200.1.2 255.255.255.0
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
!
router eigrp 100
network 10.0.0.0
no auto-summary
!
ip classless
ip http server
!
!
dial-peer cor custom
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
end

Router1#

26

Anda mungkin juga menyukai