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

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

只看楼主收藏回复



Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface f0/0
Router(config-if)#ip address 192.168.1.20 255.255.255.0
Router(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

Router(config-if)#interface f0/1
Router(config-if)#ip address 192.168.2.10 255.255.255.0
Router(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

Router(config-if)#exit
Router(config)#exit

%SYS-5-CONFIG_I: Configured from console by console
Router#copy run sta
Destination filename [startup-config]?
Building configuration...
[OK]
Router#
Router#




30楼2012-12-19 14:00
回复
    给路由器配置IP地址
    Router>en
    Router#config t
    Enter configuration commands, one per line. End with CNTL/Z.
    Router(config)#int Fa0/0
    Router(config-if)#ip address 192.168.1.1 255.255.255.0
    Router(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 Router(config-if)#int Fa0/1
    Router(config-if)#ip address 192.168.2.1 255.255.255.0
    Router(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 Router(config-if)#exit
    Router(config)#exit %SYS-5-CONFIG_I: Configured from console by console
    Router#copy run star
    Destination filename [startup-config]?
    Building configuration...
    [OK]
    Router#



    IP属地:重庆31楼2012-12-19 14:01
    回复

      05 05 05
      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)#exit
      Router (config)#exit


      32楼2012-12-19 14:14
      回复
        28 邢
        Router>
        Router>enable
        Router#config t
        Enter configuration commands, one per line. End with CNTL/Z.
        Router(config)#hostname xyy
        xyy(config)#interface f0/0
        xyy(config-if)#ip address 192.168.1.1 255.255.255.0
        xyy(config-if)#no shut down %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up xyy(config-if)#interface f0/1
        xyy(config-if)#ip address 192.168.2.1 255.255.255.0
        xyy(config-if)#no shut down %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up xyy(config-if)#exit
        xyy(config)#exit %SYS-5-CONFIG_I: Configured from console by console
        xyy#copy run sta
        Destination filename [startup-config]?
        Building configuration...
        [OK]
        xyy#



        33楼2012-12-19 14:14
        回复



          38楼2012-12-19 14:21
          回复
            37 zzf

            路由器配置IP地址
            --- System Configuration Dialog --- Continue with configuration dialog? [yes/no]: no
            Press RETURN to get started! 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.17.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.18.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)#exit



            41楼2012-12-19 14:23
            收起回复

              Router>en
              进入用户模式
              Router#config t
              进入特权模式
              Router(config)#interface fa0/0
              给左边的端口配置ip地址
              Router(config-if)#ip add 192.168.1.10 255.255.255.0
              Router(config-if)#no shut
              开启
              Router(config-if)#exit
              退出
              Router(config)#interface fa0/1
              给右边的端口配置ip地址
              Router(config-if)#ip add 192.168.2.10 255.255.255.0
              Router(config-if)#no shut
              开启



              IP属地:北京42楼2012-12-19 14:24
              回复


                43楼2012-12-19 14:24
                回复
                  Router>en
                  Router#config t
                  Enter configuration commands, one per line. End with CNTL/Z.
                  Router(config)#hostname ld
                  ld(config)#interface f0/0
                  ld(config-if)#ip 192.168.1.100 255.255.255.0
                  ^
                  % Invalid input detected at '^' marker.
                  ld(config-if)#ip address 192.168.1.100 255.255.255.0
                  ld(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 ld(config-if)#interface f0/1
                  ld(config-if)#ip address 192.168.2.100 255.255.255.0
                  ld(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 ld(config-if)#exit
                  ld(config)#exit %SYS-5-CONFIG_I: Configured from console by console
                  ld#copy run sta
                  Destination filename [startup-config]?
                  Building configuration...
                  [OK]
                  ld#


                  44楼2012-12-19 14:25
                  回复

                    两个局域网一个是192.168.1.0 另一个是192.168.2.0
                    Pc0用直通线连接交换机switch0
                    交换机Switch1直通线连接路由器router0
                    路由器router0 直通线连接交换机switch1
                    交换机Switch1直通线连接pc1
                    Pc0设置ip192.168.1.10
                    255.255.255.0
                    网关192.168.1.1
                    Pc1 设置ip192.168.2.10
                    255.255.255.0
                    网关192.168.2.1
                    设置路由器


                    45楼2012-12-19 14:27
                    回复
                      郭昕阳

                      两个局域网一个是192.168.1.0 另一个是192.168.2.0
                      Pc0用直通线连接交换机switch0
                      交换机Switch1直通线连接路由器router0
                      路由器router0 直通线连接交换机switch1
                      交换机Switch1直通线连接pc1
                      Pc0设置ip192.168.1.10
                      255.255.255.0
                      网关192.168.1.1
                      Pc1 设置ip192.168.2.10
                      255.255.255.0
                      网关192.168.2.1


                      47楼2012-12-19 14:29
                      回复
                        设置路由器


                        先打no
                        然后enmable进入特权模式模式
                        然后config t 进入完全控制模式
                        然后interface f0/0配置第一个网关
                        Ip address 192.168.1.1
                        On Shutdown运行
                        然后interface f0/1配置的二个网关
                        Ip address 192.168.2.1
                        On shutdown 运行
                        进入pc0 cmd
                        Ping 192.168.2.10
                        通了则成功。



                        48楼2012-12-19 14:29
                        回复
                          34号袁戈!!!

                          首先拉出两个PC机和两个交换机,还有一个路由器。
                          接着配PC0IP地址为192.168.1.10 255.255.255.0 网关地址为192.168.1.1
                          接着配PC1IP地址为192.168.1.11 255.255.255.0 网关地址为192.168.2.1

                          然后在路由器里面配置关口网关:(如上图)
                          Router>enable
                          Router#config t
                          设置主机名为YG
                          Router(config)#hostname YG
                          配置关口F0/0
                          YG(config)#interface F0/0
                          YG(config-if)#ip address 192.168.1.1 255.255.255.0
                          YG(config-if)#no shutdown
                          配置关口F0/1
                          YG(config-if)#interface F0/1
                          YG(config-if)#ip address 192.168.2.1 255.255.255.0
                          YG(config-if)#no shutdown

                          然后ping一下看看通没通,用PCPC0pingPC1的来看看通没通。


                          49楼2012-12-19 14:35
                          回复