lol所有人说话快捷键一、设备启动
login: root
Password:
Terminal type? [vt100] y
root%cli
root>
二、设备重启
user@host> request system reboot
三、设置ROOT密码
root# set system root-authentication plain-text-password
四、将配置转换成set命令
lab@EX4200# show protocols ospf | display set
五、设置主机名
set system host-name EX4200-1 //EX4200-1为主机名
六、时间设置
set system time-zone Asia/Shanghai //设置时区
set date 200810301407.00 //设置时间,在用户模式下配置,YYYYMMDDhhmm.ss格式
七、开启远程登录
set system services telnet
删除命令:
delete system services telnet
八、创建用户
set system login user zte class super-user //添加zte用户为超级用户类别
set system login user zte authentication plain-text-password //设置zte密码
New password:
Retype new password:
set system login user zte class read-only //修改zte用户为只读用户
set system login user zte class read-only //修改zte用户为只读用户
delete system login user zte //删除zte用户
九、vlan设置 创建一个VLAN,指定VLAN名称和ID号
set vlans “zte_vlan” vlan id 10
将交换机端口修改为access模式加入到新创建的VLAN中 端口设置
set interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode access
set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members 10
创建3层VLAN子端口,并且将子端口和VLAN关联:
set interfaces vlan unit 10 family inet address 192.168.1.1/24
奶酪煎蛋set vlans vlan l3-interface vlan.10 //vlan子端口和VLAN对应起来
十、trunk设置
允许vlan id为10和20的VLAN通过Trunk
眼镜框的选择set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members [10 20]
delete interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode trunk
允许vlan id为10和20的VLAN通过Trunk
set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members [10 20]
禁止VLAN通过:不允许vlan 10通过
delete interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members 10
十一、三层端口修改 修改端口为L3模式
delete interfaces ge-0/0/1 unit 0 family ethernet-switching //删除端口L2参数
set interfaces ge-0/0/1 unit 0 family inet //设置端口为L3模式
set interfaces ge-0/0/1 unit 0 family inet address 192.168.1.1/30 //设置端口IP地址
修改端口为L2模式
delete interfaces ge-0/0/1 unit 0 family inet //删除端口为L3模式参数
set interfaces ge-0/0/15 unit 0 family ethernet-switching //将端口设置为L2模式
十二、静态路由中秋节国庆节祝福语
设置172.16.1.0/24网段指向下一跳地址192.168.1.253
set routing-options static route 172.16.1.0/24 next-hop 192.168.1.253
辅酶q10的正确吃法delete routing-options static route 172.16.1.0/24
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论