besoin d'aide pour la configuration WAN d'un routeur cisco - Windows & Software
Marsh Posté le 14-04-2006 à 14:09:29
dreamer18 a écrit : poste un sh run, sh ip route ici |
hum ... ces commandes ne font rien sur le routeur ...
Je post le résultat du "show running-config" si ça peut t'aider :
version 12.3
no service pad
service tcp-keepalives-in
service tcp-keepalives-out
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service sequence-numbers
!
hostname CISCO851
!
boot-start-marker
boot-end-marker
!
logging buffered 51200 debugging
logging console critical
enable secret 5 $1$czKe$PSeK98kn7XZ1YVsTcy7r2/
!
username administrateur privilege 15 secret 5 $1$Y.MM$Qost9NCkeyj5YS3.SJEZ7/
clock timezone PCTime 1
clock summer-time PCTime date Mar 30 2003 2:00 Oct 26 2003 3:00
aaa new-model
!
!
aaa authentication login default local
aaa authorization exec default local
aaa session-id common
ip subnet-zero
no ip source-route
ip dhcp excluded-address 10.0.0.1 10.0.0.59
ip dhcp excluded-address 10.0.0.81 10.0.0.254
!
ip dhcp pool sdm-pool1
import all
network 10.0.0.0 255.255.255.0
dns-server 194.2.0.20 194.2.0.50
default-router 10.0.0.252
!
!
ip cef
ip inspect name DEFAULT100 cuseeme
ip inspect name DEFAULT100 ftp
ip inspect name DEFAULT100 h323
ip inspect name DEFAULT100 icmp
ip inspect name DEFAULT100 rcmd
ip inspect name DEFAULT100 realaudio
ip inspect name DEFAULT100 rtsp
ip inspect name DEFAULT100 esmtp
ip inspect name DEFAULT100 sqlnet
ip inspect name DEFAULT100 streamworks
ip inspect name DEFAULT100 tftp
ip inspect name DEFAULT100 tcp
ip inspect name DEFAULT100 udp
ip inspect name DEFAULT100 vdolive
ip tcp synwait-time 10
no ip bootp server
ip domain name acco.nis
ip name-server 194.2.0.20
ip name-server 194.2.0.50
ip ssh time-out 60
ip ssh authentication-retries 2
no ftp-server write-enable
!
!
!
!
!
!
!
interface FastEthernet0
no ip address
no cdp enable
!
interface FastEthernet1
no ip address
no cdp enable
!
interface FastEthernet2
no ip address
no cdp enable
!
interface FastEthernet3
no ip address
no cdp enable
!
interface FastEthernet4
description $FW_OUTSIDE$$ES_WAN$$ETH-WAN$
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
ip route-cache flow
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 1
no cdp enable
!
interface Vlan1
description $ETH-SW-LAUNCH$$INTF-INFO-HWIC 4ESW$$ES_LAN$$FW_INSIDE$
ip address 10.0.0.252 255.255.255.0
ip access-group 100 in
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat inside
ip virtual-reassembly
ip route-cache flow
ip tcp adjust-mss 1452
!
interface Dialer0
description $FW_OUTSIDE$
ip address 82.206.100.157 255.255.255.248
ip access-group 101 in
no ip redirects
no ip unreachables
no ip proxy-arp
ip mtu 1452
ip inspect DEFAULT100 out
ip nat outside
ip virtual-reassembly
encapsulation ppp
ip route-cache flow
dialer pool 1
dialer-group 1
no cdp enable
ppp authentication chap pap callin
ppp chap hostname XXXXX@XXXXX
ppp chap password 7 XXXXXXXXXX
ppp pap sent-username XXXXXXX@XXXXXXXX password 7 XXXXXXXXXX
!
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet4
!
ip http server
ip http authentication local
ip http secure-server
ip http timeout-policy idle 5 life 86400 requests 10000
ip nat inside source list 1 interface Dialer0 overload
!
logging trap debugging
access-list 1 remark INSIDE_IF=Vlan1
access-list 1 remark SDM_ACL Category=2
access-list 1 permit 10.0.0.0 0.0.0.255
access-list 100 remark auto-generated by Cisco SDM Express firewall configuration
access-list 100 remark SDM_ACL Category=1
access-list 100 deny ip host 255.255.255.255 any
access-list 100 deny ip 127.0.0.0 0.255.255.255 any
access-list 100 permit ip any any
access-list 101 remark auto-generated by Cisco SDM Express firewall configuration
access-list 101 remark SDM_ACL Category=1
access-list 101 permit udp host 194.2.0.50 eq domain any
access-list 101 permit udp host 194.2.0.20 eq domain any
access-list 101 deny ip 10.0.0.0 0.0.0.255 any
access-list 101 permit icmp any any echo-reply
access-list 101 permit icmp any any time-exceeded
access-list 101 permit icmp any any unreachable
access-list 101 deny ip 10.0.0.0 0.255.255.255 any
access-list 101 deny ip 172.16.0.0 0.15.255.255 any
access-list 101 deny ip 192.168.0.0 0.0.255.255 any
access-list 101 deny ip 127.0.0.0 0.255.255.255 any
access-list 101 deny ip host 255.255.255.255 any
access-list 101 deny ip host 0.0.0.0 any
access-list 101 deny ip any any
dialer-list 1 protocol ip permit
no cdp run
!
control-plane
!
banner login ^CAuthorized access only!
Disconnect IMMEDIATELY if you are not an authorized user!^C
!
line con 0
no modem enable
transport preferred all
transport output telnet
line aux 0
transport preferred all
transport output telnet
line vty 0 4
transport preferred all
transport input telnet ssh
transport output all
!
scheduler max-task-time 5000
scheduler allocate 4000 1000
scheduler interval 500
end
Marsh Posté le 14-04-2006 à 14:12:28
J'essaye de le configurer en me servant de cet exemple mais il y a des fautes dans la syntaxe ("vpdn group" au lieu de "vpdn-group" ) ça n'aide pas !!
Je n'arrive pas à me mettre à l'endroit où taper "initiate-to ip"
edit : c'est bon pour le initiate to ip
et voilà le 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
82.0.0.0/29 is subnetted, 1 subnets
C 82.206.100.152 is directly connected, Dialer0
10.0.0.0/24 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, Vlan1
et le sh run :
version 12.3
no service pad
service tcp-keepalives-in
service tcp-keepalives-out
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service sequence-numbers
!
hostname CISCO851
!
boot-start-marker
boot-end-marker
!
logging buffered 51200 debugging
logging console critical
enable secret 5 $1$czKe$PSeK98kn7XZ1YVsTcy7r2/
!
clock timezone PCTime 1
clock summer-time PCTime date Mar 30 2003 2:00 Oct 26 2003 3:00
aaa new-model
!
!
aaa authentication login default local
aaa authorization exec default local
aaa session-id common
ip subnet-zero
no ip source-route
ip dhcp excluded-address 10.0.0.1 10.0.0.59
ip dhcp excluded-address 10.0.0.81 10.0.0.254
!
ip dhcp pool sdm-pool1
import all
network 10.0.0.0 255.255.255.0
dns-server 194.2.0.20 194.2.0.50
default-router 10.0.0.252
!
!
ip cef
ip inspect name DEFAULT100 cuseeme
ip inspect name DEFAULT100 ftp
ip inspect name DEFAULT100 h323
ip inspect name DEFAULT100 icmp
ip inspect name DEFAULT100 rcmd
ip inspect name DEFAULT100 realaudio
ip inspect name DEFAULT100 rtsp
ip inspect name DEFAULT100 esmtp
ip inspect name DEFAULT100 sqlnet
ip inspect name DEFAULT100 streamworks
ip inspect name DEFAULT100 tftp
ip inspect name DEFAULT100 tcp
ip inspect name DEFAULT100 udp
ip inspect name DEFAULT100 vdolive
ip tcp synwait-time 10
no ip bootp server
ip domain name acco.nis
ip name-server 194.2.0.20
ip name-server 194.2.0.50
ip ssh time-out 60
ip ssh authentication-retries 2
vpdn enable
!
vpdn-group 1
request-dialin
protocol pppoe
initiate-to ip 82.206.100.157
!
vpdn-group group1
!
no ftp-server write-enable
!
!
!
!
!
!
!
interface FastEthernet0
no ip address
no cdp enable
!
interface FastEthernet1
no ip address
no cdp enable
!
interface FastEthernet2
no ip address
no cdp enable
!
interface FastEthernet3
no ip address
no cdp enable
!
interface FastEthernet4
description $FW_OUTSIDE$$ES_WAN$$ETH-WAN$
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
ip route-cache flow
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 1
no cdp enable
!
interface Vlan1
description $ETH-SW-LAUNCH$$INTF-INFO-HWIC 4ESW$$ES_LAN$$FW_INSIDE$
ip address 10.0.0.252 255.255.255.0
ip access-group 100 in
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat inside
ip virtual-reassembly
ip route-cache flow
ip tcp adjust-mss 1452
!
interface Dialer0
description $FW_OUTSIDE$
ip address 82.206.100.158 255.255.255.248
ip access-group 101 in
no ip redirects
no ip unreachables
no ip proxy-arp
ip mtu 1452
ip inspect DEFAULT100 out
ip nat outside
ip virtual-reassembly
encapsulation ppp
ip route-cache flow
dialer pool 1
dialer-group 1
no cdp enable
ppp authentication chap pap callin
ppp chap hostname XXXXX@XXXXXXX
ppp chap password 7 XXXXXXXXXXXXXXX
ppp pap sent-username XXXXX@XXXXXXX password 7 XXXXXXXXXXXXXXX
!
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet4
!
ip http server
ip http authentication local
ip http secure-server
ip http timeout-policy idle 5 life 86400 requests 10000
ip nat inside source list 1 interface Dialer0 overload
!
logging trap debugging
access-list 1 remark INSIDE_IF=Vlan1
access-list 1 remark SDM_ACL Category=2
access-list 1 permit 10.0.0.0 0.0.0.255
access-list 100 remark auto-generated by Cisco SDM Express firewall configuration
access-list 100 remark SDM_ACL Category=1
access-list 100 deny ip host 255.255.255.255 any
access-list 100 deny ip 127.0.0.0 0.255.255.255 any
access-list 100 permit ip any any
access-list 101 remark auto-generated by Cisco SDM Express firewall configuration
access-list 101 remark SDM_ACL Category=1
access-list 101 permit udp host 194.2.0.50 eq domain any
access-list 101 permit udp host 194.2.0.20 eq domain any
access-list 101 deny ip 10.0.0.0 0.0.0.255 any
access-list 101 permit icmp any any echo-reply
access-list 101 permit icmp any any time-exceeded
access-list 101 permit icmp any any unreachable
access-list 101 deny ip 10.0.0.0 0.255.255.255 any
access-list 101 deny ip 172.16.0.0 0.15.255.255 any
access-list 101 deny ip 192.168.0.0 0.0.255.255 any
access-list 101 deny ip 127.0.0.0 0.255.255.255 any
access-list 101 deny ip host 255.255.255.255 any
access-list 101 deny ip host 0.0.0.0 any
access-list 101 deny ip any any
dialer-list 1 protocol ip permit
no cdp run
!
control-plane
!
banner login ^CAuthorized access only!
Disconnect IMMEDIATELY if you are not an authorized user!^C
!
line con 0
no modem enable
transport preferred all
transport output telnet
line aux 0
transport preferred all
transport output telnet
line vty 0 4
transport preferred all
transport input telnet ssh
transport output all
!
scheduler max-task-time 5000
scheduler allocate 4000 1000
scheduler interval 500
end
J'ai mis 158 à la place de 157 sur le dialer pour voir mais ça ne change rien.
Marsh Posté le 14-04-2006 à 17:56:07
la config NAT/PAT a l'air correcte. Qu'est-ce qui te tracasse dedans ?
Assure toi que l'adresse mise sur l'interface Dialer est bien celle fournie par ton FAI. Mets aussi des no shutdown sur tes interfaces. C'est un routeur qui fait switch intégré ? Fais un show vlan pour vérifier que tous tes ports sont bien dans le vlan 1
Y a des lignes qui me semble un peu bizarres adns tes access lists.
Marsh Posté le 18-04-2006 à 09:40:17
J'ai passé en permit tout ce qui se trouvait dans l'access list du Dialer.
Quand je tape show vlans j'obtiens :
No Virtual LANs configured.
Quand je tape show vlan-switch j'obtiens :
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0, Fa1, Fa2, Fa3
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
1002 fddi 101002 1500 - - - - - 1 1003
1003 tr 101003 1500 1005 0 - - srb 1 1002
1004 fdnet 101004 1500 - - 1 ibm - 0 0
1005 trnet 101005 1500 - - 1 ibm - 0 0
Ce qui m'intrigue c'est que lorsque je regarde avec Ethereal ce qu'il se passe sur l'adresse IP du routeur, il n'y a absolument aucun packet qui lui est transmit lorsque j'essaye d'atteindre une adresse IP avec IE ou firefox. Idem avec une tentative de connexion à un ftp externe en ligne de commande. Par contre si je ping l'adresse du routeur ou que je m'y connecte en ssh ou via un navigateur des packets sont transmis. J'ai fais mes tests en configurant la bonne adresse de passerelle sur mon PC
Marsh Posté le 18-04-2006 à 16:27:23
A y est problème résolu
J'ai désactivé le dialer 0 et tout est routé par le fastethernet 4
!This is the running config of the router: 10.0.0.252
!----------------------------------------------------------------------------
!version 12.3
no service pad
service tcp-keepalives-in
service tcp-keepalives-out
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service sequence-numbers
!
hostname CISCO851
!
boot-start-marker
boot-end-marker
!
logging buffered 51200 debugging
logging console critical
enable secret 5 $1$czKe$PSeK98kn7XZ1YVsTcy7r2/
!
clock timezone PCTime 1
clock summer-time PCTime date Mar 30 2003 2:00 Oct 26 2003 3:00
no aaa new-model
ip subnet-zero
no ip source-route
ip dhcp excluded-address 10.0.0.1 10.0.0.59
ip dhcp excluded-address 10.0.0.81 10.0.0.254
!
ip dhcp pool sdm-pool1
import all
network 10.0.0.0 255.255.255.0
dns-server 194.2.0.20 194.2.0.50
default-router 10.0.0.252
!
!
ip cef
ip inspect name DEFAULT100 cuseeme
ip inspect name DEFAULT100 ftp
ip inspect name DEFAULT100 h323
ip inspect name DEFAULT100 icmp
ip inspect name DEFAULT100 rcmd
ip inspect name DEFAULT100 realaudio
ip inspect name DEFAULT100 rtsp
ip inspect name DEFAULT100 esmtp
ip inspect name DEFAULT100 sqlnet
ip inspect name DEFAULT100 streamworks
ip inspect name DEFAULT100 tftp
ip inspect name DEFAULT100 tcp
ip inspect name DEFAULT100 udp
ip inspect name DEFAULT100 vdolive
ip tcp synwait-time 10
no ip bootp server
ip domain name acco.nis
ip name-server 194.2.0.20
ip name-server 194.2.0.50
ip ssh time-out 60
ip ssh authentication-retries 2
ip rcmd rcp-enable
ip rcmd remote-host sdmRa7396cca 10.0.0.63 La7396cca enable
no ftp-server write-enable
!
!
!
!
!
!
!
interface FastEthernet0
no ip address
no cdp enable
!
interface FastEthernet1
no ip address
no cdp enable
!
interface FastEthernet2
no ip address
no cdp enable
!
interface FastEthernet3
switchport access vlan 2
no ip address
no cdp enable
!
interface FastEthernet4
description $ES_WAN$$FW_OUTSIDE$$ETH-WAN$
ip address 82.206.100.156 255.255.255.248
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat outside
ip virtual-reassembly
ip route-cache flow
duplex auto
speed auto
no cdp enable
!
interface Vlan1
description $ETH-SW-LAUNCH$$INTF-INFO-HWIC 4ESW$$ES_LAN$$FW_INSIDE$
ip address 10.0.0.252 255.255.255.0
ip access-group 100 in
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat inside
ip virtual-reassembly
ip route-cache flow
ip tcp adjust-mss 1452
!
interface Dialer0
description $FW_OUTSIDE$
ip address 82.206.100.156 255.255.255.248
ip access-group 101 in
no ip redirects
no ip unreachables
no ip proxy-arp
ip mtu 1452
ip inspect DEFAULT100 out
ip nat outside
ip virtual-reassembly
ip route-cache flow
shutdown
dialer pool 1
dialer-group 1
no cdp enable
!
ip classless
ip route 0.0.0.0 0.0.0.0 82.206.100.158
!
ip http server
ip http authentication local
ip http secure-server
ip http timeout-policy idle 5 life 86400 requests 10000
ip nat inside source list 1 interface FastEthernet4 overload
!
logging trap debugging
access-list 1 remark INSIDE_IF=Vlan1
access-list 1 remark SDM_ACL Category=2
access-list 1 permit 10.0.0.0 0.0.0.255
access-list 100 remark auto-generated by Cisco SDM Express firewall configuration
access-list 100 remark SDM_ACL Category=1
access-list 100 deny ip host 255.255.255.255 any
access-list 100 deny ip 127.0.0.0 0.255.255.255 any
access-list 100 permit ip any any
access-list 101 remark auto-generated by Cisco SDM Express firewall configuration
access-list 101 remark SDM_ACL Category=1
access-list 101 permit udp host 194.2.0.50 eq domain any
access-list 101 permit udp host 194.2.0.20 eq domain any
access-list 101 permit ip 10.0.0.0 0.0.0.255 any
access-list 101 permit icmp any any echo-reply
access-list 101 permit icmp any any time-exceeded
access-list 101 permit icmp any any unreachable
access-list 101 permit ip 10.0.0.0 0.255.255.255 any
access-list 101 permit ip 172.16.0.0 0.15.255.255 any
access-list 101 permit ip 192.168.0.0 0.0.255.255 any
access-list 101 permit ip 127.0.0.0 0.255.255.255 any
access-list 101 permit ip host 255.255.255.255 any
access-list 101 permit ip host 0.0.0.0 any
access-list 101 permit ip any any
dialer-list 1 protocol ip permit
no cdp run
!
control-plane
!
banner login ^CAuthorized access only!
Disconnect IMMEDIATELY if you are not an authorized user!^C
!
line con 0
login local
no modem enable
transport preferred all
transport output telnet
line aux 0
login local
transport preferred all
transport output telnet
line vty 0 4
privilege level 15
login local
transport preferred all
transport input telnet ssh
transport output all
!
scheduler max-task-time 5000
scheduler allocate 4000 1000
scheduler interval 500
Merci à ceux qui se sont penché sur le problème
Marsh Posté le 14-04-2006 à 10:48:23
Bonjour à tous,
Voici mon problème : dans ma boîte nous avons une connexion SDSL à partager pour le réseau.
Tout allait très bien jusqu'à ce que notre routeur bewan 2104 crame . On l'a remplacé par un
cisco 851 mais je coince au niveau de la configuration car bien sûr il est un peu plus complet
que le bewan .
la configuration du bewan était la suivante:
adresse IP de l'accès LAN : 10.0.0.254
masque de sous réseau côté LAN : 255.255.255.0
adresse IP du WAN : 82.x.x.157 (notre adresse IP publique)
adresse IP de la passerelle : 82.x.x.158
masque de sous réseau : 255.255.255.248
Le modem relié à la prise WAN du routeur possède l'adresse IP 82.x.x.157 avec un masque de sous réseau en 255.255.255.248
toutes les machines reliées au réseau on des adresses en 10.0.0.x
Maintenant j'essaye de configurer le cisco mais je n'arrive pas à voir où lui donner l'adresse IP 82.x.x.158
Pour l'instant j'ai configurer le NAT comme ceci:
inside interface : Vlan1
outside interface : Dialer0{fastEthernet4}
original adress translated adress rule type
10.0.0.0-10.0.0.255 82.x.x.157 Dynamic
Mais je ne pense pas que ce soit correct, car je pense qu'ainsi le routeur est vu par le modem comme ayant une adresse IP
10.0.0.254 ce qui ne passe pas son masque de sous réseau ....
une idée ?