Juniper LenhCoBan

You might also like

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 6

Các lệnh cơ bản

Juniper
edit
commit
show
show | display set
show | display set | match 717
BASIC
up
quit
exit
top
run show system alarms

run show interfaces terse

run show interfaces diagnostics optics ge-0/2/0


run show lacp interfaces ae4
run show interfaces xe-0/2/1 media

show interfaces xe-0/0/2


show interfaces ae99.3064
show interfaces irb.3138
Interface // Hoặc vào giao diện interface rồi mới show
edit interface xe-0/0/2
show

set interfaces xe-0/0/1 disable


delete interfaces xe-0/0/1 disable
set interfaces xe-0/0/2 gigether-options 802.3ad lacp port-priority 100
delete interfaces xe-0/0/1

copy interfaces ge-0/3/0 to interfaces ge-0/3/1

run show chassis hardware | no-more


run show chassis environment | no-more
run show chassis power
Hardware
runshow chassis routing-engine
run show chassis pic fpc-slot 7 pic-slot 0
request chassis fpc (offline | online | restart) slot 10
show routing-instances L3-ENODEB-OAM
run show route table L3-ENODEB-OAM.inet.0
run show arp vpn L3-ENODEB-OAM
VPNL3
ping 172.62.2.1 routing-instance L3-ENODEB-OAM
VPNL3

routing-instances L3-ENODEB-OAM routing-options static route


123.20.4.0/24 next-hop 172.26.28.106
run show l2circuit connections interface ae3.275
run show l2circuit connections brief
run show l2circuit connections brief | match 1102320260

// Trạng thái St có giá trị Up nghĩa là kênh l2cicuit đã kết nối


Interface Type St Time last up # Up trans
ae99.419(vc 1102320260) rmt Up Jul 19 00:12:46 2020 2

VPNL2

show routing-instances L2-quanly-sw


run show vpls connections instance L2-quanly-sw
run show vpls connections brief
run show vpls mac-table instance L2-quanly-sw
configure private
Các lệnh cơ bản của JUNIPER
Ý nghĩa
vào mode config
xác nhận câu lệnh vào cấu hình
xem cấu hình toàn bộ, hoặc xem cấu hình trong từng level, với
"display set" sẽ hiện thị cấu trúc lệnh theo lệnh "set" (lệnh này sài
nhiều lắm ^^)

thoát ra 1 cấp

đang ở bất kì vị trí nào sẽ nhảy đến mode config


xem cảnh báo hệ thống
xem danh sách port , không xem được phần trăm lưu lượng như
Huawei
Kiểm tra suy hao quang
Kiểm tra lacp trong ae4
Kiểm tra thông tin chung của port (MTU, Speed, Flow control,..)

Xem cấu hình port


Xem cấu hình Sub Interface
Xem cấu hình Interface Vlanif

Shutdown port
Mở port
Chỉnh priority của port trong ae
Xóa toàn bộ cấu hình của port
Copy cấu hình 1 port và paste cho 1 port khác, dùng để thêm nhanh 1
port vào ae
xem thông tin phần cứng rất chi tiết, có cả thông tin serial
xem thông tin nhiệt độ
xem thông tin nguồn hoạt động
xem thông tin card điều khiển
Xem thông tin card slot 7 pic 0
bật on/off/reset card thuê bao
Xem cấu hình 1 domain VPNL3
xem toàn bộ route VPNL3 của vpn ENODEB-OAM
xem bảng arp mà mình hay xem trên Huawei
ping địa chỉ trong VPNL3
tạo 1 route trên VPNL3

xem trạng thái kênh l2circuit (l2vc) trên interface đã up chưa


Xem trạng thái của tất cả kênh l2circuit (l2vc) trên router
xem trạng thái kênh l2circuit theo VC-ID
//Bảng mô tả các trạng thái của kênh l2 circuit
Legend for connection status (St)
EI -- encapsulation invalid NP -- interface h/w not present
MM -- mtu mismatch Dn -- down
EM -- encapsulation mismatch VC-Dn -- Virtual circuit Down
CM -- control-word mismatch Up -- operational
VM -- vlan id mismatch
OL -- no outgoing label IB -- TDM incompatible bitrate
NC -- intf encaps not CCC/TCC TM -- TDM misconfiguration
BK -- Backup Connection ST -- Standby Connection
CB -- rcvd cell-bundle size bad SP -- Static Pseudowire
LD -- local site signaled down RS -- remote site standby
RD -- remote site signaled down HS -- Hot-standby Connection

Xem cấu hình của 1 vpls (vsi)


Xem trạng thái vpls (vsi)
xem trạng thái tất cả các vpls (vsi) trên router
Xem bảng mac của vpls (vsi)
vào mode config
R
Huawei

display current-configuration OR display this

quit

display alarm active

display interface brief

display interface g0/2/0


display eth-trunk 4
display interface g0/2/1

display current-configuration interface g0/0/2


display current-configuration interface Eth99.3064
display current-configuration interface Vlanif3138

shutdown
undo shutdown
lacp priority 100

display ip routing-table vpn-instance ENODEB-OAM


display arp vpn-instance ENODEB-OAM slot 0
ping -vpn-instance ENODEB-OAM 172.62.2.1
ip route-static vpn-instance ENODEB-OAM 123.20.4.0 255.255.255.0
172.26.28.106
display mpls l2vc interface Eth-Trunk3.275
display mpls l2vc brief

display vsi L2-quanly-sw


display vsi
display mac-address dynamic vsi L2-quanly-sw

You might also like