Вы находитесь на странице: 1из 4

Router#show run Building configuration... Current configuration : 753 bytes ! version 12.

4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname Router ! interface FastEthernet0/0 no ip address duplex auto speed auto shutdown ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/2/0 ip address 172.16.30.2 255.255.255.252 ! interface Serial0/2/1 no ip address shutdown ! interface Vlan1 no ip address shutdown ! router eigrp 1 network 172.16.30.0 0.0.0.3 network 172.16.30.4 0.0.0.3 network 192.168.1.0 0.0.0.3 auto-summary ! ip classless ! line con 0 exec-timeout 2 30 password cisco1 line vty 0 4 exec-timeout 2 30 password cisco1 login ! end Router# Router#show 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 not set 172.16.0.0/30 is subnetted, 1 subnets C 172.16.30.0 is directly connected, Serial0/2/0

PC>ipconfig IP Address......................: 192.168.12.3 Subnet Mask.....................: 255.255.255.0 Default Gateway.................: 192.186.1.1 PC>ping 192.168.12.4 Pinging 192.168.12.4 with 32 bytes of data: Reply from 192.168.12.4: bytes=32 time=14ms TTL=128 Reply from 192.168.12.4: bytes=32 time=9ms TTL=128 Reply from 192.168.12.4: bytes=32 time=4ms TTL=128 Reply from 192.168.12.4: bytes=32 time=4ms TTL=128 Ping statistics for 192.168.12.4: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 4ms, Maximum = 14ms, Average = 7ms PC>ipconfig IP Address......................: 192.168.12.4 Subnet Mask.....................: 255.255.255.0 Default Gateway.................: 192.168.1.1 PC>ping 192.168.12.3 Pinging 192.168.12.3 with 32 bytes of data: Reply from 192.168.12.3: bytes=32 time=4ms TTL=128 Reply from 192.168.12.3: bytes=32 time=7ms TTL=128 Reply from 192.168.12.3: bytes=32 time=4ms TTL=128 Reply from 192.168.12.3: bytes=32 time=0ms TTL=128 Ping statistics for 192.168.12.3: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 7ms, Average = 3ms PC>ping 192.168.1.1 Pinging 192.168.1.1 with 32 bytes of data: Request timed out. Request timed out. Request timed out. Request timed out. Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss) --Can ping from pc to pc, but not to the gateway or the routes Router#show run Building configuration... Current configuration : 760 bytes ! version 12.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption security passwords min-length 6 ! hostname Router ! interface FastEthernet0/0 no ip address duplex auto speed auto shutdown ! interface FastEthernet0/1 ip address 192.168.1.1 255.255.255.252 duplex auto speed auto ! interface Serial0/2/0 ip address 172.16.30.5 255.255.255.252 clock rate 64000

! interface Serial0/2/1 no ip address shutdown ! interface Vlan1 no ip address shutdown ! router eigrp 1 network 172.16.30.0 0.0.0.3 auto-summary ! ip classless ! line con 0 exec-timeout 2 30 password cisco1 line vty 0 4 exec-timeout 2 30 password cisco1 login ! end Router#sho 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 not set 172.16.0.0/30 is subnetted, 1 subnets C 172.16.30.4 is directly connected, Serial0/2/0 192.168.1.0/30 is subnetted, 1 subnets C 192.168.1.0 is directly connected, FastEthernet0/1 Router#ping 192.168.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/6 ms Router#ping 172.16.30.4 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.30.4, timeout is 2 seconds --can ping the gateway from the router thats other end is the gateway, but unable to ping pc's or other router SW1#show run Building configuration... Current configuration : 1529 bytes ! version 12.2 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname SW1 ! interface FastEthernet0/1 switchport mode trunk switchport port-security switchport port-security mac-address sticky switchport port-security violation protect

switchport port-security mac-address sticky 00E0.8F27.E502 ! interface FastEthernet0/2 switchport mode trunk switchport port-security switchport port-security mac-address sticky switchport port-security violation protect switchport port-security mac-address sticky 00E0.8F02.37C6 ! interface FastEthernet0/3 !--removed some interfaces to save space-interface GigabitEthernet1/1 ! interface GigabitEthernet1/2 ! interface Vlan1 no ip address shutdown ! interface Vlan10 ip address 192.168.12.2 255.255.255.0 ! ip default-gateway 192.168.1.1 ! line con 0 password cisco ! line vty 0 4 password cisco login line vty 5 15 login end SW1#show port-security maximum 2<--this command did not work, but i think it would have showed the ports with a max count of 2-^ % Invalid input detected at '^' marker. SW1#show port-security<----this show the port that have switch-port security on them-Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action (Count) (Count) (Count) Fa0/1 1 1 0 Protect Fa0/2 1 1 0 Protect

Вам также может понравиться