0% found this document useful (0 votes)
54 views4 pages

Step by Step Cau Hinh Juniper Ex

Uploaded by

cuongnghe2004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views4 pages

Step by Step Cau Hinh Juniper Ex

Uploaded by

cuongnghe2004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Cấu hình thiết bị switch EX4300

6. Delete the ZTP configuration. Factory default configurations can vary over different releases. You may see a message that the
statement does not exist. Don’t worry, it’s safe to proceed.
{master:0}[edit]
root# delete auto
root# delete chassis auto-image-upgrade

1. Cấu hình quản trị


- Set passwords cho user root
root# set system root-authentication plain-text-password
root@ex2300# set system login user admin class super-user authentication plain-text-password

- Enable các tính năng quán trị


root# set system services web-management http
root# set system services ssh
root# set system services telnet
- Đặt ip cho cổng quản trị
o Với dòng switch EX4300; 3300 phía sau sw có 1 cổng quản trị riêng. Tên của cổng là cổng me0. Để quản trị
sw ta có thể đặt ip cho cổng này để thông qua đó quản trị sw
root# set interfaces me0 unit 0 family inet address 172.16.1.1/24

- Tắt dhcp trên vlan mặc định


root@ex4300# delete interfaces irb unit 0 family inet dhcp
{master:0}[edit]
root# delete interfaces fxp0 unit 0 family inet dhcp
root# set interfaces fxp0 unit 0 family inet address 172.16.1.254/24

root# set interfaces ge-0/0/0 unit 0 family inet address 192.168.0.1/24


set interfaces ge-0/0/1 unit 0 family inet address 150.1.1.1/24
set vrrp-group 1 virtual-address 192.168.0.254
set vrrp-group 1 priority 110
set vrrp-group 1 track interface ge-0/0/1 priority-cost 20
set routing-options static route 172.16.1.0/24 next-hop 192.168.0.3

root# set interfaces ge-0/0/0 unit 0 family inet address 192.168.0.2/24


root# set interfaces ge-0/0/1 unit 0 family inet address 151.1.1.1/24
set interfaces ge-0/0/0 unit 0 family inet address 192.168.0.2/24
set vrrp-group 1 virtual-address 192.168.0.254

set protocols ospf area 0 interface ge-0/0/0.0 passive Lap: VRRP


set protocols ospf area 0 interface ge-0/0/1.0
- Đặt tên cho switch
root# set system host-name ex4300
- Đặt lại giờ
root@ex4300> set date ntp 128.138.141.172
hoặc:
set date 201503221640.00 (YYYYMMDDHHMM.SS)
Đặt time zone:
set system time-zone Asia/Saigon
- Đặt default route:
root# set routing-options static route 0.0.0.0/0 next-hop 10.0.0.1
2. Tạo Vlan cho switch
- Tạo Vlan server; có id là 2
root# set vlans SERVER vlan-id 2
- Gán 1 port vào vlan
set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members SERVER
3. Tạo link aggregated
root# set chassis aggregated-devices ethernet device-count 1
- Gán port vào: ge-0/0/10 và ge-0/0/11
root# set interfaces ge-0/0/22 ether-options 802.3ad ae0
root# set interfaces ge-0/0/23 ether-options 802.3ad ae0
root# delete protocols rstp interface ge-0/0/22
root# delete protocols rstp interface ge-0/0/23
- Set các thông tin cho interface ae0
root# set interfaces ae0 unit 0 family ethernet-switching interface-mode trunk vlan members all
root# set interfaces ae0 aggregated-ether-options minimum-links 1
root# set interfaces ae0 aggregated-ether-options lacp active
root# set interfaces ae0 aggregated-ether-options link-speed 1g
- Kiểm tra lại các thông in về interface ae0
root# show interfaces ae0
aggregated-ether-options {
minimum-links 1;
link-speed 1g;
lacp {
active;
}
}
unit 0 {
family ethernet-switching {
interface-mode trunk;
vlan {
members all;
}
}
4. Apply cấu hình vào cho switch
- Sau khi thực hiện việc cấu hình xong. Chạy lệnh commit để apply cấu hình vào hệ thống.
- Có thể quay lại thời điểm commit lúc trước bằng lệnh rollback
root@lab1> request system halt
root@lab1> request system reboot
request system power-off

- Enable các tính năng quán trị


admin@ex2300# edit system services
[edit system services]
admin@ex2300# set web-management https system-generated-certificate
admin@ex2300# set web-management http interface em0.0
admin@ex2300# set web-management https interface em0.0
admin@ex2300# set web-management session idle-timeout 60
admin@ex2300# set web-management session session-limit 1
Exit

root# set interfaces em0 unit 0 family inet address 172.16.1.2/24

You might also like