從中記錄

Units
Junon OS
All physical interface have logical interfaces called units
interface {
vlan {
unit 2 { 代表VLAN2
description Printers;
family inet{
address 192.168.2.2/24;
}
}
unit 3 { 代表VLAN3
description Phones;
family inet{
address 192.168.3.2/24;
}
}

set interface ge-0/0/0 disable #shutdown interface
delete interface ge-0/0/0 disable #no shutdown interface

run shot inter ge-0/0/3 extensive | find Auton

#edit interface ge-0/0/4 ether-options
#set speed 100m
#set link-mode full-duplex
#commit
#set inter ge-0/0/4 ether-options no-auto-negotiation #no autonegotiation

LACP
JunOS
#set chassis aggregated-device ethernet device-count 1
#set interface ge-0/0/5 ether-options 802.3ad ae0
#set interface ge-0/0/6 ether-options 802.3ad ae0
#set interface ae0 unit 0 family ethernet-switching port-mode trunk
#set interface ae0 aggregated-ether-options lacp active

IOS
interface Port-chiannel1
switchport trunk encapsulation dot1q
switchport mode trunk
!
inter Giga0/5
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode active
!
inter Giga0/6
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode active

VLAN
#edit vlans
#set example \\ 設定一個example 名稱的vlan
#set example vlan-id 100 \\ 給它tag 100
#run show vlans \\ 看所有VLAN
加入 interface
[edit vlans]
#set example interface ge-0/0/7.0 \\將 ge-0/0/07.0 加入 vlan example

[edit vlans]
#top edit interface

[edit interfaces]
#set ge-0/0/7 unit 0 family ethernet -switching

[edit interfaces]
#set ge-0/0/8 unit 0 family ethernet-switching vlan members 100

[edit interfaces]
#set ge-0/0/9 unit 0 family ethernet-switching vlan members example

#run show vlans example detail
VLAN: example, 802.1Q tag:100 admin state: Enable
Numbr of interfaces: 3 (Active = 3)
Untagged interface: ge-0/0/7.0*, ge-0/0/08.0*, ge-0/0/09.0*

可以用數個方法去指定port到vlan裡, 或數個vlan tag 進 trunk port
1.config the interface under the [edit vlans] hierarchy
2.config vlan membership under the [edit inter interface-name unit 0 family ethernet-switching] hierarchy either by:
a. Using the VLAN ID
b. Using the VLAN name

#run show vlans phones detail \\看 phones 這個vlan的detail ( in/out ,ip,member)
#show phones \\ phones 的config

進度 5的 configuring Access Ports