Juniper QFX cấu hình vlan đơn giản nhất

Cấu hình lab QFX đơn giản nhất

Account login: root/Juniper

Mới đầu ta cần delete config port của con QFX đi
delete interface xe-0/0/0:0
delete interface xe-0/0/0:1
delete interface xe-0/0/0:2
delete interface xe-0/0/0:3


delete interface xe-0/0/1:0
delete interface xe-0/0/1:1
delete interface xe-0/0/1:2
delete interface xe-0/0/1:3

Tạo vlan 
set vlans ketoan vlan-id 100

Cho port vào mode access, vlan 100
set interfaces xe-0/0/0 unit 0 family ethernet-switching interface-mode access
set interfaces xe-0/0/0 unit 0 family ethernet-switching vlan members 100

set interfaces xe-0/0/1 unit 0 family ethernet-switching interface-mode access
set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members 100

Có thể đặt IP cho interface vlan 100 (nếu cần)
set vlans ketoan l3-interface irb.100
set interfaces irb unit 100 family inet address 10.3.4.100/24

commit

Trên R3:
interface Ethernet0/0
 ip address 10.3.4.3 255.255.255.0
 no shutdown


Trên R4:
interface Ethernet0/0
 ip address 10.3.4.4 255.255.255.0
 no shutdown


Test lại:

R3#ping 10.3.4.4    
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.3.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 106/182/202 ms


R4#ping 10.3.4.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.3.4.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 104/182/204 ms


root@vqfx-re> show ethernet-switching table 


Routing instance : default-switch
    Vlan                MAC                    MAC         Age    Logical                NH        RTR 
    name                address                 flags              interface              Index     ID
    ketoan              aa:bb:cc:00:30:00   D             -   xe-0/0/0.0             0         0       
    ketoan              aa:bb:cc:00:40:00   D             -   xe-0/0/1.0             0         0   

Bài viết cùng danh mục