For When You Can't Have The Real Thing
[ start | index | login ]
start > Juniper > EX2200 > Sample First-Boot Config

Sample First-Boot Config

Created by dave. Last edited by dave, 7 years and 201 days ago. Viewed 18,617 times. #2
[diff] [history] [edit] [rdf]

This is how I configure my EX2200 when I first get them.

New EX2200 Initial Setup

We reserve as the IP address for a switch being set up. If you have a pre-allocated name and IP for the switch, you should substitute those for the relevant points in the example below.

Attach a console to the serial port in the back. Apply power and watch it boot.

Log in as root, no password.

Issue these commands:

delete chassis auto-image-upgrade
set system host-name "switchHostname"
set system services ssh
set system services web-management http
set interfaces me0 unit 0 family inet address
set routing-options static route next-hop
delete chassis auto-image-upgrade
set system root-authentication plain-text-password 
New Password: password 
Retype new password: password
What you have done here is:
  • set the switch's internal host name
  • enable ssh management
  • enable http management
  • set the management interface (the port on the back)'s IP address
  • set the default gateway for the management interface
  • turn off the chassis auto upgrade process which will probably hijack your CLI session if you are not careful
  • set the root password
If for whatever reason you want to set the management interface to be a dhcp client (because you are doing the configuration on a dhcp network and you don't have any static IPs), the command to use is:
set interfaces me0 unit 0 family inet dhcp

At this point you can plug the switch's MGMT interface into the 10.30.1 network.


It is highly recommended that you then save this configuration as the "rescue" configuration. This may permit us to recover the switch should a configuration be committed which prevents us from logging in remotely. Save the "rescue" configuration as so:

request system configuration rescue save


If you need to update the firmware to the current recommended, run this from the OS level:

request system software add >>
If you have an old firmware (before 10.4, I think --check your release notes) you have to update the jloader as well: Then reboot the system
request system reboot
...and watch the console. The reboot will take at least 20 minutes to run.

Finish and Deploy

Log into the switch's web interface, and complete the configuration. This is usually done in the Configure -> CLI Tools -> CLI Editor window, copying and pasting from another reference switch. Remember to commit after making your changes.

Make sure you copy:

  • the syslog section
  • the snmp section
  • the entire VLAN section
Your switch should now have a default configuration on it and can be configured for its particular roles.
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt