handyman
24-12-2008, 09:53 AM
Sơ đồ mạng của mình như sau
local net -> Cat3560 -> ASA5510 -> ADSL
Hiện tại từ cat3560 không thể nào ping tới được WAN interface của ASA (LAN thì OK). Console trên con ASA có thể ping ra internet bình thường. Khi thực
hiện lệnh ping xuất hiện lỗi trong logging của ASA "teardown ICMP...". Đây là file cấu hình của mình mong các bro giúp đỡ
ASA Version 7.2(4)
!
hostname ciscoasa
domain-name default.domain.invalid
enable password nusP753Gc9iyVPG7 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
!
interface Ethernet0/0
nameif WAN
security-level 0
ip address 10.10.10.2 255.255.255.0
!
interface Ethernet0/1
nameif LAN
security-level 100
ip address 172.16.10.1 255.255.255.0
!
interface Ethernet0/2
nameif DMZ
security-level 80
ip address 172.16.0.1 255.255.255.0
!
interface Ethernet0/3
shutdown
no nameif
no security-level
no ip address
!
interface Management0/0
nameif management
security-level 100
ip address 10.0.0.1 255.255.255.0
management-only
!
ftp mode passive
dns server-group DefaultDNS
domain-name default.domain.invalid
same-security-traffic permit inter-interface
same-security-traffic permit intra-interface
access-list WAN_access_in extended permit icmp any any
access-list WAN_access_in extended permit ip any any
access-list LAN_access_in extended permit tcp any any
pager lines 24
logging enable
logging console debugging
logging asdm debugging
logging class config console debugging
mtu WAN 1500
mtu LAN 1500
mtu DMZ 1500
mtu management 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
icmp permit any WAN
icmp permit any LAN
icmp permit any DMZ
asdm image disk0:/asdm-524.bin
no asdm history enable
arp timeout 14400
nat-control
global (WAN) 101 interface
nat (LAN) 101 172.16.10.0 255.255.255.0
access-group WAN_access_in in interface WAN
access-group LAN_access_in in interface LAN
route WAN 0.0.0.0 0.0.0.0 10.10.10.1 1
route LAN 172.16.1.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.2.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.3.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.4.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.5.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.6.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.7.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.8.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.9.0 255.255.255.0 172.16.10.1 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
http server enable
http 10.0.0.0 255.255.255.0 management
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd address 10.0.0.2-10.0.0.254 management
dhcpd enable management
!
class-map inspection_default
match default-inspection-traffic
policy-map type inspect dns preset_dns_map
parameters
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect icmp error
!
service-policy global_policy global
local net -> Cat3560 -> ASA5510 -> ADSL
Hiện tại từ cat3560 không thể nào ping tới được WAN interface của ASA (LAN thì OK). Console trên con ASA có thể ping ra internet bình thường. Khi thực
hiện lệnh ping xuất hiện lỗi trong logging của ASA "teardown ICMP...". Đây là file cấu hình của mình mong các bro giúp đỡ
ASA Version 7.2(4)
!
hostname ciscoasa
domain-name default.domain.invalid
enable password nusP753Gc9iyVPG7 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
!
interface Ethernet0/0
nameif WAN
security-level 0
ip address 10.10.10.2 255.255.255.0
!
interface Ethernet0/1
nameif LAN
security-level 100
ip address 172.16.10.1 255.255.255.0
!
interface Ethernet0/2
nameif DMZ
security-level 80
ip address 172.16.0.1 255.255.255.0
!
interface Ethernet0/3
shutdown
no nameif
no security-level
no ip address
!
interface Management0/0
nameif management
security-level 100
ip address 10.0.0.1 255.255.255.0
management-only
!
ftp mode passive
dns server-group DefaultDNS
domain-name default.domain.invalid
same-security-traffic permit inter-interface
same-security-traffic permit intra-interface
access-list WAN_access_in extended permit icmp any any
access-list WAN_access_in extended permit ip any any
access-list LAN_access_in extended permit tcp any any
pager lines 24
logging enable
logging console debugging
logging asdm debugging
logging class config console debugging
mtu WAN 1500
mtu LAN 1500
mtu DMZ 1500
mtu management 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
icmp permit any WAN
icmp permit any LAN
icmp permit any DMZ
asdm image disk0:/asdm-524.bin
no asdm history enable
arp timeout 14400
nat-control
global (WAN) 101 interface
nat (LAN) 101 172.16.10.0 255.255.255.0
access-group WAN_access_in in interface WAN
access-group LAN_access_in in interface LAN
route WAN 0.0.0.0 0.0.0.0 10.10.10.1 1
route LAN 172.16.1.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.2.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.3.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.4.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.5.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.6.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.7.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.8.0 255.255.255.0 172.16.10.1 1
route LAN 172.16.9.0 255.255.255.0 172.16.10.1 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
http server enable
http 10.0.0.0 255.255.255.0 management
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd address 10.0.0.2-10.0.0.254 management
dhcpd enable management
!
class-map inspection_default
match default-inspection-traffic
policy-map type inspect dns preset_dns_map
parameters
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect icmp error
!
service-policy global_policy global