I have a router using ospf and a switch connected to the router. The switch and the router are connected using the fa0/1 on the router and the fa0/1 on the switch
Here are the running configs..... Just wondering why I cant ping 172.16.1.2 from the router, and 172.16.1.1 from the switch
SWITCH: ! hostname Switch ! ip subnet-zero ! interface FastEthernet0/1 keepalive 10 switchport mode trunk ! interface FastEthernet0/2 ! ! interface VLAN1 ip address 172.16.1.2 255.255.255.0 no ip directed-broadcast no ip route-cache ! ip default-gateway 172.16.1.1 ! line con 0 transport input none stopbits 1 line vty 0 4 login line vty 5 15 login ! end
VLAN1 is up, line protocol is up Hardware is CPU Interface, address is 0008.a494.42c0 (bia 0008.a494.42c0) Internet address is 172.16.1.2/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set
ROUTER
Router#sh run Building configuration...
Current configuration : 1124 bytes ! version 12.1 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Router ! memory-size iomem 25 ip subnet-zero ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface FastEthernet0/0.1 encapsulation dot1Q 1 ip address 192.169.1.1 255.255.255.0 ! interface Serial0/0 ip address 172.16.100.1 255.255.255.252 clockrate 56000 ! interface FastEthernet0/1 no ip address duplex auto speed auto ! interface FastEthernet0/1.1 encapsulation dot1Q 1 ip address 172.16.1.1 255.255.255.0 ! interface FastEthernet0/1.10 encapsulation dot1Q 10 ! interface FastEthernet0/1.20 encapsulation dot1Q 20
router ospf 1 log-adjacency-changes network 172.16.1.0 0.0.0.255 area 0 network 172.16.100.0 0.0.0.255 area 0 network 172.16.0.0 0.0.255.255 area 0 default-information originate ! ip classless no ip http server ! ! line con 0 line aux 0 line vty 0 4 ! no scheduler allocate end