2016-09-07 1 views
-3

J'essaie d'obtenir une configuration de routeur 2851 en utilisant le routage statique et NAT. Mon collège utilise le routage statique, sinon je ne le ferais pas ;-) Je peux faire un ping d'adresses sur Internet à partir de la console du routeur, mais pas d'une machine sur le réseau interne. Je peux cingler le port de routeur à l'intérieur d'un client de réseau mais pas le port extérieur. Je pense que j'ai tous les trucs NAT là-dedans correctement, mais toujours pas de routage. Quelqu'un d'autre peut-il signaler mon erreur?Impossible de faire fonctionner le NAT sur le routeur Cisco 2851

CSLabRouter#sho run 
Building configuration... 

Current configuration : 3621 bytes 
! 
version 12.4 
service timestamps debug datetime msec 
service timestamps log datetime msec 
no service password-encryption 
! 
hostname CSLabRouter 
! 
boot-start-marker 
boot-end-marker 
! 
logging buffered 51200 warnings 
! 
no aaa new-model 
! 
! 
ip cef 
! 
! 
no ip domain lookup 
! 
voice-card 0 
no dspfarm 
! 
! 
! 
! 
! 
! 
! 
! 
! 
! 
! 
! 
! 
crypto pki trustpoint TP-self-signed-3695308060 
enrollment selfsigned 
subject-name cn=IOS-Self-Signed-Certificate-3695308060 
revocation-check none 
rsakeypair TP-self-signed-3695308060 
! 
! 
crypto pki certificate chain TP-self-signed-3695308060 
certificate self-signed 01 
    3082023E 308201A7 A0030201 02020101 300D0609 2A864886 F70D0101 04050030 
    31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274 
    69666963 6174652D 33363935 33303830 3630301E 170D3136 30393033 30333032 

    BC404C81 47004B31 4B3E456C 81E50FC7 E3C9F387 BBB7B8CD 98CC230C 4068B586 FC92 
    quit 
username Admin privilege 15 password 0 MasterPass 
! 
! 
! 
! 
! 
interface GigabitEthernet0/0 
ip address 172.30.30.1 255.255.0.0 
ip nat enable 
duplex auto 
speed auto 
! 
interface GigabitEthernet0/1 
ip address 10.13.13.1 255.255.255.0 
ip nat enable 
duplex auto 
speed auto 
! 
ip default-gateway 172.30.30.1 
ip default-network 172.30.0.0 
ip forward-protocol nd 
ip route 0.0.0.0 0.0.0.0 172.30.30.2 
ip route 10.13.13.0 255.255.255.0 172.30.30.2 
! 
! 
ip http server 
ip http authentication local 
ip http secure-server 
ip nat pool AC008Clients 10.13.13.0 10.13.13.255 prefix-length 24 add-route 
ip nat source list 1 pool AC008Clients overload 
ip nat source static udp 10.13.13.8 53 interface GigabitEthernet0/0 53 
ip nat source static tcp 10.13.13.8 53 interface GigabitEthernet0/0 53 
ip nat source static udp 10.13.13.8 5900 interface GigabitEthernet0/0 5900 
ip nat source static tcp 10.13.13.8 5900 interface GigabitEthernet0/0 5900 
ip nat source static udp 10.13.13.8 3283 interface GigabitEthernet0/0 3283 
ip nat source static tcp 10.13.13.8 3283 interface GigabitEthernet0/0 3283 
ip nat source static udp 10.13.13.8 311 interface GigabitEthernet0/0 311 
ip nat source static tcp 10.13.13.8 311 interface GigabitEthernet0/0 311 
ip nat source static tcp 10.13.13.8 80 interface GigabitEthernet0/0 80 
ip nat inside source list 1 interface GigabitEthernet0/0 overload 
! 
access-list 1 permit 10.13.13.0 0.0.0.255 
snmp-server community CottonCandy RO 
! 
! 
! 
control-plane 
! 
! 
! 
! 
! 
! 
! 
! 
alias exec s show ip int br 
alias exec sr show run 
! 
line con 0 
line aux 0 
line vty 0 4 
privilege level 15 
login local 
transport input ssh 
! 
scheduler allocate 20000 1000 
! 
end 

Répondre

0

Je peux voir que vous utilisez féliciter "enable ip nat" sous les interfaces, et "ip nat inside liste des sources 1 Interface GigabitEthernet0/0 surcharge" dans la configuration globale. Lorsque nous utilisons la commande "ip nat enable", nous devons aussi légèrement modifier l'instruction nat dans la configuration globale (pour supprimer le mot "inside" dans la configuration globale).

Sinon, utilisez la commande "ip nat inside/outside".