Cisco_路由器基础命令

Cisco_路由器基础命令


1、接口描述

  • 路由器F0/1(或S0/1)接口命名为ABC
Router(config)# interface fastEthernet 0/1    //进入到接口fastEthernet 0/1
Router(config-if)# description ABC      //接口描述为ABC

2、接口速率

  • 路由器F0/1(或S0/1)接口速率100M
Router(config)# interface fastEthernet 0/1       //进入到接口fastEthernet 0/1
Router(config-if)# speed 100       //接口速率为100M

3、接口模式

  • 路由器F0/1(或S0/1)接口全双工(或半双工)
Router(config)# interface fastEthernet 0/1    //进入到接口fastEthernet 0/1
Router(config-if)# duplex  full    //接口工作模式为全双工,(或half或auto)

4、时钟频率

  • 路由器S0/1接口(DCE端)时钟频率为64000
Router(config)# interface serial 0/1     //进入到串行接口serial 0/1
Router(config-if)# clock rate 64000    //接口时钟频率为64000

5、子接口

  • 路由器F0/1启用子接口,分别对应VLAN 10(192.168.10.1/24)和VLAN 20(192.168.20.254/24)
Router(config)# interface fastEthernet 0/1  //进入到物理接口fastEthernet 0/1
Router(config-if)# no shutdown        //开启接口

Router(config)# interface fastEthernet 0/1.10
//进入到虚拟子接口fastEthernet 0/1.10,注意10为子接口编号,建议与VLAN相同
Router(config-subif)# encapsulation dot1Q 10  
 //子接口封装802.1Q协议,并对应VLAN编号
Router(config-subif)# ip address 192.168.10.1 255.255.255.0     //子接口配置IP
    
Router(config)# interface fastEthernet 0/1.20
Router(config-subif)# encapsulation dot1Q 20
Router(config-subif)# ip address 192.168.20.1 255.255.255.0

6、回环接口

  • 路由器启用loopback 10接口,ip为192.168.1.1/24
Router(config)# interface loopback 10   //进入到回环接口编号10
Router(config-if)# no shutdown     //开启接口
Router(config-if)# ip address 192.168.1.1 255.255.255.0   //配置IP地址

如果写的不好或者写的有问题,请大佬多多指正,也可以私信~~

  • 2
    点赞
  • 33
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值