大学生技术联盟吧 关注:312贴子:3,211

关于电科院2012121910WL路由实验(一)总结

只看楼主收藏回复

请跟帖!!!


1楼2012-12-19 13:30回复


    2楼2012-12-19 13:34
    收起回复
      Router>
      Router>en
      Router#config t
      Enter configuration commands, one per line. End with CNTL/Z.
      Router(config)#interface fa0/0
      Router(config-if)#ip add 192.168.1.1 255.255.255.0
      Router(config-if)#no shut %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#exit
      Router(config)#interface fa0/1
      Router(config-if)#ip add 192.168.2.1 255.255.255.0
      Router(config-if)#no shut %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up Router(config-if)#
      Router#
      %SYS-5-CONFIG_I: Configured from console by console


      IP属地:北京3楼2012-12-19 13:39
      回复
        Router>
        Router>en
        Router#config t
        Enter configuration commands, one per line. End with CNTL/Z.
        Router(config)#interface fa0/0
        Router(config-if)#ip add 192.168.1.1 255.255.255.0
        Router(config-if)#no shut %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
        Router(config-if)#exit
        Router(config)#interface fa0/1
        Router(config-if)#ip add 192.168.2.1 255.255.255.0
        Router(config-if)#no shut %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up Router(config-if)#
        Router#
        %SYS-5-CONFIG_I: Configured from console by console


        IP属地:北京4楼2012-12-19 13:44
        回复
          前三行为进入全局配置模式,第四至第九行为配置Fa0/0端口的IP地址,地址为:192.168.1.1,子网掩码为:255.255.255.0,第十行为退出全局配置模式,第十一行开始进入全局配置模式,并且进行配置Fa0/1端口的IP地址,地址为:192.168.2.1,子网掩码为:255.255.255.0


          IP属地:北京5楼2012-12-19 13:47
          回复

            路由器实验1
            Router>en
            Router#config t
            Enter configuration commands, one per line. End with CNTL/Z.
            Router(config)#hostname 10wl
            10wl(config)#interface f0/0 配置路由器左边接口的IP地址
            10wl(config-if)#ip address 192.168.1.1 255.255.255.0
            10wl(config-if)#no shutdown
            %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
            %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
            10wl(config-if)#interface f0/1 配置路由器右边接口的IP地址
            10wl(config-if)#ip add 192.168.2.1 255.255.255.0
            10wl(config-if)#no shut
            %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
            %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
            10wl(config-if)#exit
            10wl(config)#exit


            9楼2012-12-19 13:48
            回复


              IP属地:北京10楼2012-12-19 13:50
              回复


                13楼2012-12-19 13:51
                回复
                  26 郭泽众
                  首先先要设置两个PC机的IP地址,子网掩码以及网关。


                  随后是进入路由器的设置。设置代码如下:
                  Continue with configuration dialog? [yes/no]: no
                  Press RETURN to get started!
                  Router>
                  Router>en
                  Router#config t
                  Router(config)#int f0/1
                  Router(config-if)#ip add 192.168.2.1 255.255.255.0
                  Router(config-if)#no shut
                  Router(config)#int f0/0
                  Router(config-if)#ip address 192.168.1.1 255.255.255.0
                  Router(config-if)#no shut
                  Router(config-if)#
                  随后可以看到用PC1pingPC2可以ping通,上图:

                  最后上一张我的整个布局图,如下:

                  看不清的我实在没办法,就这样了昂。


                  16楼2012-12-19 13:53
                  回复

                    22朱
                    路由器实验
                    给路由器配置IP地址:
                    Router>
                    Router>enable
                    Router#config t
                    Enter configuration commands, one per line. End with CNTL/Z.
                    Router(config)#hostname zr
                    zr(config)#interface f0/0
                    zr(config-if)#ip address 192.168.1.1 255.255
                    ^
                    % Invalid input detected at '^' marker.
                    zr(config-if)#ip address 192.168.1.1 255.255.255.0
                    zr(config-if)#no shutdown
                    %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
                    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
                    zr(config-if)#interface f0/1
                    zr(config-if)#ip add 192.168.2.2 255.255.255.0
                    zr(config-if)#no shutdown
                    %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
                    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
                    zr(config-if)#exit
                    zr(config)#exit
                    %SYS-5-CONFIG_I: Configured from console by console
                    zr#copy run sta
                    Destination filename [startup-config]?
                    Building configuration...
                    [OK]
                    zr#
                    测试成功截图:

                    最后截图:



                    17楼2012-12-19 13:53
                    回复

                      用计算机通过路由器来访问另一个局域网的计算机
                      首先完成绘图
                      配置两个计算机的IP
                      1192.168.1.20
                      2192.168.2.20
                      路由器
                      左边IP设为192.168.1.1
                      右边IP设为192.168.1.2
                      设置两个计算机的网关
                      1192.168.1.1
                      2192.168.2.1

                      配置路由器
                      1, 进入全局配置模式

                      2,配置路由器两端IP

                      (要记住IP后面的子网掩码啊!不然是会设置失败的!)
                      3, 保存退出
                      4, 模型连接完成

                      \用地址为192.168.1.20的计算机ping 192.168.2.20进行尝试

                      成功,两台计算机可以痛心了


                      IP属地:北京22楼2012-12-19 13:56
                      收起回复

                        路由器实验1
                        9 号
                        董俐秀
                        首先先设置ip地址


                        代码:
                        Continue with configuration dialog? [yes/no]: no
                        Press RETURN to get started!
                        Router>enable(进入特权模式)
                        Router#config t(进入全局模式)
                        Enter configuration commands, one per line. End with CNTL/Z.
                        Router(config)#hostname dlx(输入用户名)
                        dlx(config)#interface f0/0(设置F0/0的端口)
                        dlx(config-if)#ip add 192.168.1.1 255.255.255.0(设置IP地址与子网掩码)
                        dlx(config-if)#no shutdown(开启端口)
                        %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
                        %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
                        dlx(config-if)#interface f0/1(设置F0/1的端口)
                        dlx(config-if)#ip add 192.168.2.1 255.255.255.0(设置IP地址与子网掩码)
                        dlx(config-if)#no shutdown(开启端口)
                        %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
                        %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
                        dlx(config-if)#exit(退出)
                        dlx(config)#exit(退出)
                        完成图片为:

                        注意事项:
                        1、路由器连接的是不同网关
                        2、看清楚端口是F0/几再去开启
                        3、网关号是在靠近PC的那边的IP地址号


                        23楼2012-12-19 13:56
                        回复


                          26楼2012-12-19 13:59
                          回复

                            -配置路由器
                            首先放2个交换机1个路由器,2PC
                            先配置PC0IP地址为192.168.1.50,子网掩码255.255.255.0,网关为192.168.1.10
                            然后配置PC1IP地址为192.168.2.50,子网掩码255.255.255.0网关为192.168.2.10
                            然后配置路由器IP地址
                            Switch>enable
                            Switch#config t
                            Switchconfig#int fa0/0 (选择端口0/0)
                            Switchconfig-if#ip add 192.168.1.10 (配置端口0/0ip地址)


                            27楼2012-12-19 13:59
                            回复
                              Switchconfig-if#no shutdown (打开端口0/0
                              Switch(config-if)#exit (退出)
                              Switch(config-if)#int fa0/1 (选择端口0/1
                              Switch(config-if)#ip add 192.168.2.10 (配置端口0/1ip地址)
                              Switch(config-if)#no shutdown (打开端口0/1
                              Switch(config-if)#exit (退出)



                              28楼2012-12-19 13:59
                              收起回复