Router>enable
Router#conf
Router#configure
Router#configure terminal
Enter configuration commands, one per line. Endwith CNTL/Z.
Router(config)#inter
Router(config)#interface fas
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip addres
Router(config-if)#ip address 192.168.1.1255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED:Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN:Line protocol onInterface FastEthernet0/0, changed state to up
Router(config-if)#
Router>enable
Router#conf
Router#configure
Router#configure terminal
Enter configuration commands, one per line. Endwith CNTL/Z.
Router(config)#inter
Router(config)#interface fa
Router(config)#interface fastE、0
% Incomplete command.
Router(config)#
Router(config)#inte
Router(config)#interface fas
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.2.1255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED:Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN:Line protocol onInterface FastEthernet0/0, changed state to up
Router(config-if)#
Router#configure
Router#configure terminal
Enter configuration commands, one per line. Endwith CNTL/Z.
Router(config)#inte
Router(config)#interface fas
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.3.1255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED:Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN:Line protocol onInterface FastEthernet0/0, changed state to up
Router(config-if)#
然后就可以看到绿起来了,一开始刚配好是黄色的,等待一段时间即可
接下来配置路由器之间的Serial接口
//R1
Router(config)#interface serial 1/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.4.1255.255.255.0
Router(config-if)#clock rate 64000
This command applies only to DCE interfaces
Router(config-if)#no shutdown
%LINK-5-CHANGED:Interface Serial1/0, changed state to down
Router(config-if)#
//R2
Router(config)#interface serial 1/0//先配置1/0接口
Router(config-if)#ip add
Router(config-if)#ip address 192.168.4.2255.255.255.0
Router(config-if)#clock rate 64000
Router(config-if)#no shutdown //这个不要忘记了
Router(config-if)#
%LINK-5-CHANGED:Interface Serial1/0, changed state to up
Router(config-if)#ex
Router(config)#
Router(config)#inter
Router(config)#interface
%LINEPROTO-5-UPDOWN:Line protocol onInterface Serial1/0, changed state to up
% Incomplete command.
Router(config)#inter
Router(config)#interface serial 1/1//先配置1/1接口
Router(config-if)#ip add
Router(config-if)#ip address 192.168.5.2255.255.255.0
Router(config-if)#clock rate 64000//设置时钟时间
This command applies only to DCE interfaces
Router(config-if)#no shutdown
%LINK-5-CHANGED:Interface Serial1/1, changed state to down
Router(config-if)#
Router(config-if)#
//R3
Router(config)#interface serial 1/0
Router(config-if)#ip addd
Router(config-if)#ip add
Router(config-if)#ip add
Router(config-if)#ip add
Router(config-if)#ex
Router(config)#
Router(config)#
Router(config)#inte
Router(config)#interface ser
Router(config)#interface serial 1/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.5.1255.255.255.0
Router(config-if)#clock rate 64000
Router(config-if)#no shut
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED:Interface Serial1/0, changed state to up
最后可以看到,都绿了起来,那就说明是连通了
以上是为了不会基本配置的小伙伴准备的,下面才是正题
4、静态路由配置【⭐】
接下去我们配置静态路由,只需要用到一个命令【ip route】。下面是它的格式
Router(config)# ip route network-address subnet-mask ip-address
Overview 在LTE和R15 NR中,终端以及基站采用的接入技术均为四步随机接入(4-Step Random Access)技术,即终端和基站之间需要经过5次信息交互(这里我们所说是的基于竞争的随机接入过程,对于非竞争随机接入过程只需要3次信息交互)才能完成随机接…