
above is my lab. the following is the "sh ip route" result on middle2520. the last part would be all configurations for each device in the lab.
the lab works fine. my question is about the route.
see I already define a P-to-P from middle2520 to c2620, why the routes(on middle2520) to my vlans must go through bottom2520, then to c2620?
the last question is about optimization. I know i'm new, I just put all the possible command together to make the network work. give me some advises to let the commands look professional.
middle2520#sh ip route
save some space here.....
Gateway of last resort is 192.168.0.1 to network 0.0.0.0
172.18.0.0/16 is variably subnetted, 7 subnets, 2 masks
O 172.18.40.0/24 [110/129]
via 172.18.1.2, 00:54:21, Serial1.1
O 172.18.30.0/24 [110/129]
via 172.18.1.2, 00:54:21, Serial1.1
C 172.18.20.0/30 is directly connected, Serial0
O 172.18.10.0/24 [110/129]
via 172.18.1.2, 00:54:21, Serial1.1
C
172.18.2.0/24 is directly connected, Serial1.2
O 172.18.3.0/24 [110/128] via 172.18.1.2, 00:54:21, Serial1.1
C 172.18.1.0/24 is directly connected, Serial1.1
C 192.168.0.0/24 is directly connected, Ethernet0
S* 0.0.0.0/0 [1/0] via 192.168.0.1
middle2520
save some space.....
!
no aaa new-model
ip subnet-zero
ip host c2620 172.18.3.2
ip host bottom2520 172.18.1.2
ip host top2924 172.18.10.2
ip host top2520 172.18.20.1
!
!
!
!
interface Ethernet0
ip address dhcp
ip nat outside
no ip route-cache
!
interface Serial0
ip address 172.18.20.2 255.255.255.252
ip nat inside
no ip route-cache
!
interface Serial1
no ip address
encapsulation frame-relay
no ip route-cache
frame-relay lmi-type cisco
!
interface Serial1.1 point-to-point
ip address 172.18.1.1 255.255.255.0
ip nat inside
no ip route-cache
frame-relay interface-dlci 100
!
interface Serial1.2 point-to-point
ip address 172.18.2.1 255.255.255.0
ip nat inside
no ip route-cache
frame-relay interface-dlci 101
!
interface Serial2
no ip address
shutdown
!
router ospf 10
log-adjacency-changes
network 172.18.0.0 0.0.255.255 area 0
network 192.168.0.0 0.0.0.255 area 0
!
ip nat inside source list 2 interface Ethernet0 overload
no ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.0.1
!
!
access-list 2 permit 172.18.0.0 0.0.255.255
!
bottom2520
!
no aaa new-model
ip subnet-zero
ip host c2620 172.18.3.2
ip name-server 192.168.0.1
!
!
interface Ethernet0
no ip address
shutdown
!
interface Serial0
no ip address
shutdown
no fair-queue
!
interface Serial1
no ip address
encapsulation frame-relay
frame-relay lmi-type cisco
!
interface Serial1.1 point-to-point
ip address 172.18.1.2 255.255.255.0
frame-relay interface-dlci 120
!
interface Serial1.3 point-to-point
ip address 172.18.3.1 255.255.255.0
frame-relay interface-dlci 122
!
interface Serial2
no ip address
shutdown
!
interface Serial3
no ip address
shutdown
!
interface BRI0
no ip address
shutdown
!
router ospf 3
log-adjacency-changes
network 172.18.0.0 0.0.255.255 area 0
!
no ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 172.18.1.1
!
c2620
!
ip subnet-zero
!
!
ip name-server 192.168.0.1
ip dhcp excluded-address 172.18.10.1 172.18.10.50
ip dhcp excluded-address 172.18.30.1 172.18.30.50
ip dhcp excluded-address 172.18.40.1 172.18.40.50
!
ip dhcp pool 172.18.10.0/24
network 172.18.10.0 255.255.255.0
dns-server 192.168.0.1
default-router 172.18.10.1
!
ip dhcp pool 172.18.30.0/24
network 172.18.30.0 255.255.255.0
default-router 172.18.30.1
dns-server 192.168.0.1
!
ip dhcp pool 172.18.40.0/24
network 172.18.40.0 255.255.255.0
dns-server 192.168.0.1
default-router 172.18.40.1
!
call rsvp-sync
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.1
encapsulation isl 1
ip address 172.18.10.1 255.255.255.0
no ip redirects
!
interface FastEthernet0/0.3
encapsulation isl 3
ip address 172.18.30.1 255.255.255.0
no ip redirects
!
interface FastEthernet0/0.4
encapsulation isl 5
ip address 172.18.40.1 255.255.255.0
no ip redirects
!
interface Serial0/0
no ip address
encapsulation frame-relay
frame-relay lmi-type cisco
!
interface Serial0/0.1 point-to-point
ip address 172.18.2.2 255.255.255.0
frame-relay interface-dlci 150
!
interface Serial0/0.3 point-to-point
ip address 172.18.3.2 255.255.255.0
frame-relay interface-dlci 152
!
router ospf 5
log-adjacency-changes
network 172.18.0.0 0.0.255.255 area 0
!
ip classless
ip route 0.0.0.0 0.0.0.0 Serial0/0.3
ip http server
!
!
!
dial-peer cor custom
!
!
top2520
!
no aaa new-model
ip subnet-zero
ip name-server 192.168.0.1
!
frame-relay switching
!
!
!
interface Ethernet0
no ip address
no ip route-cache
shutdown
!
interface Serial0
no ip address
encapsulation frame-relay
no ip route-cache
clockrate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 120 interface Serial1 100
frame-relay route 122 interface Serial2 152
!
interface Serial1
no ip address
encapsulation frame-relay
no ip route-cache
clockrate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 100 interface Serial0 120
frame-relay route 101 interface Serial2 150
!
interface Serial2
no ip address
encapsulation frame-relay
clockrate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 150 interface Serial1 100
frame-relay route 152 interface Serial0 122
!
interface Serial3
ip address 172.18.20.1 255.255.255.252
clockrate 64000
!
interface BRI0
no ip address
no ip route-cache
shutdown
!
router ospf 8
log-adjacency-changes
network 172.18.0.0 0.0.255.255 area 0
!
no ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 Serial3
!