commit 提交生效
show interfaces diagnostics optics xe-0/0/31 查看端口模块信息
show chassis pic fpc-slot 0 pic-slot 0 查看模块信息
user@host#set?interface?ge-slot/pic/port?ether-options?(auto-negotiation?|?no-auto-negotiation?)#配置端口自动协商
关闭端口:set interface ge-0/1/0 disable
开启端口:delete interface ge-0/1/0 disable
set system login user juniper uid 2000???<-设置用户名为juniper用户id为2000
?
set?system?login?user?juniper?class?super-user??<-设置juniper用户为超级用户?
.c.c.c
配置物理端口参数?
user@host#set?interface?ge-slot/pic/port?description?description?#配置端口描述?
user@host#set?interface?ge-slot/pic/port?mtu?mtu-number#配置端口MTU
set system root-authentication plain-text-password 设置root密码
set syΒιβλιοθήκη tem login user jianglong class super-user authentication plain-text-password 设置超级用户及密码
show class-of-service 查看端口限速
set class-of-service interfaces xe-0/0/5 shaping-rate 2g 端口限速
deactivate interfaces xe-1/1/0 unit 3027 (保留端口配置,但使配置失效)
路由器静态路由配置
set routing-options static route 118.186.211.64/28 next-hop 172.16.98.2 (将118.186.211.64/28指向172.16.98.2)
set routing-options static route 118.186.211.64/28 qualified-next-hop 172.16.98.6 preference 10 (将118.186.211.64/28指向172.16.98.6 但优先级低,去172.16.98.2路由中断才会选择走这条默认路由)
show system uptime 查看系统时间及设备启动时间
show log link-status 查看系统日志
show | display set 查看配置
show | compare 未保存之前查看做过的配置
show chassis hardware 查看模块信息包括SN号
?
user@host#set?interface?ge-slot/pic/port?ether-options?speed?(10m?|?100m?|?1g)#配置端口速率?
user@host#set?interface?ge-slot/pic/port?ether-options?link-mode?(automatic?|?full-duplex?|? half-duplex?)? #配置端口双工?
二、建立好在两段设备和传输设备上建立好vlan后在4550交换机上做传输策略
show protocols l2circuit (查看传输策略)
set protocols l2circuit neighbor 118.186.247.99 interface xe-0/0/24.3033 virtual-circuit-id 13033 encapsulation-typeethernet-vlan (从本端设备的xe0/0/24口将vlan3033传到118.186.247.99这个设备,并定义策略。对端设备使用相同策略将vlan传到本端设备)
activate interfaces xe-1/1/0 unit 3027(使失效的端口配置生效)
两台设备之间传输vlan
一、设备端口建立相关vlan
set interfaces xe-1/1/0 unit 3033 vlan-id 3033 family inet address 118.186.208.141/30 (在xe1/1/0端口建立vlan3033,配IP:118.186.208.141/30)