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#
测试成功截图:
![](http://imgsrc.baidu.com/forum/w%3D580/sign=aefebec2cffc1e17fdbf8c397a91f67c/d815f58f8c5494ee1d4806cd2df5e0fe9b257ec3.jpg)
最后截图:
![](http://imgsrc.baidu.com/forum/w%3D580/sign=eb58ad6ba0ec08fa260013af69ef3d4d/100cde3df8dcd100a6faf1f5728b4710bb122fce.jpg)