heieye104 发表于 2008-5-15 14:53:35

IPSEC与VLAN的通信问题(已解决)

公司有一个PIX515,级联一个3550,3550上分有四个VLAN,200段我只想要200.8作为网关,才能与外地的IPSEC通信。
route inside 192.168.0.0 255.255.0.0 192.168.200.254 1(只有把这个命令去掉本地才能跟对端的IPSEC通信,但是外地的可以访问我们这边的资源,但是VLAN就无法访问外网了)

PIX515的配置:
PIX Version 6.3(4)
interface ethernet0 auto
interface ethernet1 auto
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password x82aRes.pjqJ4dth encrypted
passwd jCEEIEX17NiCkPTM encrypted
hostname pixfirewall
fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol ils 389
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
no fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol sqlnet 3142
fixup protocol sqlnet 6592
fixup protocol tftp 69
names
access-list acl-out permit icmp any any
access-list vpn permit ip 192.168.200.0 255.255.255.0 192.168.253.0 255.255.255.0
access-list nonat permit ip 192.168.200.0 255.255.255.0 192.168.253.0 255.255.255.0
access-list nonat permit ip 192.168.200.0 255.255.255.0 192.168.209.0 255.255.255.0
access-list nonat permit ip 192.168.200.0 255.255.255.0 192.168.0.0 255.255.255.0
access-list vpn1 permit ip 192.168.200.0 255.255.255.0 192.168.0.0 255.255.255.0
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside 211.152.*.* 255.255.255.224
ip address inside 192.168.200.8 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool pptp 192.168.209.1-192.168.209.254
pdm history enable
arp timeout 14400
global (outside) 1 211.152.*.*-211.152.*.* netmask 255.255.255.224
global (outside) 1 211.152.*.*
nat (inside) 0 access-list nonat
nat (inside) 1 192.168.200.0 255.255.255.0 0 0
nat (inside) 1 192.168.0.0 255.255.0.0 0 0
access-group acl_out in interface outside
route outside 0.0.0.0 0.0.0.0 211.152.*.* 1
route inside 192.168.0.0 255.255.0.0 192.168.200.254 1(只有把这个命令去掉本地才能跟对端的IPSEC通信,但是外地的可以访问我们这边的资源,但是VLAN就无法访问外网了)
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server TACACS+ max-failed-attempts 3
aaa-server TACACS+ deadtime 10
aaa-server RADIUS protocol radius
aaa-server RADIUS max-failed-attempts 3
aaa-server RADIUS deadtime 10
aaa-server LOCAL protocol local
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
sysopt connection permit-pptp
sysopt noproxyarp inside
crypto ipsec transform-set vpn esp-des esp-md5-hmac
crypto map vpn 10 ipsec-isakmp
crypto map vpn 10 match address vpn
crypto map vpn 10 set peer 222.66.*.*
crypto map vpn 10 set transform-set vpn
crypto map vpn 20 ipsec-isakmp
crypto map vpn 20 match address vpn1
crypto map vpn 20 set peer 210.21.*.*
crypto map vpn 20 set transform-set vpn
crypto map vpn interface outside
isakmp enable outside
isakmp key ******** address 222.66.*.* netmask 255.255.255.255
isakmp key ******** address 210.21.*.* netmask 255.255.255.255
isakmp identity address
isakmp client configuration address-pool local pptp outside
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption des
isakmp policy 10 hash md5
isakmp policy 10 group 1
isakmp policy 10 lifetime 86400
telnet 192.168.200.0 255.255.255.0 inside
telnet timeout 5
ssh timeout 5
console timeout 0
vpdn group 1 accept dialin pptp
vpdn group 1 ppp authentication mschap
vpdn group 1 ppp encryption mppe 40
vpdn group 1 client configuration address local pptp
vpdn group 1 client configuration dns 202.106.148.1
vpdn group 1 pptp echo 60
vpdn group 1 client authentication local
vpdn username gaog password *********
vpdn enable outside
terminal width 80
Cryptochecksum:449c5a8d6b05af2f8a6841b485070908()

[ 本帖最后由 heieye104 于 2008-5-23 17:32 编辑 ]

heieye104 发表于 2008-5-15 14:54:17

3550的配置:
Building configuration...
Current configuration : 3105 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
enable password ********
!
no aaa new-model
ip subnet-zero
ip routing
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
switchport access vlan 2
switchport mode dynamic desirable
!
interface FastEthernet0/2
switchport access vlan 2
switchport mode dynamic desirable
!
interface FastEthernet0/3
switchport access vlan 2
switchport mode dynamic desirable
!
interface FastEthernet0/4
switchport access vlan 2
switchport mode dynamic desirable
!
interface FastEthernet0/5
switchport access vlan 2
switchport mode dynamic desirable
!
interface FastEthernet0/6
switchport access vlan 2
switchport mode dynamic desirable
!
interface FastEthernet0/7
switchport access vlan 2
switchport mode dynamic desirable
!
interface FastEthernet0/8
switchport access vlan 2
switchport mode dynamic desirable
!
interface FastEthernet0/9
switchport access vlan 3
switchport mode dynamic desirable
!
interface FastEthernet0/10
switchport access vlan 3
switchport mode dynamic desirable
!
interface FastEthernet0/11
switchport access vlan 3
switchport mode dynamic desirable
!
interface FastEthernet0/12
switchport access vlan 3
switchport mode dynamic desirable
!
interface FastEthernet0/13
switchport access vlan 3
switchport mode dynamic desirable
!
interface FastEthernet0/14
switchport access vlan 3
switchport mode dynamic desirable
!
interface FastEthernet0/15
switchport access vlan 3
switchport mode dynamic desirable
!
interface FastEthernet0/16
switchport access vlan 3
switchport mode dynamic desirable
!
interface FastEthernet0/17
switchport access vlan 3
switchport mode dynamic desirable
!
interface FastEthernet0/18
switchport access vlan 3
switchport mode dynamic desirable
!
interface FastEthernet0/19
switchport access vlan 4
switchport mode dynamic desirable
!
interface FastEthernet0/20
switchport access vlan 4
switchport mode dynamic desirable
!
interface FastEthernet0/21
switchport access vlan 4
switchport mode dynamic desirable
!
interface FastEthernet0/22
switchport access vlan 5
switchport mode dynamic desirable
!
interface FastEthernet0/23
switchport access vlan 5
switchport mode dynamic desirable
!
interface FastEthernet0/24
switchport access vlan 5
switchport mode dynamic desirable
!
interface GigabitEthernet0/1
switchport mode dynamic desirable
!
interface GigabitEthernet0/2
switchport mode dynamic desirable
!
interface Vlan1
no ip address
shutdown
!
interface Vlan2
ip address 192.168.200.254 255.255.255.0
!
interface Vlan3
ip address 192.168.201.254 255.255.255.0
!
interface Vlan4
ip address 192.168.202.254 255.255.255.0
!
interface Vlan5
ip address 192.168.203.254 255.255.255.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.200.8
ip http server
!
!
!
!
control-plane
!
!
line con 0
line vty 0 4
password ******
no login
line vty 5 15
password *******
no login
!
!
end

heieye104 发表于 2008-5-15 16:06:38

没有人明白遇到过这个问题吗???

heieye104 发表于 2008-5-23 17:31:30

找个问题好在了是route inside 192.168.0.0 255.255.0.0 192.168.200.254 包含了VPN对端的地址,
更改为下面三条route inside 192.168.201.0 255.255.255.0 192.168.200.254 1
route inside 192.168.202.0 255.255.255.0 192.168.200.254 1
route inside 192.168.203.0 255.255.255.0 192.168.200.254 1
页: [1]
查看完整版本: IPSEC与VLAN的通信问题(已解决)