华为OLT(Optical Line Terminal,光线终端)是一种用于光纤通信中的设备,可以实现光纤接入网络(Fiber to the Home,FTTH)的功能。在华为OLT中,有一些常用的配置命令,可以通过命令行界面(CLI)进行配置。下面是一些常用的华为OLT配置命令及其用法。
首先,要进入用户视图(user view),可以使用以下命令:
<
OLT
>
user
-
interface console
<
OLT
>
user
-
interface vty
4
<
OLT
>
user
-
interface aux
其中,console 0、vty 0 4、aux 0 分别表示控制台、虚拟终端和辅助终端。用户视图是华为OLT中的一个非特权模式,可以查看系统信息和基本配置,但不能进行高级配置。
要进入特权视图(privileged view),可以使用以下命令:
<
OLT
>
enable
在特权视图中,可以进行更高级的配置,如配置端口、VLAN、QoS等。
下面是一些常用的华为OLT配置命令及其用法:
1、配置端口
<
OLT
>
interface gpon
/
1
/
1
ont
gemport
1
<

OLT
>
port link
-
mode bridge
<
OLT
>
port vlan
1000
1
100
<
OLT
>
quit
其中,gpon 0/1/1 表示 GPON 端口,ont 0 表示第一个 ONT(Optical Network Terminal,光网终端),gemport 1 表示第一个 GEM 端口。port link-mode bridge 表示将端口配置为桥模式,port vlan 1000 1 100 表示将 VLAN 1000 绑定到端口上。
1、配置VLAN
<
OLT
>
vlan batch
1000
to
1002
<
OLT
>
interface gpon
/
1
/
1
ont
gemport
1
<
OLT
>
port link
-
mode bridge
<
OLT
>
port vlan
1000
1
100
<
OLT
>
quit
其中,vlan batch 1000 to 1002 表示批量创建 VLAN 1000、1001、1002。
1、配置QoS
<
OLT
>
qos car inbound cir
1000
cbs
5000
<
OLT
>
qos car outbound cir
1000
cbs
5000
<
OLT
>
interface gpon
/
1
/
1
ont
gemport
1
<
OLT
>
port link
-
mode bridge
<
OLT
>
port vlan
1000
1
100
<
OLT
>
qos queue
car inbound cir
1000
cbs
5000
<
OLT
>
qos queue
car outbound cir
1000
cbs
5000
<
OLT
>
quit
其中,qos car inbound cir 1000 cbs 5000 表示配置入方向的速率限制,cir 表示承诺速率,cbs 表示承诺突发大小。qos car outbound cir 1000 cbs 5000 表示配置出方向的速率限制。qos queue 0 car inbound cir 1000 cbs 5000 表示将队列 0 的速率限制设置为 1000Mbps(cir)和 5000字节(cbs)。
如有侵权请及时联系我们处理,转载请注明出处来自
随机推荐
科技快讯 |备案号:( 沪ICP备2026008940号-1 )