Sie sind auf Seite 1von 3

sh Honolulu#show r Honolulu#show run Honolulu#show running-config Building configuration... Current configuration : 1501 bytes ! version 12.

2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Honolulu ! ! memory-size iomem 10 ip subnet-zero ! ! ! ! call rsvp-sync ! ! ! ! ! !--More-! ! interface Loopback0 ip address 172.16.40.1 255.255.255.255 ! interface Loopback1 ip address 172.16.50.1 255.255.255.255 ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface Serial0/0 ip address 10.0.0.2 255.255.255.0 ip nat outside encapsulation frame-relay frame-relay map ip 10.0.0.1 201 broadcast frame-relay lmi-type ansi ! interface BRI0/0 no ip address --More-encapsulation hdlc shutdown ! interface Serial0/1 ip address 172.16.1.1 255.255.255.0 ip access-group 100 in ip nat inside clockrate 64000

! router ospf 1 log-adjacency-changes network 10.0.0.0 0.0.0.255 area 0 network 172.16.1.0 0.0.0.255 area 0 network 172.16.40.1 0.0.0.0 area 0 network 172.16.50.1 0.0.0.0 area 0 neighbor 10.0.0.1 priority 1 ! ip nat pool NAT-POOL1 200.200.200.1 200.200.200.254 netmask 255.255.255.0 ip nat inside source list 1 pool NAT-POOL1 ip classless ip route 192.168.0.0 255.255.0.0 172.16.1.2 ip http server !--More-access-list 1 permit 192.168.10.0 0.0.0.255 access-list 100 deny ip host 192.168.10.2 host 172.16.50.1 access-list 100 permit ip host 192.168.10.2 any access-list 100 permit ip host 192.168.20.2 host 172.16.40.1 access-list 100 deny ip host 192.168.20.2 any ! ! dial-peer cor custom ! ! ! ! ! line con 0 line aux 0 line vty 0 4 ! end Honolulu#sh Honolulu#show n Honolulu#show nat Honolulu#show nat t Honolulu#show nat tr Honolulu#show ip ntr nat Honolulu#show ip na Honolulu#show ip nat t Honolulu#show ip nat translations Pro Inside global Inside local Outside local Outside global --- 200.200.200.1 192.168.10.2 ----Honolulu#sh ip nat st Honolulu#sh ip nat statistics Total active translations: 1 (0 static, 1 dynamic; 0 extended) Outside interfaces: Serial0/0 Inside interfaces: Serial0/1 Hits: 31 Misses: 1 Expired translations: 0 Dynamic mappings: -- Inside Source [Id: 1] access-list 1 pool NAT-POOL1 refcount 1 pool NAT-POOL1: netmask 255.255.255.0 start 200.200.200.1 end 200.200.200.254 type generic, total addresses 254, allocated 1 (0%), misses 0

Honolulu#h ip r sh Honolulu#sh ip ro Honolulu#sh 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/16 is variably subnetted, 3 subnets, 2 masks 172.16.50.1/32 is directly connected, Loopback1 172.16.40.1/32 is directly connected, Loopback0 172.16.1.0/24 is directly connected, Serial0/1 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks O 10.10.10.10/32 [110/782] via 10.0.0.1, 02:26:13, Serial0/0 C 10.0.0.0/24 is directly connected, Serial0/0 S 192.168.0.0/16 [1/0] via 172.16.1.2 Honolulu#ping 10.0.0.1 C C C Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 40/40/40 ms Honolulu#

Das könnte Ihnen auch gefallen