Você está na página 1de 7

version 12.3 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname R1 ! ! ! enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1 ! ! ip dhcp excluded-address 10.1.0.1 10.1.0.5 ! ip dhcp pool R1_LAN network 10.1.0.0 255.255.255.0 dns-server 10.0.2.25 ! ! ! ! ! ! ! ip name-server 10.2.0.25 ! ! spanning-tree mode pvst ! ! ! ! interface FastEthernet0/0 description Link to LAN ip address 10.1.0.1 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/0/0 description Link to R2 ip address 172.16.0.6 255.255.255.248 ! interface Serial0/0/1 no ip address shutdown ! interface Vlan1 no ip address shutdown ! router rip version 2 network 10.0.0.0 network 172.16.0.0

no auto-summary ! ip classless ip route 10.100.0.0 255.255.255.0 FastEthernet0/0 ip route 0.0.0.0 0.0.0.0 Serial0/0/0 ! ! ! banner motd ^CAUTHORIZED ACCESS ONLY^C ! ! ! ! line con 0 password cisco login ! line aux 0 ! line vty 0 4 password cisco login ! ! ! end R1# R1# R1#conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#ip dhcp pool R1_LAN R1(dhcp-config)#no dns-server 10.0.2.25 R1(dhcp-config)#dns-server 10.2.0.25 R1(dhcp-config)# R1(dhcp-config)#default-g R1(dhcp-config)#default-router 10.1.0.1 R1(dhcp-config)# R1(dhcp-config)# R1(dhcp-config)# R1(dhcp-config)#^Z R1# R1# R1#show run Building configuration... Current configuration : 1116 bytes ! version 12.3 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname R1 ! ! ! enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1 !

! ip dhcp excluded-address 10.1.0.1 10.1.0.5 ! ip dhcp pool R1_LAN network 10.1.0.0 255.255.255.0 default-router 10.1.0.1 dns-server 10.2.0.25 ! ! ! ! ! ! ! ip name-server 10.2.0.25 ! ! spanning-tree mode pvst ! ! ! ! interface FastEthernet0/0 description Link to LAN ip address 10.1.0.1 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/0/0 description Link to R2 ip address 172.16.0.6 255.255.255.248 ! interface Serial0/0/1 no ip address shutdown ! interface Vlan1 no ip address shutdown ! router rip version 2 network 10.0.0.0 network 172.16.0.0 no auto-summary ! ip classless ip route 10.100.0.0 255.255.255.0 FastEthernet0/0 ip route 0.0.0.0 0.0.0.0 Serial0/0/0 ! ! ! banner motd ^CAUTHORIZED ACCESS ONLY^C !

! ! ! line con 0 password cisco login ! line aux 0 ! line vty 0 4 password cisco login ! ! ! end R1#copy run start Destination filename [startup-config]? Building configuration... [OK] Device ID: R1 Entry address(es): IP address : 172.16.0.6 Platform: cisco C1841, Capabilities: Router Interface: Serial0/0/0, Port ID (outgoing port): Serial0/0/0 Holdtime: 168 R2#sh cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B S - Switch, H - Host, I - IGMP, r Device ID Local Intrfce Holdtme Capability S2 Fas 0/0 151 S R1 Ser 0/0/0 161 R ISP Ser 0/0/1 128 R R2# R2#sh cdp neighbors detail

Source Route Bridge - Repeater, P - Phone Platform Port ID 2960 Fas 0/1 C1841 Ser 0/0/0 C1841 Ser 0/0/0

Device ID: S2 Entry address(es): IP address : 10.2.0.2 Platform: cisco 2960, Capabilities: Switch Interface: FastEthernet0/0, Port ID (outgoing port): FastEthernet0/1 Holdtime: 149 Version : Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEAS E SOFTWARE (fc1) Copyright (c) 1986-2005 by Cisco Systems, Inc. Compiled Wed 12-Oct-05 22:05 by pt_team advertisement version: 2 Duplex: full --------------------------Device ID: R1 Entry address(es):

IP address : 172.16.0.6 Platform: cisco C1841, Capabilities: Router Interface: Serial0/0/0, Port ID (outgoing port): Serial0/0/0 Holdtime: 159 Version : Cisco IOS Software, 1841 Software (C1841-IPBASE-M), Version 12.3(14)T7, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2006 by Cisco Systems, Inc. Compiled Mon 15-May-06 14:54 by pt_team advertisement version: 2 Duplex: full --------------------------Device ID: ISP Entry address(es): IP address : 209.165.201.1 Platform: cisco C1841, Capabilities: Router Interface: Serial0/0/1, Port ID (outgoing port): Serial0/0/0 Holdtime: 126 Version : Cisco IOS Software, 1841 Software (C1841-IPBASE-M), Version 12.3(14)T7, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2006 by Cisco Systems, Inc. Compiled Mon 15-May-06 14:54 by pt_team advertisement version: 2 Duplex: full R2#sh run Building configuration... Current configuration : 1188 bytes ! version 12.3 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname R2 ! ! ! enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1 ! ! ! ! ! ! ! ! ! ! ip name-server 10.2.0.25 !

! spanning-tree mode pvst ! ! ! ! interface FastEthernet0/0 description Link to LAN ip address 10.2.0.1 255.255.255.0 ip nat inside duplex auto speed auto ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/0/0 description Link to R1 ip address 172.16.0.1 255.255.255.248 ip nat inside clock rate 64000 ! interface Serial0/0/1 description Link to ISP ip address 209.165.201.2 255.255.255.252 encapsulation ppp ! interface Vlan1 no ip address shutdown ! router rip version 2 network 10.0.0.0 network 172.16.0.0 no auto-summary ! ip nat inside source list 1 interface Serial0/0/0 overload ip classless ip route 10.100.0.0 255.255.255.0 Serial0/0/0 ! ! access-list 1 permit 10.0.0.0 0.255.255.255 access-list 1 permit 172.16.0.0 0.0.255.255 ! banner motd ^CAUTHORIZED ACCESS ONLY^C ! ! ! ! line con 0 password cisco login ! line aux 0 ! line vty 0 4

password cisco login ! ! ! end R2#conf t Enter configuration commands, one per line. End with CNTL/Z. R2(config)# R2(config)# R2(config)# R2(config)#ip route 0.0.0.0 0.0.0.0 Serial0/0/1 R2(config)# R2(config)# R2(config)#end R2# R2#sh ip route 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 0.0.0.0 to network 0.0.0.0 R C S C 10.0.0.0/24 is subnetted, 3 subnets 10.1.0.0 [120/1] via 172.16.0.6, 00:00:18, Serial0/0/0 10.2.0.0 is directly connected, FastEthernet0/0 10.100.0.0 is directly connected, Serial0/0/0 172.16.0.0/29 is subnetted, 1 subnets 172.16.0.0 is directly connected, Serial0/0/0 209.165.201.0/24 is variably subnetted, 2 subnets, 2 masks 209.165.201.0/30 is directly connected, Serial0/0/1 209.165.201.1/32 is directly connected, Serial0/0/1 0.0.0.0/0 is directly connected, Serial0/0/1

C C S* R2# R2# R2#copy run start Destination filename [startup-config]? Building configuration... [OK] R2# (You have open connections) [confirm]

[Connection to 10.2.0.1 closed by foreign host] S2#

Você também pode gostar