Cisco路由器基本使用

作者:小啊博    QQ:762641008    转载请声明URL:https://www.cnblogs.com/-bobo/

一、路由器命令行使用

router>                                                            用户模式

router> enable                                                进入特权模式

router#                                                            特权模式

router# conf t                                                  简写

router(config)#                                               全局配置模式

router(config)# int f0/1                          

router(config-if)#                                             接口模式

router(config-if)# exit                               回到上一层模式

router(config)# end                                         快速退到特权模式

router# disable                                          从特权模式回到用户模式

router>

router(config)# hostname R1                          更改主机名为“R1”

二、给路由器配置IP地址

router(config) # interface fastethernet 0/1

router(config-if)# ip address ip-address subnet-mask

router(config-if)# no shutdown    #启用端口

给交换机配置ip地址

switch(config) # interface vlan 1

switch(config) # ip address ip-address subnet-mask

switch(config-if) # no shutdown    #启用端口

switch # show int f0/1                             #查看接口状态

三、配置路由

1)配置静态路由

router(config) # ip route network mask { address | interface }

network:目的网络地址

mask:目的网络子网掩码

address:到达目的网络经过的吓一跳路由器的接口地址

interface:到达目的网络的本地接口

2)配置默认路由

router(config) # ip route 0.0.0.0 0.0.0.0 address

address:到达目的网段经过的下一跳路由器的接口地址

四、查看路由配置信息

router # show run      #查看路由详细信息

router # show ip route                   #查看路由表

router # show ip int brief               #查看各接口的ip地址

作者:小啊博    QQ:762641008    转载请声明URL:https://www.cnblogs.com/-bobo/

猜你喜欢

转载自www.cnblogs.com/-bobo/p/11587303.html