最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Cisco

旗下网站admin13浏览0评论

Cisco

Cisco

Cisco_路由器基础命令


1、接口描述

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

2、接口速率

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

3、接口模式

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

4、时钟频率

路由器S0/1接口(DCE端)时钟频率为64000 Router(config)# interface serial 0/1 //进入到串行接口serial 0/1Router(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/1Router(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.20Router(config-subif)# encapsulation dot1Q 20Router(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 //进入到回环接口编号10Router(config-if)# no shutdown //开启接口Router(config-if)# ip address 192.168.1.1 255.255.255.0 //配置IP地址

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

Cisco_路由器基础命令

发布评论

评论列表(0)

  1. 暂无评论