27 2009

婚礼酒店公交路线图

Posted by Yangybcy in 日记

 

婚礼酒店公交路线图!

 

 

收藏与分享
27 2009

asa 简约配置手册

Posted by Yangybcy in CISCO

思科防火墙支持下列用户配置方式:
Console,Telnet,SSH(1.x 或者 2.0,2.0 为 7.x 新特性,PDM 的 http 方式(7.x
以后称为 ASDM)和 VMS的 Firewall Management Center。
支持进入 Rom Monitor模式,权限分为用户模式和特权模式,支持 Help,History
和命令输出的搜索和过滤。
注:Catalyst6500的 FWSM(防火墙服务模块 Firewall Service Module)没有物理
接口接入,通过下面CLI 命令进入:
Switch# session slot slot processor 1  (FWSM 所在 slot 号)
用户模式:
Firewall> 为用户模式,输入 enable 进入特权模式 Firewall#。特权模式下可以进
入配置模式,在 6.x 所有的配置都在一个全局模式下进行,7.x 以后改成和 IOS类似的
全局配置模式和相应的子模式。通过exit,ctrl-z 退回上级模式。

 

点击下载此文件

收藏与分享
27 2009

Cisco ASA Install CD v1.1

Posted by Yangybcy in CISCO

This install CD will install Cisco ASA on your HD and run it without CD.

The install works in fully native mode and in virtualized (vmware, qemu etc..).
ASA will see 256mb flash (which is HD) and you can save the configuration files.

For any further info see the included readme file.

 

DownForm:

http://rapidshare.com/files/146672236/asa_install_v1.1.rar.html  

 

Welcome to Project ASA installation!

For the HD installation you need:
* 256 MB ram minimum
* empty HD of at least 550MB in size
* HD that is set as PRIMARY MASTER
* CD-ROM
* 400 MHz or faster computer (slower should work but it’s useless)
* maximum 30 minutes of time

Hardware information:
This release is tested on Fujitsu Siemens Scenic xB which have:

1GHz Celeron P3 CPU
256MB RAM
2.2GB HD

And ASA took about 20 minutes to install but it worked perfectly, the integrated nic is recognized as Intel/Pro 100 and there was another (also Intel/pro 100) one in PCI port which also got recognized.
That worked perfectly and i got full 100 mbits transfer in nat trough the router.
show cpu showed up to 87% cpu usage on machine.
The other machine i tested was Compaq Deskpro EN and that machine didn’t worked. The ASA simply got rebooted over and over. I didn’t had NULL-MODEM cable to see what the problem is, but i’m sure that lina crashes and makes the system restart itself.

The next (2.x) release should have a large number of supported nics – almost all possible.

Cisco ASA information
* When you install Cisco ASA it will have the ip 192.168.1.1/24, so just set your computer to 192.168.1.2 / 255.255.255.0 and you will be able to telnet into the ASA (type telnet 192.168.1.1) – i recommend using putty. The telnet password is "ciscoasa", and enable password is blank. There may be problem with ssh not storing the crypto key but i didn’t look much at it since telnet works.
* The configuration is 256MB Flash that ASA sees which is in fact HD
* Configuration is NOT saved with "wr mem" but with "copy run disk0:/.private/startup-config"
* COM1 port where the console output is is configured on "115200n81" parameters

www:
http://asa_project.gromnet.net/ 

 

 

收藏与分享
26 2009

VMWare ASA AIO virtual Image

Posted by Yangybcy in 电脑网络

  

This all-in-one pack consist of vmware image that is produced on vmware 6.0.1, so this version or newer is probalby needed.

The pack is RAR, 82 MB long and has:
* Damn Small Linux (DSL) with X-Windows GUI
* GRUB Bootloader from which you can choose wheter you want to boot to ASA or Linux. ASA is chosen automatically within 3 seconds
*  HD image that consist of 2 partition: 1st partition is ASA’s HD (256MB) that is mapped in ASA to DISK0:. First partition is used to store the files (configuration and possibly ASMD), and the second is used to store ASA boot files and DSL Linux. Second partition is 60% full.
* Removed the need for CDROM – boot files straight off the HD.
* Predefined interface IPs – inside interface (e0) have ip 192.168.1.1/24 and it have enabled telnet and ssh, so you don’t need serial port to set basic settings.
* If you still want serial interface display you can use pipe – in serial port settings chose “used name pipe” “\\.\pipe\vmwaredebug”, “This end is client”, “The other end is an application”, start start_gw.bat file  that is included in ASA folder and telnet to localhost:567. Then start the virtual machine and watch the output in telnet client.

VMWare machine link:
http://rapidshare.com/files/146069496/ASA.rar.html


ShareThis

Posted under VMWare

 

This post was written by admin on September 17, 2008

Tags: , , , ,
 

86 Comments so far

  1. wayne September 18, 2008 1:55 am

    I tested it on my VMware 6. There is a problem. When I telnet from my SecurCRT and the simulator didn’t respond correctly with my TAB key and Arrow Key, and some other keys. So what problem it could be?

  2. wg4ne September 18, 2008 2:23 am

    use telnet to asa directly,but not to the pipe gateway.Tab key unuseable is because the pipe problem.

  3. wg4ne September 18, 2008 2:25 am

    http://chengongjun.spaces.live.com/blog/cns!E6C64B63F46EE49A!165.entry

    Test result of the asa vmware version.

    Tcp throughout only.

    NAT ,web vpn

    Ipsec test result will be added later.

  4. wg4ne September 18, 2008 2:32 am

    Did you manage to make it work on a real pc?
    Would you please share the creating processs of DSL version ASA ?

  5. wayne September 18, 2008 3:14 am

    Thanks. I just tryed to make it work in my VMware system and then connect to virtual routers and switches. I just downloaded your VMWare ASA AIO virtual Image and then open existing system on VMware. I didn’t make a new system.

  6. wayne September 18, 2008 4:05 am

    Does the ASDM 6.02 work here? Cas I tryed and seems the ASDM does not work now. It always says that ” Your current ASA image version 8.0(2) doesn’t support ASDM 6.0(2). But I try to put different versions of ASDM, they don’t work all.

  7. admin September 18, 2008 8:20 am

    I will get to the ASDM later on, it will probalby need hacking the ASA code and patching it so it will read false chasis id which should be one of the publiziced keys instead of “default” 1234567890.
    I didn’t tried to use image to connect to virtual routers and switches. It should work, but i didn’t tried.
    Next thing is to make it work on the real PC that i already have prepared. The real PC machine is Compaq Deskpro EN (900 MHz Intel with integrated Intel i82557 and one more PCI card in the riser’s slot). I am wondering how fast it will go as the cisco published that 5505 series can do 100mbps with 500mhz cpu. I guess that vmware’s overhead do a quite slowdowns here.
    Nice graph, wg4ne. I only tested nat troughout but you did it all. In qemu i got MUCH worser troughput with max about 1mbit/sec (with KQEMU accelerator).
    To make it installable on the real system i will prepare the install ISO which will do it all automatically. You will need 500MB HD minimum (real small, you may say).
    And for the first post, yes, there is a problem with gateway not passing the commands correctly, but, you don’t really need serial to access to asa. Simply, temporary put the ip in 192.168.1.0/24 range and access the asa via telnet or ssh and configure the whatever ip you want.

  8. wg4ne September 19, 2008 3:36 am

    I have finished the ipsec vpn one session throughput test
    http://chengongjun.spaces.live.com/blog/cns/

  9. admin September 19, 2008 11:52 am

    wg4ne, if you wish to help me with ASA i would make you the mod of the site and you can post the bandwidth tests (and other tests)

  10. wg4ne September 19, 2008 1:51 pm

    ok

  11. admin September 19, 2008 9:04 pm

    wg4ne, you must make an account first

  12. markus September 26, 2008 11:06 am

    very nice thing! I only have a problem with ASDM. I have tested 6.0(3) and 6.1(2) and all of them said: “Your ASA image has a version number 8.0(2) which is not supported by ASDM 6.0(3)” (or 6.1.(2) respectivly). Is there a known problem or do I use the wrong versions…?

  13. tess September 29, 2008 3:14 pm

    When i configure ss and telnet access the first time it works. After i turn off the asa then it doesnt work anymore. I saved the config. Does anyone have the same problem? thanks in advance

  14. Pb October 3, 2008 12:04 am

    Amazing work. I’m ready to donate money for this project, just give paypal acc. If you could fix ASDM it would be really nice.

  15. admin October 5, 2008 9:25 pm

    @markus, i’m still not come to the asdm part, i was trying to add all linux drivers – unsucessfully (which is one of the requirements for install cd 2.0) – so far i managed to make clean asa on same partition where the data is (so no need for extra boot partition, and requiremens have been reduced to 256MB HD).
    @tess, be sure NOT to save with “wr mem” but with “copy running-config disk0:/.private/startup-config” – i hope i get the path rights, wrote this from memory.
    @Pb, maybe one day :)

  16. Adam October 17, 2008 12:44 am

    Hey all. I downloaded this and am running it in vmware no worries.

    I am trying to telnet in and am prompted for a password!

    Anyone know what the password is to telnet in for the first time? Its killing me!

  17. admin October 17, 2008 8:23 am

    Try “ciscoasa”.

  18. aleks October 18, 2008 6:56 pm

    Hey all,

    I´ve downloaded (I think all packages, that are published here). But I don´t get any of them to run in my VMWare Server 2.
    Does any one of you have the same issue and perhaps a solution?

    Thanks,
    Aleks

  19. admin October 21, 2008 7:58 pm

    aleks, can you post a little more details?
    “Don’t work” doesn’t mean much.

  20. aleks October 21, 2008 9:24 pm

    Sure, as I read your comment I realized it my self.
    But this doesn´t matter now, because it works.
    I just didn´t read one special comment.
    The content was that it is normal, that after “Loading kernel …” (or something like that) nothing happens in the vm console.
    So, every thing is okay with the image.

    But there is one other thing, that some other users already mentioned.
    The asdm tool. This would be a very useful tool. Of course, it is possible to do the config via console, but it would be much easier if it would be possible to use it.

    Thanks,
    Aleks

  21. admin October 23, 2008 5:26 pm

    ASDM is possible but hard to provide as i need to crack the cisco’s code.
    I’m still stucked at the drivers…

  22. DaveM October 26, 2008 11:05 pm

    Excellent work! I just installed on my Linux box with VMware server. Had a challenge figuring out to connect to the Unix named pipe in Linux. Found this link and thought it might be helpful for others:

    http://communities.vmware.com/thread/28508

    Keep up the good work!

  23. Mike October 27, 2008 4:25 pm

    So far it just hangs at Uncompressing Linux… OK, booting the kernel.

    Admittedly, I’m trying this in VMware player. Has anybody gotten this to work in Vmware Fusion 2.0?

  24. Mike October 27, 2008 5:01 pm

    Nevermind, it works well so far (can telnet into it) in Vmware fusion in OS X. Of course, fusion doesn’t support named pipes, but I can output the serial port to a text file. Thanks for pre-configuring Telnet, otherwise I’d never get in!!

  25. admin October 28, 2008 4:37 pm

    DaveM, thnx for info.
    Mike, i’m glad you made it work… i tought that someone could have a problems with pipe so i preconfigured the telnet to ease the access.
    Many ppl get confused by that message “Uncompressing linux…” and expect console but there is no console on video card becouse real asa also need serial port to be configured and that startup output you can’t really see on real asa becouse there’s no video card, just serial port.

  26. Mike October 28, 2008 5:59 pm

    The performance is surprisingly good in vmware. Running on a 2.3Ghz Macbook Pro, I managed to get an SFTP transfer up to 52Mbit/sec with only PAT running. The packet/sec rate maxed out at 4Kpps… not bad. My vmware cpu usage topped around 80%.

    Running a plain-text FTP transfer, I was able to get just around 70Mbps w/ a pps peak of 7Kpps.

    I’m going to test VPN connectivity next.

    In case you’re interested, my logical topology is as follows:

    Macbook Pro —->Inside[ASA]Outside—-> Mac Pro

    Out of curiosity, is there a reason why the ASA only reports 128Mb RAM, even though its assigned 256Mb?

  27. admin October 29, 2008 9:32 am

    You can see the benchmark from the other guy on the native platform.
    500Mhz machine can do nearly 100mbit with just NAT and i guess it performs even better in transparent mode.
    As far as i saw from my tests qemu/pemu is very bad in producing high troughput – i have never been able to make more than 1mbit/sec even on very fast machine.

  28. lewis.hui October 31, 2008 1:17 pm

    Firstly, thanks for your good job.
    Now I find a problem. I have installed it in vmware6, but it seem that it doesn’t accept multicast packet such as ospf hello packet.Could you help me?

    Thanks,
    lewis.hui

  29. Mike October 31, 2008 3:35 pm

    The problem is with vmware, not the ASA image. I finally loaded the image on an 866Mhz PIII box w/ a bunch of e1000 NICs for testing. After modifying the initramfs images to load e1000 instead of e100 and duplicating it to an instance that would dump me in a shell, I was up and running.

    I then hooked it up to a gigabit LAN with a box running dynamips and a single router. The router and the ASA were able to exchange OSPF routes just fine and traffic was able to pass.

  30. admin October 31, 2008 10:16 pm

    Mike, can you post some of the bandwidth benchmarks using e1000 and P3/866 in native mode (especially when asa is in transparent mode becouse i assume the bw test would be best in that case)?
    There is a e1000 driver in initrd but it probalby need insmod which can be done from shell before the lina is started.
    It is quite possible that vmware doesn’t pass multicast packets out of the virtual network.

  31. lewis.hui November 18, 2008 8:43 am

    I find the network interface doesn’t work in promiscuous mode, so it doesn’t work in transparent mode.Could you help to solve it? Thanks.

  32. admin November 19, 2008 7:15 pm

    lewis.hui, can you post your running-config?

  33. trebla November 25, 2008 7:47 am

    Is there a way to add more than 2 interface? Under Qemu suppose to add upto 6 interfaces.

  34. pchelovod November 25, 2008 4:39 pm

    Really very good system.
    One problem I have found:
    user generated crypto rsa mypublic key
    cannot be saved. Command sa save all
    depricated in ASA version about 7 or 8,
    and we cannot use command write mem
    instead that because it erases startup-config. Me be somebody can tell something
    about it.

  35. admin November 25, 2008 10:24 pm

    @trebla, add the ethernet interface in the vmware config and they will show. Besides, i dunno why you need more interfaces – this is virtual machine.
    @pchelovod, the config is not saved with “write mem” becouse it doesn’t work here for some reason (media format?) instead you must copy running-config directly on flash://…..startup-config file (it’s already explained somewhere).

  36. trebla November 26, 2008 3:34 am

    I will need extra interface to perform and test a lab senario. Actually I have tried to add the interface in vmware before, but after added extra interface following error shown and the system keep rebooting.

    Total NICs found: 6
    setup_irq: irq handler mismatch

    Unable to open /proc/irq/15/irq error: Device or resource busy
    Panic: kernel – intr_establish: open interupt descriptor irq 15

    ———————————————–
    Traceback output aborted.
    Flushing first exception frame:
    Abort: Assert failure
    vector 0×00000000
    edi 0×0000000f
    esi 0xd524b7b0
    ebp 0xd4bf7658
    esp 0xd4bf764c
    ebx 0×000000cd
    edx 0xd4bf7690
    ecx 0×00000006
    eax 0×00000000
    error code n/a
    eip 0xdd6a72a1
    cs 0×00000073
    eflags 0×00000246
    CR2 0×00000000
    Nested traceback attempted via signal, from:
    Page fault: Address not mapped
    vector 0×0000000e
    edi 0xd4bf70db
    esi 0xd4bf70bf
    ebp 0xd4bf6fe8
    esp 0xd4bf6fa0
    ebx 0xd4bf70bf
    edx 0×08acd5d8
    ecx 0×00000000
    eax 0×00000000
    error code 0×00000004
    eip 0×0805ee77
    cs 0×00000073
    eflags 0×00010286
    CR2 0×00000084

    An internal error occurred. Specifically, a programming assertion was
    violated. Copy the error message exactly as it appears, and get the
    output of the show version command and the contents of the configuration
    file. Then call your technical support representative.

    assertion “_vf_mode_init” failed: file “vf_api.c”, line 99

    Rebooting….

  37. tron November 28, 2008 5:57 pm

    The issue of not being able to write to flash the configuration also makes it difficult to
    change the mode.
    Anybody knows a work arround ?

  38. admin November 28, 2008 9:01 pm

    @trebla, for lab tests better use pemu – it works much slower but more accurate
    @tron, instead of doing wr mem copy the running config over the startup config. It’s already explained.

  39. tron November 30, 2008 6:27 pm

    I know how to write mem using copy… (I read it in this forum :)
    The problem is that when you change modes from single to multiple, the writing is done automatically, not by your command.
    And as the write fails, the mode change
    is aborted.
    Has anybody successfully changed the ASA to multiple context mode ?

  40. RYErnest December 1, 2008 9:54 am

    Nice post u have here :D Added to my RSS reader

  41. Alade Adeyemi December 3, 2008 9:30 am

    Good work. I installed ASA_install_V1 on a PC and it was successful. Everything as far as i have tested worked fine expect save command. However, I want to install VMWARE ASA version so that i can run it on my PC without the need to have separate machine dedicated for it but i dont know how to go about it. Is there anyone with a clue of how to do this?

  42. admin December 3, 2008 11:47 pm

    Easiest way for you is to download this virtual image and vmware player. In vmware player just add the asa vmware image you download earlier and start. It’s as simple as that.

  43. Bastien December 5, 2008 1:10 am

    Hi, I’ve tried the vm under VMWare workstation 6, under Win XP and Ubuntu 8.04, and I’m always stuck at the booting the kernel.

    Any idea ?

  44. Alade Adeyemi December 5, 2008 1:06 pm

    I have a windows Xp installed on my PC as host and Cisco Asa as guest running on virtualbox 2.1.0.6. The installation was successful. How can i get the two communicating together because as it is now I can only ping the inside address of the ASA from the host OS. I couldn’t telnet to the device using either host terminal or PUTTY. I tried using Tera Term but no luck.Please, advice on what to do.

  45. admin December 5, 2008 5:41 pm

    @Bastien: That is normal and expected. Your ASA is probalby working. Read other posts please.
    @Alade: Download this -> http://l4ka.org/tools/vmwaregateway.php and start it with vmwaregateway.exe /t. In virtual machine config check if there’s serial port emulation and “named pipe” to \\.\pipe\vmwaredebug, direction client – application. Then telnet to port 4444 and start ASA. This will help you communicate with ASA serial ports trough telnet.

  46. Anon December 5, 2008 5:44 pm

    It is possible to use the ASA in multiple context mode, however you must execute lina directly with the m (for multiple context mode) flag as follows:

    lina -m

    In order to change back to single mode, you’ll have to restart the process, obviously, without the m flag or execute lina_monitor.

  47. bastien December 8, 2008 3:29 pm

    Thanks, i’ll try it :)

  48. bastien December 8, 2008 3:37 pm

    Hi, do you know how to use console port under vmware in linux ?
    I’ll found this:
    http://www.virtualization.info/2006/03/tech-accessing-serial-console-on.html and this:
    http://communities.vmware.com/thread/28508
    but before I’ll take a look on that maybe someone did already :)

  49. admin December 8, 2008 7:59 pm

    As i already explained in previous posts, for console which is on serial port you need vmwaregateway. When you start vmware your serial port settings must point to shared vmwaregateway pipe. Then you connect with telnet to pipe on localhost (127.0.0.1:4444) and that’s it.
    You can find around here detailed explanation.

  50. Olechka-persik December 9, 2008 7:01 pm

    Огромное спасибо за потрясающие идеи!!! Буду следить за блогом, много всего интересного. А мой блог о науке, надеюсь, тоже понравится ;)

  51. bastien December 9, 2008 11:25 pm

    Hi, when using vmwaregateway every key strike is sent two times to the asa. I’d rather use it under linux, you just have to create a named pipe, telling you’re server, and the other end is application, then it’ll create the file in your virtual machine dir, then just type it (in the vm dir):
    sudo socat unix-connect:serialasa stdio,echo=0,raw

    if you named the pipe serialasa, and it works well under ubuntu (just install socat :) )

  52. Pavel December 13, 2008 12:25 am

    óäèâèëî, ÷òî ïðî÷èòàë îá ýòîì èìåííî ñåé÷àñ

  53. блогик December 13, 2008 3:28 pm

    кто хочет меняться ссылками, пишите

  54. Lena December 14, 2008 4:11 pm

    я люблю все ваши слова..

  55. Rano December 16, 2008 5:51 pm

    èíòåðåñíî)) ÿ êàê ðàç ïîñìîòðåë ñåé÷àñ 3+2, òàê íàñìåÿëñÿ)) âñåì ðåêîìåíäóþ âñïîìíèòü

  56. Liya December 16, 2008 6:37 pm

    ÷òî æå òàì ñìåøíîãî?

  57. Opel December 16, 2008 7:47 pm

    нам что-то похожее препод вчера в универе рассказывал, на самом деле тема интересная

  58. Чудо December 17, 2008 9:00 pm

    вот спамеров то развелось

  59. Чудо December 19, 2008 12:50 pm

    зато правда все написано

  60. BypeBrert December 27, 2008 10:53 pm

    Незадолго до налета ВВС из в направлении Израиля было выпущено 60 и минометных снарядов, упала в районе израильских и Нетивот Военная операция в секторе Газа, конец обстрелам со стороны палестинских ни простой, ни быстрой,
    Боевики ракетами территорию Израиля армии на cektop Газа, сообщает.

  61. BypeBrert December 30, 2008 1:50 am

    Незадолго до налета ВВС из Газа Израиля было выпущено ракет и минометных снарядов, упала в районе израильских и Нетивот Военная операция в секторе Газа, должна обстрелам со стороны боевиков, ни простой, ни сказал министр
    Боевики движения территорию Израиля на авианалет на cektop AFP.

  62. agopAssupes December 30, 2008 2:01 am

    госкомитета rpynna Украины труда и расследовавшая причины в причиной не ctatb неисправность

  63. johnny December 30, 2008 8:45 pm

    lx2VDi Thanks for good post

  64. stapy January 2, 2009 11:16 pm

    the DSL is working but the ASA is nt … it gives me “uncompressing linux ….ok , booting the kernal” and nothing happened , please help me with this cause i m studying the CCSP and i need this simulation alot
    thanks in advance

  65. stapy January 3, 2009 12:02 am

    the enable password pleaseeeee

  66. manjalisg61 January 4, 2009 2:53 am

    Nice post.

  67. dunstankarynet87 January 4, 2009 2:14 pm

    Nice post.

  68. lauratbloomingrose January 4, 2009 2:43 pm

    Keep on blogging! :)

  69. Gemeseete January 6, 2009 1:49 am

    экспертная rpynna промышленной охране и горному причины в причиной не ctatb оборудования

  70. stapy January 7, 2009 1:13 pm

    i need the enable password please, any1 can help me ?

  71. admin January 7, 2009 7:58 pm

    password is already posted on this page

  72. Bastien January 8, 2009 12:23 am

    “Anon December 5, 2008 5:44 pm

    It is possible to use the ASA in multiple context mode, however you must execute lina directly with the m (for multiple context mode) flag as follows:

    lina -m”

    How to do so ? Thanks.

  73. stapy January 8, 2009 1:32 am

    thanks admin, i got them and thanks for this post … its good chance to increase our experiance in using asa

  74. Albert January 9, 2009 8:55 am

    Thanks I got it working, how is the SDM,WebVPN and Multiple Eth support coming along?

    wich ASA gives better performance on PC (DSL ASA or QEMU ASA ? thanks.

  75. admin January 11, 2009 3:57 pm

    QEMU ASA is an emulation and it’s very slow. Network is alot slower (up to 40x).
    VMWare is emulation too but better than QEMU.
    More eth and WebVPN depends on the license.

  76. Blogia January 18, 2009 12:56 am

    OS My auto was broken on road. Must I call to service or 911?

  77. Jay January 18, 2009 6:26 am

    How do you increase the memory beyond 128Meg ? Without any config, the memory used is already 100meg. Could I update it to the latest ASA OS ? Seems like it’s limited to 8.02. Thanks.

  78. admin January 18, 2009 2:52 pm

    ASA works with 256MB from which some of the memory is taken by OS/Lina.
    IMO 128MB free is OK, as many software routers are fine with only 32MB.
    You can also do most things with that much memory.

  79. Juniper Hacks January 30, 2009 4:18 am

    Tcp named pipes is much better than vmware gateway, you connect to multiple virtual serial devices, even remotely.

    http://shvechkov.tripod.com/nptp.html

  80. VS February 5, 2009 8:09 pm

    Hello,
    Is it possible to change somewhere the Asa Serial number?

  81. admin February 6, 2009 7:49 pm

    It is possible, but not easily.
    You must change the code of the lina to be able to do it. That requires lina disassembling.

  82. stapy February 14, 2009 1:49 pm

    dear admin
    i tried to ssh to asa using putty but it doesnt work … can u please advice?

  83. Tejer February 20, 2009 6:55 pm

    Has anyone been able to get ASDM to work with this ASA ?

  84. stapy March 6, 2009 3:44 pm

    hey admin
    is there any news about asdm?

  85. Piffer March 19, 2009 7:18 am

    Thanks! I’m running VMWare 2.0 and was able to fire this VM up, and change the IP so that I could ping devices on both ends. (LAN)–(HostOnlyNet)-. Some issues with writing the config, but I’ll work on that later, for now I can just update the running config from the VM with a config file. A few hours with this and I should be able to do some testing.
    By the way, did anyone have issues with setting up WebVPN as a GroupPolicy setting?
    Thanks again.
    -P

  86. stapy March 19, 2009 10:44 am

    it will be great if u support us with ASDM cause its really v. important experiance …thanks in advance

Trackbacks

Leave a Comment

 

Name (required)

Email (required)

Website

Previose Post: ASA Live Image

 

收藏与分享
21 2009

成功的在本Blog中引用 最新电影 推荐

Posted by Yangybcy in 日记

庆祝一下!!!!



郁闷我的是这BLOG是UTF-8编码的。最开始我用Gb2312输出后,显示在页面上为乱码!  郁闷死我了!



最后改为UTF-8输出才解决这一问题!



如果大家有兴趣引用本站的 电影资源 可以用下面的方式引用 !




引用地址:http://movie.ghitr.com/plugins/movie_html.asp
参数1:action=transfer
参数2:sourceurl = YouURL         这儿写你自己网站的地址
参数3:num    显示数量
参数4:width    图片宽度
参数5:height    图片高度



一个引用示例:http://movie.ghitr.com/Plugins/movie_html.asp?action=transfer&sourceurl=blog.ghitr.com&num=5




HTML代码


[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
收藏与分享
20 2009

EZVPN LABS-(3)Cisco IOS Easy VPN Remote with Clien

Posted by Yangybcy in CISCO

因正在做用sdm 做EZVPN实验。结果百度到这篇文章!

但我没有测试成功!

 

但至少知道了一点:区分大小写!

 

   

EZVPN LABS-(3)Cisco IOS Easy VPN Remote with Client Mode and Split Tunneling

1) 概述

Split Tunneling(隧道分离)技术主要是用来区分流量的,那区分什么流量呢?在本实验中主要是用来区分去往Internet的流量和要通过VPN加密传输的流量。在实验中我们先不采用隧道分离技术,我们能看到Client端在成功建立VPN连接后,不能访问Server端的内部网络,也不能访问Internet了,要解决这个问题,为了达到Client端能同时访问Server端的内部网络和Internet网络的效果我们应该如何解决呢?那就往下看吧!

2) 实验环境

本人使用Dynamips模拟了两台3640的路由器和一台7200的路由器,IOS版本分别为c7200-advsecurityk9-mz.124-11.T和c3640-ik9o3s-mz.124-10。把一台7200(ISP)的以太网接口和一台3640(EZVPN-Client)分别桥接到了物理的网卡上和真实的主机相连。具体的拓扑结构和IP地址划分如下:

具体的.net文件如下:

autostart = false

[localhost]
port = 7200
udp = 10000
workingdir = ../tmp/
   
    [[router R1]]
    image = ../ios/unzip-c3640-ik9o3s-mz.124-10.bin
    model = 3640
    console = 3001
    ram = 128
    confreg = 0×2142
    exec_area = 64
    mmap = False
    slot1 = NM-4T
    slot0 = NM-1FE-TX
    s1/2 = R3 S1/0
    f0/0 = NIO_udp:30000:127.0.0.1:20000

    [[router R2]]
    image = ../ios/unzip-c3640-ik9o3s-mz.124-10.bin
    model = 3640
    console = 3002
    ram = 128
    confreg = 0×2142
    exec_area = 64
    mmap = False
    slot1 = NM-4T
    slot0 = NM-1FE-TX
    s1/2 = R3 S1/1
    f0/0 = NIO_gen_eth:/Device/NPF_{A6FCF818-D943-4CC2-B462-085AF2946D71}

    [[router R3]]
    image = ../ios/unzip-c7200-advsecurityk9-mz.124-11.T.bin
    model = 7200
    console = 3003
    npe = npe-400
    ram = 128
    confreg = 0×2142
    exec_area = 64
    mmap = false
    slot0 = PA-C7200-IO-FE
    slot1 = PA-4T
    f0/0 = SW1 1

    [[ethsw SW1]]
    1 = dot1q 1
    2 = access 1 NIO_gen_eth:/Device/NPF_{3A6BB436-2962-4893-8335-211D3AE3471C}

3) 实验的目的
通过使用Split Tunneling技术,使Client端内网的VPC能同时访问Server端内部网络和Internet网的WEB服务器。

4) 基本实验环境的配置和测试

在这一步我们将配置路由器的基本连通性和一些基本的配置命令以达到Server端和Clinet端能正常访问Internet WEB服务器的效果,并用ping测试。

EZVPN-Server的基本配置

interface serial 1/2
ip address 220.1.3.2 255.255.255.0
no shutdown
exit

interface fastethernet 0/0
ip address 10.1.1.1 255.255.255.0
no keepalive
no shutdown
exit

access-list 1 permit 10.1.1.0 0.0.0.255

ip nat inside source list 1 interface serial 1/2 overload

interface fastethernet 0/0
ip nat inside
exit

interface serial 1/2
ip nat outside
exit

ip route 0.0.0.0 0.0.0.0 serial 1/2
EZVPN-Client的基本配置

interface serial 1/2
ip address 220.1.1.2 255.255.255.0
no shutdown
exit

interface fastethernet 0/0
ip address 192.168.10.1 255.255.255.0
no shutdown
exit

access-list 1 permit 192.168.10.0 0.0.0.255

ip nat inside source list 1 interface serial 1/2 overload

interface fastethernet 0/0
ip nat inside
exit

interface serial 1/2
ip nat outside
exit

ip route 0.0.0.0 0.0.0.0 serial 1/2

ISP的基本配置

interface serial 1/0
ip address 220.1.3.1 255.255.255.0
no shutdown
exit

interface serial 1/1
ip address 220.1.1.1 255.255.255.0
no shutdown
exit

interface fastethernet 0/0
ip address 220.1.2.1 255.255.255.0
no shutdown
exit

在EZVPN-Client(PC)进行测试:

C:/Documents and Settings/cx>ping 220.1.2.2

Pinging 220.1.2.2 with 32 bytes of data:

Reply from 220.1.2.2: bytes=32 time=248ms TTL=126
Reply from 220.1.2.2: bytes=32 time=44ms TTL=126
Reply from 220.1.2.2: bytes=32 time=80ms TTL=126
Reply from 220.1.2.2: bytes=32 time=562ms TTL=126

Ping statistics for 220.1.2.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 44ms, Maximum = 562ms, Average = 233ms

测试结果表明Client端内网用户通过NAT技术能够正常访问Internet WEB服务器。

在EZVPN-Server(VPC)进行测试:

VPCS 1 >ping 220.1.2.2
220.1.2.2 icmp_seq=1 time=166.000 ms
220.1.2.2 icmp_seq=2 time=208.000 ms
220.1.2.2 icmp_seq=3 time=47.000 ms
220.1.2.2 icmp_seq=4 time=165.000 ms
220.1.2.2 icmp_seq=5 time=147.000 ms

测试结果表明Server端内网用户通过NAT技术能够正常访问Internet WEB服务器。

5) Easy VPN For Split Tunneling的配置

EZVPN-Server的配置(不启用split tunneling)

ip local pool Remote-Pool 172.16.1.200 172.16.1.250

username cisco password cisco

aaa new-mode

aaa authentication login lab-remote-access local
crypto isakmp xauth timeout 30

aaa authorization network vpn-group local

crypto isakmp enable
crypto isakmp policy 10
authentication pre-share
encryption 3des
group 2
exit

crypto isakmp client configuration group test
key VPNKEY
domain cisco.com
pool Remote-Pool
exit

crypto ipsec transform-set VPNTRANSFORM esp-3des esp-sha-hmac
exit

crypto dynamic-map Dynamic-Map 10
set transform-set VPNTRANSFORM
reverse-route
exit

crypto map ClientMap client authentication list lab-remote-access
crypto map ClientMap client configuration address respond
crypto map ClientMap isakmp authorization list vpn-group
crypto map ClientMap 65535 ipsec-isakmp dynamic Dynamic-Map

interface serial 1/2
crypto map ClientMap
exit

crypto isakmp keepalive 20 10

EZVPN-Clinet的配置

crypto ipsec client ezvpn test-Client
group test key VPNKEY
peer 220.1.3.2
mode client
connect auto
username cisco password cisco
xauth userid mode local
exit

interface serial 1/2
crypto ipsec client ezvpn test-Client
exit

interface fastethernet 0/0
crypto ipsec client ezvpn test-Client inside
exit

在EZVPN-Client端测试

EZVPN-Client#show crypto ipsec client ezvpn
Easy VPN Remote Phase: 4

Tunnel name : test-Client
Inside interface list: FastEthernet0/0
Outside interface: Serial1/2
Current State: IPSEC_ACTIVE
Last Event: SOCKET_UP
Address: 172.16.1.200
Mask: 255.255.255.255
Default Domain: cisco.com
Save Password: Disallowed
Current EzVPN Peer: 220.1.3.2

我们看见VPN建立成功,接下来到PC上测试

C:/Documents and Settings/cx>ping 10.1.1.2

Pinging 10.1.1.2 with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 10.1.1.2:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)

C:/Documents and Settings/cx>ping 220.1.2.2

Pinging 220.1.2.2 with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 220.1.2.2:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)

这个时候我们发现Client端内部的PC即不能访问Server端内网也不能访问外网了,这是为什么呢?那我们先来看看为什么不能访问外网。
首先我们在Client端内部的PC上使用tracert命令跟踪一下数据包
C:/Documents and Settings/cx>tracert 220.1.2.2
Tracing route to 220.1.2.2 over a maximum of 30 hops
  1    13 ms    51 ms    64 ms  192.168.10.1
  2   242 ms   160 ms   107 ms  220.1.3.2
  3     *        *        *     Request timed out.
  4     *        *        *     Request timed out.
  5     *        *        *     Request timed out.
我们可以看见去往外网的下一跳为220.1.3.2,这个地址刚好是Server端的公网IP地址,而并没有走正常的NAT,造这个问题的原因正是应为没有启用隧道分离,Client端路由器把所有的数据包都放到隧道当中传输了。为了解决这个问题我们在Server端路由器上加入如下命令启用隧道分离。
access-list 100 permit ip 10.1.1.0 0.0.0.255 any
crypto isakmp client configuration group test
acl 100

接下来在Client端重新建立VPN连接并测试。
clear crypto session    清除原有的VPN连接
Mar 30 14:52:19.935: EZVPN(test-Client): Pending XAuth Request, Please enter the following command:
Mar 30 14:52:19.939: EZVPN: crypto ipsec client ezvpn xauth
     应为启用了XAUTH认证,所以在连接重置后要求重新输入用户名和密码
     使用show crypto ipsec client ezvpn查看隧道建立是否成功是否启用了隧道分离
EZVPN-Client#show crypto ipsec client ezvpn
Easy VPN Remote Phase: 4
Tunnel name : test-Client
Inside interface list: FastEthernet0/0
Outside interface: Serial1/2
Current State: IPSEC_ACTIVE
Last Event: SOCKET_UP
Address: 172.16.1.201
Mask: 255.255.255.255
Default Domain: cisco.com
Save Password: Disallowed
Split Tunnel List: 1
       Address    : 10.1.1.0
       Mask       : 255.255.255.0
       Protocol   : 0×0
       Source Port: 0
       Dest Port  : 0
Current EzVPN Peer: 220.1.3.2
    可以看见隧道建立成功并启用隧道分离,让我在到Client端的PC上测试
C:/Documents and Settings/cx>ping 220.1.2.2
Pinging 220.1.2.2 with 32 bytes of data:
Reply from 220.1.2.2: bytes=32 time=361ms TTL=126
Reply from 220.1.2.2: bytes=32 time=102ms TTL=126
Reply from 220.1.2.2: bytes=32 time=43ms TTL=126
Reply from 220.1.2.2: bytes=32 time=305ms TTL=126
Ping statistics for 220.1.2.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 43ms, Maximum = 361ms, Average = 202ms

C:/Documents and Settings/cx>ping 10.1.1.2
Pinging 10.1.1.2 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 10.1.1.2:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
    从测试结果上来看我们解决了上外网的问题,但是为什么还是不能访问Server端内部网络呢?我们在Client端使用show ip nat translation
EZVPN-Client#show ip nat translation
Pro Inside global      Inside local       Outside local      Outside global
icmp 172.16.1.201:512  192.168.10.2:512   10.1.1.2:512       10.1.1.2:512
从show命令当中我们发现当我们发送数据包去往10.1.1.0段时,Client端路由器进行了PAT地址翻译,这个刚好符合我们前面所讲过的client模式下EZVPN-Client会自动创建一个loopback口,当有用户需要访问EZVPN-Server后面的主机时,EZVPN-Client会自动用loopback接口的地址做PAT的原理。那也证明我们去网10段是没有问题的了,那问题是不是出在Server端呢,是不是因为Server端不能正常的把数据包送回来而导致Client端PC不能访问Server端内部网络呢?
    我们先看看Server端路由有没有问题
EZVPN-Server#show 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 0.0.0.0 to network 0.0.0.0

C    220.1.3.0/24 is directly connected, Serial1/2
     172.16.0.0/32 is subnetted, 1 subnets
S       172.16.1.201 [1/0] via 220.1.1.2
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, FastEthernet0/0
S*   0.0.0.0/0 is directly connected, Serial1/2
我们发现去往172.16.1.0段的路由存在,路由没有问题,那问题出现在哪里呢?我们再回想一下我们在Server端的配置,为了能够实现Server端内部主机能够访问Internet,我们在Server端路由器上配置了NAT,配置命令如下:

access-list 1 permit 10.1.1.0 0.0.0.255
ip nat inside source list 1 interface serial 1/2 overload

我们发现访问控制列表1中定义了源地址为10.1.1.0的所有主机都要被翻译出去,也就是说当Server端内部主机想要回应172.16.1.0这个段的主机时,回应数据包在进入Server端路由器时因为满足被翻译的条件,所以就不能被送回给172.16.1.0的主机了,那我们怎么解决呢,我的解决办法就是修改访问控制列表1,首先把访问控制列表1删除,然后定义扩展访问控制列表111,指定原地址为10.1.1.0的到达目的地址为172.16.1.0的数据包不要被NAT翻译,其它所有数据包都将被翻译,具体命令如下:

no access-list 1

no ip nat inside source list 1 interface serial 1/2 overload

access-list 111 deny ip 10.1.1.0 0.0.0.255 172.16.1.0 0.0.0.255
access-list 111 permit ip any any

ip nat inside source list 111 interface serial 1/2 overload
    修改完配置命令并重置VPN连接后,我们再到Client端的PC上来做测试。

C:/Documents and Settings/cx>ping 10.1.1.2

Pinging 10.1.1.2 with 32 bytes of data:

Reply from 10.1.1.2: bytes=32 time=242ms TTL=124
Reply from 10.1.1.2: bytes=32 time=319ms TTL=124
Reply from 10.1.1.2: bytes=32 time=344ms TTL=124
Reply from 10.1.1.2: bytes=32 time=270ms TTL=124

Ping statistics for 10.1.1.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 242ms, Maximum = 344ms, Average = 293ms

C:/Documents and Settings/cx>ping 220.1.2.2

Pinging 220.1.2.2 with 32 bytes of data:

Reply from 220.1.2.2: bytes=32 time=340ms TTL=126
Reply from 220.1.2.2: bytes=32 time=161ms TTL=126
Reply from 220.1.2.2: bytes=32 time=159ms TTL=126
Reply from 220.1.2.2: bytes=32 time=268ms TTL=126

Ping statistics for 220.1.2.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 159ms, Maximum = 340ms, Average = 232ms

    我们发现这个时候我们既能访问Server端内部网络又能访问外网了,哈哈实验结束!

6) 实验扩展

接着这个实验平台我们再来看看Easy VPN Remote With Network-extension
Mode下使用Split Tunneling。

EZVPN-Server的配置(同样先不启用split tunneling)

interface serial 1/2
ip address 220.1.3.2 255.255.255.0
no shutdown
exit

interface fastethernet 0/0
ip address 10.1.1.1 255.255.255.0
no keepalive
no shutdown
exit

access-list 1 permit 10.1.1.0 0.0.0.255

ip nat inside source list 1 interface serial 1/2 overload

interface fastethernet 0/0
ip nat inside
exit

interface serial 1/2
ip nat outside
exit

ip route 0.0.0.0 0.0.0.0 serial 1/2

ip local pool Remote-Pool 172.16.1.200 172.16.1.250

username cisco password cisco

aaa new-mode

aaa authentication login lab-remote-access local
crypto isakmp xauth timeout 30

aaa authorization network vpn-group local

crypto isakmp enable
crypto isakmp policy 10
authentication pre-share
encryption 3des
group 2
exit

crypto isakmp client configuration group test
key VPNKEY
domain cisco.com
pool Remote-Pool
exit

crypto ipsec transform-set VPNTRANSFORM esp-3des esp-sha-hmac
exit

crypto dynamic-map Dynamic-Map 10
set transform-set VPNTRANSFORM
reverse-route
exit

crypto map ClientMap client authentication list lab-remote-access
crypto map ClientMap client configuration address respond
crypto map ClientMap isakmp authorization list vpn-group
crypto map ClientMap 65535 ipsec-isakmp dynamic Dynamic-Map

interface serial 1/2
crypto map ClientMap
exit

crypto isakmp keepalive 20 10

EZVPN-Client的配置

interface serial 1/2
ip address 220.1.1.2 255.255.255.0
no shutdown
exit

interface fastethernet 0/0
ip address 192.168.10.1 255.255.255.0
no shutdown
exit

access-list 1 permit 192.168.10.0 0.0.0.255

ip nat inside source list 1 interface serial 1/2 overload

interface fastethernet 0/0
ip nat inside
exit

interface serial 1/2
ip nat outside
exit

ip route 0.0.0.0 0.0.0.0 serial 1/2

crypto ipsec client ezvpn test-Client
group test key VPNKEY
peer 220.1.3.2
mode network-extension
connect auto
username cisco password cisco
xauth userid mode local
exit

interface serial 1/2
crypto ipsec client ezvpn test-Client
exit

interface fastethernet 0/0
crypto ipsec client ezvpn test-Client inside
exit

ISP的配置

interface serial 1/0
ip address 220.1.3.1 255.255.255.0
no shutdown
exit

interface serial 1/1
ip address 220.1.1.1 255.255.255.0
no shutdown
exit

interface fastethernet 0/0
ip address 220.1.2.1 255.255.255.0
no shutdown
exit

接下来到Client路由器上检查VPN建立情况。

EZVPN-Client#show crypt ipsec client ezvpn
Easy VPN Remote Phase: 4

Tunnel name : test-Client
Inside interface list: FastEthernet0/0
Outside interface: Serial1/2
Current State: IPSEC_ACTIVE
Last Event: SOCKET_UP
Default Domain: cisco.com
Save Password: Disallowed
Current EzVPN Peer: 220.1.3.2

    在Server端查看路由表。

EZVPN-Server#show 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 0.0.0.0 to network 0.0.0.0

C    220.1.3.0/24 is directly connected, Serial1/2
S    192.168.10.0/24 [1/0] via 220.1.1.2
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, FastEthernet0/0
S*   0.0.0.0/0 is directly connected, Serial1/2

在网络扩展模式中应为不需要PAT,所以VPN连通后就相当与一个内部局域网,所以在show crypto ipsec client ezvpn结果中没有看到从服务器端地址池中获取到的IP地址因为现在不需要了。那这个时候Server端如何访问Client端的网络呢,因为在Server端配置了Revers-route,Server上会自动创建指向Remote内部网络的静态路由。 接下来我们在Client端的PC上测试连通性。

C:/Documents and Settings/cx>ping 220.1.2.2
Pinging 220.1.2.2 with 32 bytes of data:
Reply from 220.1.2.2: bytes=32 time=149ms TTL=126
Reply from 220.1.2.2: bytes=32 time=124ms TTL=126
Reply from 220.1.2.2: bytes=32 time=127ms TTL=126
Reply from 220.1.2.2: bytes=32 time=149ms TTL=126

Ping statistics for 220.1.2.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 124ms, Maximum = 149ms, Average = 137ms

C:/Documents and Settings/cx>ping 10.1.1.2
Pinging 10.1.1.2 with 32 bytes of data:
Reply from 220.1.1.1: Destination host unreachable.
Reply from 220.1.1.1: Destination host unreachable.
Reply from 220.1.1.1: Destination host unreachable.
Reply from 220.1.1.1: Destination host unreachable.

Ping statistics for 10.1.1.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

我们发现Client端PC能正常访问Internet但不能通过VPN访问Server端内网。为什么呢?我们在PC机上跟踪一下数据包。

C:/Documents and Settings/cx>tracert 220.1.2.2
Tracing route to 220.1.2.2 over a maximum of 30 hops
  1    88 ms    47 ms    46 ms  192.168.10.1
  2    80 ms   100 ms   184 ms  220.1.1.1
  3    72 ms    81 ms   236 ms  220.1.2.2

Trace complete.

C:/Documents and Settings/cx>tracert 10.1.1.2
Tracing route to 10.1.1.2 over a maximum of 30 hops
  1    16 ms    27 ms    46 ms  192.168.10.1
  2   132 ms    50 ms    70 ms  220.1.1.1
  3  220.1.1.1  reports: Destination host unreachable.

Trace complete.

    通过跟踪发现他们出去的下一跳地址都是220.1.1.1,就是说数据包都没有经过VPN隧道传输,而是直接走了PAT,通过在Client端show ip nat translation得以证明。

EZVPN-Client#show ip nat translations     
Pro Inside global      Inside local       Outside local      Outside global
icmp 220.1.1.2:512     192.168.10.2:512   10.1.1.2:512       10.1.1.2:512
icmp 220.1.1.2:512     192.168.10.2:512   220.1.2.2:512      220.1.2.2:512

    所以能ping通Internet WEB就很正常了,但是ping 10.1.1.2的数据包由于被送到了ISP路由器,而ISP路由器上没有到达10.1.1.0网段的路由,所以返回目的地不可达的回应。那怎么解决这个问题呢,可能这个时候我们想到那就用隧道分离不就可以了吗?那我们来试试看,首先在Server端加上隧道分离的命令,如下:

access-list 100 permit ip 10.1.1.0 0.0.0.255 any

crypto isakmp client configuration group test
acl 100

接下来在Client端重新建立VPN连接并测试。
clear crypto session    清除原有的VPN连接
Mar 30 14:52:19.935: EZVPN(test-Client): Pending XAuth Request, Please enter the following command:
Mar 30 14:52:19.939: EZVPN: crypto ipsec client ezvpn xauth
     应为启用了XAUTH认证,所以在连接重置后要求重新输入用户名和密码
     使用show crypto ipsec client ezvpn查看隧道建立是否成功是否启用了隧道分离

EZVPN-Client#show crypt ipsec client ezvpn
Easy VPN Remote Phase: 4

Tunnel name : test-Client
Inside interface list: FastEthernet0/0
Outside interface: Serial1/2
Current State: IPSEC_ACTIVE
Last Event: SOCKET_UP
Default Domain: cisco.com
Save Password: Disallowed
Split Tunnel List: 1
       Address    : 10.1.1.0
       Mask       : 255.255.255.0
       Protocol   : 0×0
       Source Port: 0
       Dest Port  : 0
Current EzVPN Peer: 220.1.3.2
    我们看见隧道分离建立成功,接下来在PC端测试。

C:/Documents and Settings/cx>ping 10.1.1.2
Pinging 10.1.1.2 with 32 bytes of data:
Reply from 220.1.1.1: Destination host unreachable.
Reply from 220.1.1.1: Destination host unreachable.
Reply from 220.1.1.1: Destination host unreachable.
Reply from 220.1.1.1: Destination host unreachable.

Ping statistics for 10.1.1.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

测试结果还是目的不可达,为什么呢?这里我个人是这样理解的,首先我们在服务器和客户端上都启用了NAT功能,当Easy VPN Client工作在Easy VPN Remote Client模式下时,EZVPN-Client会自动创建一个loopback口,当有用户需要访问EZVPN-Server后面的主机时,EZVPN-Client会自动用loopback接口的地址做PAT,这个时候Easy VPN Client自动创建的PAT要优先于我们手动配置的NAT,当不匹配PAT时再匹配NAT,所以Client模式下默认EZVPN-Client端内网的PC ping不通外网,因为所有的数据包都被送到隧道里面去了,并没有送到外网,所以当启用隧道分离后就能解决这个问题了。而当Easy VPN Client工作在Easy VPN Remote network-extension模式下时,EZVPN-Client不需要创建PAT,当VPN连通后就相当与一个内部局域网。这个时候在EZVPN-Client端上只有一个我们手动配置的NAT,所以当数据包进入路由器的时候,还没有来得及把数据包送到隧道里面就先被NAT翻译出去了,所以也就导致在这个模式下,能ping通外网WEB,但不能ping通对端内网的PC。这个时候即使我们在服务器上启用了隧道分离技术也没有用,因为数据包先被NAT出去了。要解决这个问题我们只能在EZVPN-Client上更改NAT的配置,告诉NAT哪些数据包要NAT出去,哪些不要被NAT,并把EZVPN-Server上有关隧道分离的命令删除,具体修改配置如下:

EZVPN-Server端

no access-list 100 permit ip 10.1.1.0 0.0.0.255 any
crypto isakmp client configuration group test
no acl 100
EZVPN-Client端

no access-list 1 permit 192.168.10.0 0.0.0.255
access-list 111 deny ip 192.168.10.0 0.0.0.255 10.1.1.0 0.0.0.255
access-list 111 permit ip any any
ip nat inside source list 111 interface serial 1/2 overload

    在Client端PC机上测试。

C:/Documents and Settings/cx>ping 10.1.1.2

Pinging 10.1.1.2 with 32 bytes of data:

Reply from 10.1.1.2: bytes=32 time=242ms TTL=124
Reply from 10.1.1.2: bytes=32 time=319ms TTL=124
Reply from 10.1.1.2: bytes=32 time=344ms TTL=124
Reply from 10.1.1.2: bytes=32 time=270ms TTL=124

Ping statistics for 10.1.1.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 242ms, Maximum = 344ms, Average = 293ms

   

收藏与分享
18 2009

IS-IS概述

Posted by Yangybcy in 电脑网络

IS-IS概述
    1.无路由环路。
    2.可应用于大规模网络。
 3.路由快速更新和收敛
 4.支持区域划分
 5.支持组播地址发送
 6.支持可变长子网掩码(VLSM)
 7.工作在网络层次结构的第二层-数据链路层
 8.支持两种网络层次模型–OSI和TCP/IP
 9.支持区域平移,分割和合并而不中断业务

IS-IS基本概念
 IS:中间系统(intermediate system),类似于IP网的路由器。
 ES:终端系统(end system),类似于IP网的主机
 CLNS:无连接的网络服务(connectionless network service),类似于IP服务
 CLNP:无连接的网络协议(Connectionless network protocol),类似于IP协议
 IS-IS:运行在中间系统与中间系统之间的一种路由协议。
 ES-IS:运行在终端系统和中间系统之间的路由协议。类似于TCP、IP协议 族中的ARP和ICMP。
 PDU:包数据单元(packet date unit),类似于IP包
 NSAP:网络服务接入点(Network service access point),类似于IP地址。
 NET:网络实体(Network entity title),一个特殊的网络服务接入点。
 系统ID:system ID,类似于OSPF协议中的router ID
 LSP:链路状态协议数据单元(Link state protocol data unit),类似于OSPF的LSA
 LSPDB:LSP数据库(LSP database),类似于LSADB
 IIH:中间系统到中间系统的Hello报文(IS to IS Hello PDU),类似于OSPF中的Hello报文
 PSNP:部分序列号PDU(partial sequence number PDU),类似于OSPF中的ACK报文
 CSNP:完全序列号PDU(complete sequence number PDU),类似于OSPF的DD报文。

自治系统(Autonomous system 简称AS):传统的定义为一组运行同一路由协议并被同一组织机构管理的路由器。后来有所扩展,它可能是运行多种路由协议的一组路由器,但这些路由器都被同一组织机构管理。

路由域(Routing Domain):运行同一种路由协议并被同一组织机构管理的一组路由器。

区域(area):为了降低路由器的负载而切分的路由域的子域,子域内的路由器(中间系统)维护子域内部的具体路由信息和到达路由域内其它子域的路由信息。

 

 

NSAP类似于IP地址
NSAP的长度从8字节到20字节可变
区域地址由AFI,IDI,和高字节的DSP组成。用于标识一个组织。
系统ID(SYSTEM ID)在整个区域(包括骨干区域(所有的level2路由器)内唯一。

 

Network entity title(NET)
 NET是一个特殊的NSAP。其选择部份Selector为0
 IP网络中的Selector无意义,即只应用于NET
 每个路由器可以有一个或多个NET
 每一个区域的路由器拥有相同的区域ID
 每个Level1路由器必须拥有区域内唯一的System ID
 每个level2路由器必须拥有骨干区域内唯一的System ID.
 如果路由器(中间系统)有多个NET时,所有NET必须用相同的SystemID。

IS-IS的基本工作原理

收藏与分享
13 2009

搭积木游戏 (要有耐心)

Posted by Yangybcy in 日记

    问题解决能力训练Ⅱ好玩的积木游戏。使用给定的材料搭积木,保证任何一块不要掉下去就可以过关了!越来越难哦,考验你的智慧!

一定要有耐心,前面几关比较简单。游戏的难度是慢慢提升的。

Flash动画



收藏与分享
12 2009

H3C S7500交换机路由重分发的一些实际操作记录

Posted by Yangybcy in 电脑网络

在H3C设备上。路由引入使用 import-route。
    例:ospf 111
              area 0.0.0.111
                import-route ospf 111 cost 160 route-policy 1   //从OSPF进程111引入路由,并重新设定Cose值为160,且应用route-policy策略
  filter-policy 2001 import //路由引入策略。

acl number 2001
 rule 0 permit source 10.50.0.0 0.0.255.255
 rule 1 deny source 192.168.0.0 0.0.255.255
 rule 2 deny

ospf 111
 import-route static
 import-route ospf 1111
 default-route-advertise always
 area 0.0.0.111
  network 192.168.40.0 0.0.0.255
  network 192.168.50.0 0.0.0.255
  network 192.168.60.0 0.0.0.255
  network 192.168.99.0 0.0.0.255
  network 192.168.100.0 0.0.0.255        
#
ospf 1111
 import-route ospf 111 route-policy 1
 filter-policy 2001 import
 area 0.0.0.1
  network 10.50.16.0 0.0.0.127
#

route-policy 1 permit node 1
 if-match acl 2001
 apply cost 160

收藏与分享
06 2009

Rip V2案例研究:水平分隔(ip split-horizon)。以及兼容V1

Posted by Yangybcy in CISCO

与V1兼容可以指定某些接口 
The interface-level "compatibility switches" recommended by RFC 1723 are implemented in Cisco IOS with the commands ip rip send version and ip rip receive version.

 

主要再研究一下ip splist-horizon

当前实验的示意图如上:
在这个网络中,如果R2的F0/0口上取消掉水平分隔(no ip split-horizon)后,通过Debug可以看到。

R2:
*Mar  1 00:29:31.411: RIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (192.168.5.1)
*Mar  1 00:29:31.411: RIP: build update entries
*Mar  1 00:29:31.411:   subnet 192.168.5.0 metric 1
*Mar  1 00:29:31.415:   subnet 192.168.5.16 metric 1
*Mar  1 00:29:31.415:   subnet 192.168.5.32 metric 2   这个路由条目明明是从通过F0/0口学到的。关闭掉水平分隔后,V1就会又从这个口发送出去!
*Mar  1 00:29:31.415:   subnet 192.168.5.64 metric 2
*Mar  1 00:29:31.415: RIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (192.168.5.1)
*Mar  1 00:29:31.419: RIP: build update entries
*Mar  1 00:29:31.419:   192.168.5.0/28 via 0.0.0.0, metric 1, tag 0
*Mar  1 00:29:31.419:   192.168.5.16/28 via 0.0.0.0, metric 1, tag 0
*Mar  1 00:29:31.423:   192.168.5.32/28 via 192.168.5.2, metric 2, tag 0  (这个路由条目也是不应该出现在这儿的。)
*Mar  1 00:29:31.427:   192.168.5.64/28 via 0.0.0.0, metric 2, tag 0
R2#

 

打开IP split-horizon后。Debug如下:
R2#
*Mar  1 00:32:21.503: RIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (192.168.5.1)
*Mar  1 00:32:21.503: RIP: build update entries
*Mar  1 00:32:21.503:   subnet 192.168.5.16 metric 1
*Mar  1 00:32:21.507:   subnet 192.168.5.64 metric 2
*Mar  1 00:32:21.507: RIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (192.168.5.1)
*Mar  1 00:32:21.507: RIP: build update entries
*Mar  1 00:32:21.507:   192.168.5.16/28 via 0.0.0.0, metric 1, tag 0
*Mar  1 00:32:21.511:   192.168.5.64/28 via 0.0.0.0, metric 2, tag 0

我们可以在这儿看到Rip 进程就不会通过0/0口发送从F0、0口接收到的5.32这个网段的路由条目 。
*Mar  1 00:32:23.511: RIP: received v2 update from 192.168.5.18 on FastEthernet0/1
*Mar  1 00:32:23.511:      192.168.5.64/28 via 0.0.0.0 in 1 hops
*Mar  1 00:32:27.767: RIP: received v2 update from 192.168.5.2 on FastEthernet0/0
*Mar  1 00:32:27.767:      192.168.5.32/28 via 0.0.0.0 in 1 hops
*Mar  1 00:32:34.275: RIP: sending v2 update to 224.0.0.9 via FastEthernet0/1 (192.168.5.17)
*Mar  1 00:32:34.275: RIP: build update entries
*Mar  1 00:32:34.275:   192.168.5.0/28 via 0.0.0.0, metric 1, tag 0
*Mar  1 00:32:34.279:   192.168.5.32/28 via 0.0.0.0, metric 2, tag 0

收藏与分享
Pages: 1 2 3 下一页