路由器配置ip地址:
R1#configure terminal //进入全局配置模式
R1(config)#int f0/0 //进入f0/0接口
R1(config-if)#ip add 192.168.10.1 255.255.255.0 //配置ip地址
R1(config-if)#no shutdown //开启接口
查看接口状态:
R1#show ip interface brief //up是开启 down是关闭
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.10.1 YES manual up