set system root-authentication plain-text-password
New password:
Retype new password:
set system login user admin uid 2000 #设置用户名喂admin的id为2000
set system login user admin class super-user #设置admin用户为超级用户
set system login user admin authentication plain-text-password #设置admin用户密码
set system host-name jieru_sw
set system services telnet
set system services ftp
set snmp description snmp_des #snmp描述
set snmp contact xxx #snmp的联系信息
set snmp engine-id local 2222 #snmp v3 engine id信息
set snmp community community_name authorization read-write #设置snmp字符串
set snmp trap-options source-address 192.168.1.1 #设置snmp trap的原地址192.168.1.1
set interfaces ge-0/0/0 description description
set interfaces ge-0/0/0 mtu 1500
set interfaces ge-0/0/0 speed 1g
set interfaces ge-0/0/0 link-mode full-duplex
interface ge-0/0/0 ether-options (auto-negotiation |no-auto-negotiation ) #这个测不出来
set interfaces ge-0/0/0 disable
set interfaces ge-0/0/1 unit 0 family ethernet-switching interface-mode access
set interfaces ge-0/0/0 unit 0 family inet address 10.0.1.1/24
set vlans vlan100 vlan-id 100
set vlans vlan200 description thisisvlan200
set vlans vlan200 vlan-id 200
set vlans vlan200 l3-interface irb.200
set interfaces vlan unit 200 family inet address 172.16.1.2/24
set interfaces ge-0/0/2 unit 0 family ethernet-switching vlan members 100
set interfaces ge-0/0/2 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/0/2 unit 0 family ethernet-switching vlan members all
set interfaces ge-0/0/2 unit 0 family ethernet-switching native-vlan-id purple #EX在trunk端口下支持native-vlan(拆标签vlan)的配置
set routing-options static route 0.0.0.0/0 next-hop 10.0.1.1
set system services dhcp name-server 8.8.8.8 #主DNS
set system services dhcp name-server 114.114.114.114 #备DNS
set system services dhcp pool 10.10.10.0/24 address-range low 10.10.10.10 #地址池范围
set system services dhcp pool 10.10.10.0/24 address-range high 10.10.10.254
set system services dhcp pool 10.10.10.0/24 router 10.10.10.1 #地址池网关,同时也代表绑定网关所在vlan
set interfaces vlan unit 200 family inet address 10.10.10.1/24 #配置vlan地址
set vlans vlan200 vlan-id 200 #创建vlan
set vlans vlan200 l3-interface irb.200 #添加三层vlan接口
show chassis routing-engine
show arp
show vlans
show vlans 100
show interfaces terse
show interfaces vlan.100
show interfaces ge-0/0/2