thank you very much Merv, after i added the above routes everything worked great.here are the configurations for the 3550 and 2800.there's no dynamic routing protocol between the 3550 and the 2800. now,does this mean that 3550 made a Natting process between the private networks(172.16.0.0) and the real address of the router??
3550 sh ip route: Codes: C - connected, S - static, 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 62.68.75.17 to network 0.0.0.0
172.16.0.0/24 is subnetted, 5 subnets C 172.16.10.0 is directly connected, Vlan10 C 172.16.4.0 is directly connected, Vlan4 C 172.16.5.0 is directly connected, Vlan5 C 172.16.2.0 is directly connected, Vlan2 C 172.16.3.0 is directly connected, Vlan3 62.0.0.0/28 is subnetted, 1 subnets C 62.68.75.16 is directly connected, FastEthernet0/10 S* 0.0.0.0/0 [1/0] via 62.68.75.17
the sh run for 3550:
Current configuration : 3213 bytes ! version 12.2 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Distribution ! ! no aaa new-model ip subnet-zero ip routing ! ! ! ! no file verify auto spanning-tree mode pvst spanning-tree extend system-id ! vlan internal allocation policy ascending ! interface FastEthernet0/1 switchport mode dynamic desirable ! interface FastEthernet0/2 switchport trunk encapsulation dot1q switchport mode trunk ! interface FastEthernet0/3 switchport trunk encapsulation dot1q switchport mode trunk ! interface FastEthernet0/4 switchport trunk encapsulation dot1q switchport mode trunk ! interface FastEthernet0/5 switchport trunk encapsulation dot1q switchport mode trunk ! interface FastEthernet0/6 switchport mode dynamic desirable ! interface FastEthernet0/7 switchport mode dynamic desirable ! interface FastEthernet0/8 switchport mode dynamic desirable ! interface FastEthernet0/9 switchport mode dynamic desirable ! interface FastEthernet0/10 no switchport ip address 62.68.75.22 255.255.255.240 mls qos trust dscp macro description cisco-router auto qos voip trust ! interface FastEthernet0/11 switchport mode dynamic desirable ! interface FastEthernet0/12 switchport mode dynamic desirable ! interface FastEthernet0/13 switchport mode dynamic desirable ! interface FastEthernet0/14 switchport mode dynamic desirable ! interface FastEthernet0/15 switchport mode dynamic desirable ! interface FastEthernet0/16 switchport mode dynamic desirable ! interface FastEthernet0/17 switchport mode dynamic desirable ! interface FastEthernet0/18 switchport mode dynamic desirable ! interface FastEthernet0/19 switchport mode dynamic desirable ! interface FastEthernet0/20 switchport mode dynamic desirable ! interface FastEthernet0/21 switchport mode dynamic desirable ! interface FastEthernet0/22 switchport mode dynamic desirable ! interface FastEthernet0/23 switchport mode dynamic desirable ! interface FastEthernet0/24 switchport access vlan 10 switchport mode access switchport port-security switchport port-security aging time 2 switchport port-security violation restrict switchport port-security aging type inactivity macro description cisco-desktop spanning-tree portfast spanning-tree bpduguard enable ! interface GigabitEthernet0/1 switchport mode dynamic desirable ! interface GigabitEthernet0/2 switchport mode dynamic desirable ! interface Vlan1 no ip address shutdown ! interface Vlan2 description Floor2_VLAN ip address 172.16.2.1 255.255.255.0
! interface Vlan3 description Floor3_VLAN ip address 172.16.3.1 255.255.255.0 ! interface Vlan4 description Floor4_VLAN ip address 172.16.4.1 255.255.255.0 ! interface Vlan5 description Floor5_VLAN ip address 172.16.5.1 255.255.255.0 ! interface Vlan10 description Management_VLAN ip address 172.16.10.1 255.255.255.0 ! router rip network 172.16.0.0 ! ip default-gateway 62.68.75.17 ip classless no ip route static inter-vrf ip route profile ip route 0.0.0.0 0.0.0.0 62.68.75.17 ip http server ! ! control-plane ! ! ! end
the 2800 sh ip route: Codes: C - connected, S - static, 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 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, 5 subnets S 172.16.10.0 [1/0] via 62.68.75.22 S 172.16.4.0 [1/0] via 62.68.75.22 S 172.16.5.0 [1/0] via 62.68.75.22 S 172.16.2.0 [1/0] via 62.68.75.22 S 172.16.3.0 [1/0] via 62.68.75.22 62.0.0.0/28 is subnetted, 1 subnets C 62.68.75.16 is directly connected, GigabitEthernet0/0
and the 2800 sh run: Router#sho run Building configuration...
Current configuration : 969 bytes ! version 12.4 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Router ! boot-start-marker boot-end-marker ! ! no aaa new-model ! resource policy ! ip subnet-zero ! ! ip cef ! ! ! interface GigabitEthernet0/0 ip address 62.68.75.17 255.255.255.240 duplex auto speed auto ! interface GigabitEthernet0/1 no ip address shutdown duplex auto speed auto ! ip classless ip route 0.0.0.0 0.0.0.0 172.16.101.1 ip route 172.16.2.0 255.255.255.0 62.68.75.22 ip route 172.16.3.0 255.255.255.0 62.68.75.22 ip route 172.16.4.0 255.255.255.0 62.68.75.22 ip route 172.16.5.0 255.255.255.0 62.68.75.22 ip route 172.16.10.0 255.255.255.0 62.68.75.22 ! ! no ip http server no ip http secure-server ! !
! ! control-plane ! ! ! line con 0 line aux 0 line vty 0 4 login ! no scheduler allocate ! end