packet tracer 教程

来源:百度知道 编辑:UC知道 时间:2024/05/28 06:59:10
谁能解释一下,感激不敬
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface f0/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)#ip address 192.168.0.2 255.255.255.0
Router(config-if)#exit
Router(config)#interface f0/1
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)#ip address 192.168.1.2 255.255.255.0
Router(config-if)#
Router(config-if)#exit
Router(config)#

Router>enable 进入路由器特权模式
Router#configure terminal 进入路由器全局配置模式
Router(config)#interface f0/0 进入路由器的f0/0口,路由器的接口模式
Router(config-if)#no shutdown 开启f0/0口
Router(config-if)#ip address 192.168.0.2 255.255.255.0 给f0/0口配IP
Router(config-if)#exit 退出路由器的接口模式
下面的都一样!都是说明了给路由器的端口配地址。