Activity deed at home with my router 1751v.
See How:
R1, S1 and PC1 are at my laptop through of
dynagen and vpcs, after I show up the file.
Now, see the configs:
in 1751v:
Configuration to PPPoE - Velox (Optional):
1751v# sh run
Building configuration...
Current configuration : 1011 bytes
!
!
version 12.4
no service pad
!
hostname 1751v
!
boot-start-marker
boot-end-marker
!
!
ip name-server 8.8.8.8
ip name-server 8.8.4.4
!
!
interface ATM0/0
no ip address
no atm ilmi-keepalive
dsl operating-mode auto
!
interface ATM0/0.33 point-to-point
no snmp trap link-status
pvc 0/33
pppoe-client dial-pool-number 1
!
!
interface FastEthernet0/0
ip address 10.25.25.1 255.255.255.248
ip nat inside
ip tcp adjust-mss 1412
speed 100
!
interface Dialer0
description OUTSIDE_NETWORK - PPPoE
ip address negotiated
ip mtu 1452
ip nat outside
encapsulation ppp
dialer pool 1
dialer-group 1
ppp authentication chap pap callin
ppp chap hostname 21?????????@telemar.com.br
ppp chap password 7 ?????????????????
ppp pap sent-user 21??????????@telemar.com.br pass 7 ??
!
ip route 0.0.0.0 0.0.0.0 Dialer 0
!
ip nat inside source list 1 interface Dialer0 overload
!
access-list 1 permit 10.25.25.0 0.0.0.7
!
dialer-list 1 protocol ip permit
!
end
Configuration for this Lab:
1751v# conf t
1751v(config)# int lo0
1751v(config-if)# ip add 172.16.10.11 255.255.255.255
1751v(config-if)# router ospf 100
1751v(config-router)# net 10.25.25.0 0.0.0.7 area 0
1751v(config-router)# default-information originate
1751v(config-router)# log-adjacency-changes
1751v(config-router)# area 0 authentication message-digest
1751v(config-router)# int f0/0
1751v(config-if)# desc 1751v <-> R1
1751v(config-if)# ip ospf message-digest-key 100 md5 cisco
Note: Being the 1751v the default gateway, the command
default-information originate is to disseminate my default route.
Configuration in R1 router:
R1# conf t
R1(config)# int lo0
R1(config-if)# ip add 172.16.10.10 255.255.255.255
R1(config-if)# int f2/0
R1(config-if)# ip add 192.168.0.1 255.255.255.0
R1(config-if)# desc R1 <-> S1
R1(config-if)# int f1/0
R1(config-if)# ip add 10.25.25.6 255.255.255.248
R1(config-if)# ip ospf message-digest-key 100 md5 cisco
R1(config-if)# desc R1 <-> 1751v
R1(config-if)# router ospf 100
R1(config-router)# net 10.25.25.0 0.0.0.7 area 0
R1(config-router)# net 192.168.0.0 0.0.0.255 area 0
R1(config-router)# log-adjacency-changes
R1(config-router)# area 0 authentication message-digest
R1(config-router)# exit
R1(config)# ip dhcp pool LAN
R1(dhcp-config)# net 192.168.0.0 /24
R1(dhcp-config)# default-router 192.168.0.1
R1(dhcp-config)# exit
R1(config)# ip dhcp exclude add 192.168.0.1
R1(config)# ip dhcp exclude add 192.168.0.2
R1(config)# do wr
Configuration in S1 switch (Optional):
S1# conf t
S1(config)# int vlan 1
S1(config-if)# ip add 192.168.0.2 255.255.255.0
S1(config-if)# n shut
S1(config-if)# int f1/0
S1(config-if)# desc S1 <-> R1
S1(config-if)# int f1/1
S1(config-if)# desc S1 <-> PC1
S1(config-if)# line vty 0 4
S1(config-line)# password cisco
S1(config-line)# login
S1(config-line)#exit
S1(config)#ip default-gateway 192.168.0.1
Configuration in PC1:
~# cat startup.vpc
# PC1 <-> S1
1
dhcp
~# ./vpcs
See all the configuration here (R1):
R1# sh run
Building configuration...
Current configuration : 1336 bytes
!
! Last configuration change at 15:07:09 GMT-3 Fri Mar 19 2010
! NVRAM config last updated at 15:07:46 GMT-3 Fri Mar 19 2010
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R1
!
!
!
clock timezone GMT-3 -3
ip subnet-zero
no ip finger
ip name-server 200.149.55.142
ip dhcp excluded-address 192.168.0.1
ip dhcp excluded-address 192.168.0.2
!
ip dhcp pool LAN
network 192.168.0.0 255.255.255.0
default-router 192.168.0.1
!
!
!
!
!
!
interface Loopback0
ip address 172.16.10.10 255.255.255.255
!
interface FastEthernet1/0
description R1 <-> 1751v
ip address 10.25.25.6 255.255.255.248
ip nat outside
ip ospf message-digest-key 100 md5 cisco
duplex auto
speed auto
!
interface FastEthernet2/0
description R1 <-> S1
ip address 192.168.0.1 255.255.255.0
ip nat inside
speed 100
full-duplex
!
router ospf 100
log-adjacency-changes
area 0 authentication message-digest
network 10.25.25.0 0.0.0.7 area 0
network 192.168.0.0 0.0.0.255 area 0
!
ip nat inside source list 1 interface FastEthernet1/0 overload
ip classless
no ip http server
!
access-list 1 permit 192.168.0.0 0.0.0.255
!
line con 0
logging synchronous
transport input none
line aux 0
line vty 0 4
!
ntp clock-period 17179879
ntp source FastEthernet1/0
ntp server 200.160.0.8
end
Router R1 coMMands in real time!
R1# sh ip protocols
Routing Protocol is "ospf 100"
Invalid after 0 seconds, hold down 0, flushed after 0
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Routing for Networks:
10.25.25.0/29
192.168.0.0
Routing Information Sources:
Gateway Distance Last Update
172.16.10.11 110 00:06:31
Distance: (default is 110)
R1# sh ip ospf
Routing Process "ospf 100" with ID 172.16.10.10 and Domain ID 0.0.0.100
Supports only single TOS(TOS0) routes
Supports opaque LSA
SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
Number of external LSA 1. Checksum Sum 0x1D60
Number of opaque AS LSA 0. Checksum Sum 0x0
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
External flood list length 0
Area BACKBONE(0)
Number of interfaces in this area is 2
Area has message digest authentication
SPF algorithm executed 7 times
Area ranges are
Number of LSA 3. Checksum Sum 0x1CB63
Number of opaque link LSA 0. Checksum Sum 0x0
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
R1# sh ip ospf interface f1/0
FastEthernet1/0 is up, line protocol is up
Internet Address 10.25.25.6/29, Area 0
Process ID 100, Router ID 172.16.10.10, Network Type BROADCAST,
Cost: 1
Transmit Delay is 1 sec, State BDR, Priority 1
Designated Router (ID) 172.16.10.11, Interface address 10.25.25.1
Backup Designated router (ID) 172.16.10.10, Interface address 10.25.25.6
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:07
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 172.16.10.11 (Designated Router)
Suppress hello for 0 neighbor(s)
Message digest authentication enabled
Youngest key id is 100
R1# sh ip ospf nei
Neighbor ID Pri State Dead Time Address Interface
172.16.10.11 1 FULL/DR 00:00:39 10.25.25.1 FastEthernet1/0
R1# sh ip ro
...
Gateway of last resort is 10.25.25.1 to network 0.0.0.0
172.16.0.0/32 is subnetted, 1 subnets
C 172.16.10.10 is directly connected, Loopback0
10.0.0.0/29 is subnetted, 1 subnets
C 10.25.25.0 is directly connected, FastEthernet1/0
C 192.168.0.0/24 is directly connected, FastEthernet2/0
O*E2 0.0.0.0/0 [110/1] via 10.25.25.1, 00:07:41, FastEthernet1/0
R1# sh ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet1/0 10.25.25.6 YES manual up up
FastEthernet2/0 192.168.0.1 YES manual up up
Loopback0 172.16.10.10 YES manual up up
R1# debug ip nat
IP NAT debugging is on
00:42:41: NAT: s=192.168.0.3->10.25.25.6, d=8.8.8.8 [33983]
00:42:41: NAT*: s=8.8.8.8, d=10.25.25.6->192.168.0.3 [33983]
00:42:41: NAT*: s=192.168.0.3->10.25.25.6, d=8.8.8.8 [33983]
00:42:41: NAT*: s=8.8.8.8, d=10.25.25.6->192.168.0.3 [33983]
00:42:41: NAT*: s=192.168.0.3->10.25.25.6, d=8.8.8.8 [33983]
00:42:41: NAT*: s=8.8.8.8, d=10.25.25.6->192.168.0.3 [33983]
00:42:41: NAT*: s=192.168.0.3->10.25.25.6, d=8.8.8.8 [33983]
00:42:41: NAT*: s=8.8.8.8, d=10.25.25.6->192.168.0.3 [33983]
00:42:41: NAT*: s=192.168.0.3->10.25.25.6, d=8.8.8.8 [33983]
00:42:41: NAT*: s=8.8.8.8, d=10.25.25.6->192.168.0.3 [33983]
Note: The output above is result of ping coMMand in PC1.
R1# un all
All possible debugging has been turned off
R1# sh ip nat translations
Pro Inside global Inside local Outside local Outside global
icmp 10.25.25.6:33983 192.168.0.3:33983 8.8.8.8:33983 8.8.8.8:33983
R1# sh ip nat statistics
Total active translations: 1 (0 static, 1 dynamic; 1 extended)
Outside interfaces:
FastEthernet1/0
Inside interfaces:
FastEthernet2/0
Hits: 27 Misses: 3
Expired translations: 2
Dynamic mappings:
-- Inside Source
access-list 1 interface FastEthernet1/0 refcount 1
OSPF Tips and ResuMe:
Configure the priority:
Router(config)# int interface type number
Router(config-if)# ip ospf priority ?
<0-255> Priority
<0-255> Priority
Configure the Cost:
<1-65535> Priority
Range of Proccess ID:
Router(config)# router ospf ?
<1-65535> Process ID
<1-65535> Process ID
Configure the Area:
Router(config-router)# net 1.1.1.1 0.0.0.0 area ?
<0-4294967295> OSPF area ID as a decimal value
Debug coMMands:
Router# debug ip ospf ?
adj OSPF adjacency events
database-timer OSPF database timer
events OSPF events
flood OSPF flooding
hello OSPF hello events
lsa-generation OSPF lsa generation
mpls OSPF MPLS
nsf OSPF non-stop forwarding events
packet OSPF packets
retransmission OSPF retransmission events
spf OSPF spf
tree OSPF database tree
Show coMMands:
Router# sh ip ospf ?
<1-65535> Process ID number
border-routers Border and Boundary Router Information
database Database summary
flood-list Link state flood list
interface Interface information
max-metric Max-metric origination information
mpls MPLS related information
neighbor Neighbor list
request-list Link state request list
retransmission-list Link state retransmission list
sham-links Sham link information
statistics Various OSPF Statistics
summary-address Summary-address redistribution Information
timers OSPF timers information
traffic Traffic related statistics
virtual-links Virtual link information
| Output modifiers
And so on ...
Resources:
[x] Cisco OSPF
biOos
No comments:
Post a Comment