明昌吧 关注:11贴子:314

CISCO配置实验记录,实例命令集合

只看楼主收藏回复


学习,学到的永远是你的,不学,你将是什么都不会,最后只能一无所成!


IP属地:广西本楼含有高级字体1楼2012-11-25 17:07回复

    先上图,后面命令: fr的点对多点


    IP属地:广西2楼2012-11-25 17:08
    回复
      r1:
      ena
      conf t
      interface serial 0/0
      ip address 11.1.1.1 255.255.255.0
      no shutdown
      encapsulation frame-relay
      frame-relay intf-type dte
      frame-relay interface-dlci 102
      frame-relay map ip 11.1.1.2 102
      --------------------------------------
      r2:
      ena
      conf t
      interface serial 0/0
      ip address 11.1.1.2 255.255.255.0
      no shutdown
      encapsulation frame-relay
      frame-relay intf-type dte
      frame-relay interface-dlci 201
      frame-relay map ip 11.1.1.1 201
      ---------------------------------------
      fr:
      ena
      conf t
      interface Serial0/0
      no shu
      encapsulation frame-relay
      clock rate 600000
      frame-relay intf-type dce
      frame-relay route 102 interface Serial0/1 201
      frame-relay intf-type dce
      frame-relay route 103 interface Serial0/1 301
      interface Serial0/1
      no shu
      encapsulation frame-relay
      clock rate 600000
      frame-relay intf-type dce
      frame-relay route 201 interface Serial0/0 102
      interface Serial0/2
      no shu
      encapsulation frame-relay
      clock rate 600000
      frame-relay intf-type dce
      frame-relay route 301 interface Serial0/0 103
      --------------------------------------------
      r3:
      ena
      conf t
      interface Serial0/0
      ip address 11.1.1.3 255.255.255.0
      no shu
      encapsulation frame-relay
      frame-relay map ip 11.1.1.1 301
      frame-relay interface-dlci 301
      interface Loopback0
      ip address 1.1.1.1 255.255.255.0
      router eigrp 90
      network 1.0.0.0
      network 11.0.0.0
      no auto-summary
      ----------------------------------
      show run
      ping


      IP属地:广西5楼2012-11-25 17:15
      收起回复
        telnet--acl 实验配置:
        ------------------r1------------------
        en
        conf t
        interface FastEthernet0/0
        ip address 1.1.1.1 255.255.255.0
        no shu router eigrp 90
        network 1.0.0.0
        no auto-summary
        ip domain-name aa
        line vty 0 15
        login local
        username aa password 123456
        access-list 100 deny tcp host 2.2.2.3 host 1.1.1.1 eq telnet
        access-list 100 permit ip any any
        interface FastEthernet0/0
        ip access-group 100 in
        ------------------r2----------------------------------
        ena
        conf t
        int f 0/0
        ip add 1.1.1.2 255.255.255.0
        no shu
        int f 1/0
        ip add 2.2.2.2 255.255.255.0
        no shu
        router eigrp 90
        network 1.0.0.0
        network 2.0.0.0
        no au
        --------------r3---------------
        en
        conf t
        interface FastEthernet0/0
        ip address 2.2.2.3 255.255.255.0
        no shu router eigrp 90
        network 2.0.0.0
        no auto-summary
        ip domain-name bb
        line vty 0 15
        login local
        username bb password 123456
        --------------------------------------


        IP属地:广西本楼含有高级字体7楼2012-11-25 20:39
        回复

          access-trunk--vtp实验


          IP属地:广西8楼2012-11-25 20:43
          回复
            access-trunk--vtp实验:
            ---------------------sw1-----------------
            ena
            configure terminal
            vlan 2
            name aa
            vlan 3
            name bb
            interface f0/2
            switchport mode access
            switchport access vlan 2
            no shutdown
            interface f0/3
            switchport mode access
            switchport access vlan 3
            no shutdown
            interface f0/1
            switchport trunk encapsulation dot1q
            switchport mode trunk
            no shutdown
            vtp domain xx
            vtp mode server
            vtp password 123456


            ----------------sw2-----------------

            ena
            configure terminal
            vlan 2
            name aa
            vlan 3
            name bb
            interface f0/2
            switchport mode access
            switchport access vlan 2
            no shutdown
            interface f0/3
            switchport mode access
            switchport access vlan 3
            no shutdown
            interface f0/1
            switchport trunk encapsulation dot1q
            switchport mode trunk
            no shutdown
            vtp domain xx
            vtp mode client
            vtp password 123456


            -------------------------

            copy running-config startup-config
            show flash:
            show run
            show vtp sta
            vlan database


            IP属地:广西本楼含有高级字体9楼2012-11-25 20:45
            回复

              FR----子接口对子接口 应用


              IP属地:广西10楼2012-11-25 21:56
              回复
                FR----子接口对子接口 应用:配置:
                --------------r1:---------------------
                ena
                conf t
                int s0/0
                encap frame-relay
                frame-relay intf dte
                no shu

                int s0/0.1 point-to-point
                frame-relay interface-dlci 102
                frame-relay map ip 1.1.1.2 102
                ip add 1.1.1.1 255.255.255.0


                int s0/0.2 point-to-point
                frame-relay interface-dlci 103
                frame-relay map ip 2.2.2.3 103
                ip add 2.2.2.2 255.255.255.0
                ---------------
                r2------------------
                ena
                conf t
                int s0/0
                encap frame-relay
                frame-relay intf dte
                no shu
                int s0/0.1 point-to-point
                frame-relay interface-dlci 201
                frame-relay map ip 1.1.1.1 201
                ip add 1.1.1.2 255.255.255.0

                int s0/0.2 point-to-point
                frame-relay interface-dlci 203
                frame-relay map ip 3.3.3.4 203
                ip add 3.3.3.3 255.255.255.0
                -------------r3:-------------------
                ena
                conf t
                int s0/0
                encap frame-relay
                frame-relay intf dte
                no shu
                int s0/0.1 point-to-point
                frame-relay interface-dlci 302
                frame-relay map ip 3.3.3.3 302
                ip add 3.3.3.4 255.255.255.0

                int s0/0.2 point-to-point
                frame-relay interface-dlci 301
                frame-relay map ip 2.2.2.2 301
                ip add 2.2.2.3 255.255.255.0

                --------------fr:------------------

                ena
                conf t
                frame-relay switching
                int s0/0
                no shu
                encap frame-relay
                frame-relay intf dce
                clock rate 600000
                frame-relay route 102 interface s0/1 201
                frame-relay route 103 interface s0/2 301

                int s0/1
                no shu
                encap frame-relay
                frame-relay intf dce
                clock rate 600000
                frame-relay route 201 interface s0/0 102
                frame-relay route 203 interface s0/2 302
                int s0/2
                no shu
                encap frame-relay
                frame-relay intf dce
                clock rate 600000
                frame-relay route 301 interface s0/0 103
                frame-relay route 302 interface s0/1 203


                IP属地:广西本楼含有高级字体11楼2012-11-25 21:59
                回复

                  ospf 实验


                  IP属地:广西12楼2012-11-27 17:54
                  回复
                    ---------------------r1----------------- interface Loopback0
                    ip address 192.168.1.1 255.255.255.0
                    !
                    interface Loopback1
                    ip address 192.168.2.1 255.255.255.0
                    !
                    interface Loopback2
                    ip address 192.168.3.1 255.255.255.0
                    !
                    interface Serial0/0
                    ip address 2.2.2.2 255.255.255.0
                    serial restart-delay 0
                    no dce-terminal-timing-enable
                    !
                    interface Serial0/1
                    no ip address
                    shutdown
                    serial restart-delay 0
                    no dce-terminal-timing-enable
                    !
                    interface Serial0/2
                    no ip address
                    shutdown
                    serial restart-delay 0
                    no dce-terminal-timing-enable
                    !
                    interface Serial0/3
                    no ip address
                    shutdown
                    serial restart-delay 0
                    no dce-terminal-timing-enable
                    !
                    router ospf 110
                    log-adjacency-changes
                    area 1 stub
                    network 2.2.2.2 0.0.0.0 area 1
                    network 192.168.0.0 0.0.3.255 area 1
                    !
                    no ip http server
                    !


                    IP属地:广西13楼2012-11-27 17:55
                    回复
                      --------------------------r2----------------
                      interface Serial0/0
                      ip address 2.2.2.3 255.255.255.0
                      serial restart-delay 0
                      no dce-terminal-timing-enable
                      !
                      interface Serial0/1
                      ip address 1.1.1.1 255.255.255.0
                      encapsulation frame-relay
                      ip ospf network broadcast
                      serial restart-delay 0
                      no dce-terminal-timing-enable
                      frame-relay map ip 1.1.1.2 102 broadcast
                      frame-relay map ip 1.1.1.3 103 broadcast
                      no frame-relay inverse-arp
                      frame-relay lmi-type cisco
                      !
                      interface Serial0/2
                      no ip address
                      shutdown
                      serial restart-delay 0
                      no dce-terminal-timing-enable
                      !
                      interface Serial0/3
                      no ip address
                      shutdown
                      serial restart-delay 0
                      no dce-terminal-timing-enable
                      !
                      router ospf 110
                      router-id 22.2.2.2
                      log-adjacency-changes
                      area 1 stub
                      area 1 range 192.168.0.0 255.255.252.0
                      network 1.1.1.1 0.0.0.0 area 0
                      network 2.2.2.3 0.0.0.0 area 1
                      !
                      no ip http server
                      !
                      ip classless


                      IP属地:广西14楼2012-11-27 17:55
                      回复
                        --------------r3-----------------------------
                        interface Loopback0
                        ip address 33.3.3.3 255.255.255.0
                        ip ospf network point-to-point
                        ip ospf 110 area 0
                        !
                        interface Serial0/0
                        ip address 1.1.1.3 255.255.255.0
                        encapsulation frame-relay
                        ip ospf network broadcast
                        ip ospf priority 0
                        serial restart-delay 0
                        no dce-terminal-timing-enable
                        frame-relay map ip 1.1.1.1 301 broadcast
                        frame-relay map ip 1.1.1.2 301 broadcast
                        no frame-relay inverse-arp
                        frame-relay lmi-type cisco
                        !
                        interface Serial0/1
                        ip address 5.5.5.5 255.255.255.0
                        serial restart-delay 0
                        no dce-terminal-timing-enable
                        !
                        interface Serial0/2
                        no ip address
                        shutdown
                        serial restart-delay 0
                        no dce-terminal-timing-enable
                        !
                        interface Serial0/3
                        no ip address
                        shutdown
                        serial restart-delay 0
                        no dce-terminal-timing-enable
                        !
                        router ospf 110
                        router-id 33.3.3.3
                        log-adjacency-changes
                        area 3 virtual-link 66.6.6.6
                        network 1.1.1.3 0.0.0.0 area 0
                        network 5.5.5.5 0.0.0.0 area 3
                        network 33.3.3.3 0.0.0.0 area 3
                        !
                        no ip http server
                        !
                        ip classless


                        IP属地:广西15楼2012-11-27 17:56
                        回复
                          -----------------------r4--------------------
                          interface Serial0/0
                          ip address 1.1.1.2 255.255.255.0
                          encapsulation frame-relay
                          ip ospf network broadcast
                          ip ospf priority 0
                          serial restart-delay 0
                          no dce-terminal-timing-enable
                          frame-relay map ip 1.1.1.1 201 broadcast
                          frame-relay map ip 1.1.1.3 201 broadcast
                          no frame-relay inverse-arp
                          frame-relay lmi-type cisco
                          !
                          interface Serial0/1
                          ip address 3.3.3.3 255.255.255.0
                          serial restart-delay 0
                          no dce-terminal-timing-enable
                          !
                          interface Serial0/2
                          no ip address
                          shutdown
                          serial restart-delay 0
                          no dce-terminal-timing-enable
                          !
                          interface Serial0/3
                          no ip address
                          shutdown
                          serial restart-delay 0
                          no dce-terminal-timing-enable
                          !
                          router ospf 110
                          router-id 44.4.4.4
                          log-adjacency-changes
                          area 2 nssa default-information-originate
                          network 1.1.1.2 0.0.0.0 area 0
                          network 3.3.3.3 0.0.0.0 area 2
                          !
                          no ip http server
                          !
                          ip classless


                          IP属地:广西16楼2012-11-27 17:56
                          回复
                            --------------------------r5-------------------------
                            !
                            interface Serial0/0
                            ip address 3.3.3.4 255.255.255.0
                            serial restart-delay 0
                            no dce-terminal-timing-enable
                            !
                            interface Serial0/1
                            ip address 4.4.4.4 255.255.255.0
                            serial restart-delay 0
                            no dce-terminal-timing-enable
                            !
                            interface Serial0/2
                            ip address 111.1.1.1 255.255.255.0
                            serial restart-delay 0
                            no dce-terminal-timing-enable
                            !
                            interface Serial0/3
                            no ip address
                            shutdown
                            serial restart-delay 0
                            no dce-terminal-timing-enable
                            !
                            router ospf 110
                            log-adjacency-changes
                            area 2 nssa default-information-originate
                            summary-address 172.1.0.0 255.255.252.0
                            redistribute connected metric 1 subnets
                            redistribute static metric 1 subnets
                            redistribute rip metric 1 subnets
                            network 3.3.3.4 0.0.0.0 area 2
                            default-information originate
                            !
                            router rip
                            version 2
                            redistribute connected
                            redistribute static
                            redistribute ospf 110 metric 1
                            network 4.0.0.0
                            default-information originate
                            no auto-summary
                            !
                            no ip http server
                            !
                            ip classless
                            ip route 122.1.1.0 255.255.255.0 Serial0/2
                            ip route 133.1.1.0 255.255.255.0 Serial0/2


                            IP属地:广西17楼2012-11-27 17:57
                            回复
                              --------------------------r6----------------
                              interface Loopback0
                              ip address 66.6.6.6 255.255.255.0
                              ip ospf network point-to-point
                              ip ospf 110 area 4
                              !
                              interface Serial0/0
                              ip address 5.5.5.6 255.255.255.0
                              serial restart-delay 0
                              no dce-terminal-timing-enable
                              !
                              interface Serial0/1
                              ip address 6.6.6.6 255.255.255.0
                              serial restart-delay 0
                              no dce-terminal-timing-enable
                              !
                              interface Serial0/2
                              no ip address
                              shutdown
                              serial restart-delay 0
                              no dce-terminal-timing-enable
                              !
                              interface Serial0/3
                              no ip address
                              shutdown
                              serial restart-delay 0
                              no dce-terminal-timing-enable
                              !
                              router ospf 110
                              router-id 66.6.6.6
                              log-adjacency-changes
                              area 3 virtual-link 33.3.3.3
                              network 5.5.5.6 0.0.0.0 area 3
                              network 6.6.6.6 0.0.0.0 area 4
                              network 66.6.6.6 0.0.0.0 area 4
                              !
                              no ip http server
                              !
                              ip classless


                              IP属地:广西18楼2012-11-27 17:57
                              回复