Thursday, May 14, 2015

Replace switch.

                                                                                                                                                

Remove a Member Switch, Replace It with a Different Switch, and Reapply the 
Old Configuration

Login to Master Switch
admin@sd01-1-fd1a> configure
Entering configuration mode

{master:0}[edit]
admin@sd01-1-fd1a# set virtual-chassis preprovisioned

{master:0}[edit]
admin@sd01-1-fd1a# set virtual-chassis member 1 role line-card
{master:0}[edit]
admin@sd01-1-fd1a# set virtual-chassis member 1 serial-number PD0208233776

{master:0}[edit]
admin@sd01-1-fd1a# commit

  • Factory reset the member switch.
  • Re-connect the VCP cables




Juniper Switches

DHCP Relay

Login to core switch

show routing-instances NCE forwarding-options dhcp-relay



{master:1}[edit]
admin@scl0-0-vcf0# show routing-instances NCE forwarding-options dhcp-relay group clients
active-server-group bluecat;
interface irb.1024;
interface irb.1104;
interface irb.1902;
interface irb.2010;
interface irb.2040;



if vlan id is not listed the;

set routing-instances NCE forwarding-options dhcp-relagroup clients interface irb.2001

commit



{master:1}[edit]
admin@scl0-0-vcf0# show routing-instances NCE forwarding-options dhcp-relay group clients
active-server-group bluecat;
interface irb.1024;
interface irb.1104;
interface irb.1902;
interface irb.2001;
interface irb.2010;
interface irb.2040;



Create Vlan,logical VLAN interface, add members

admin@sb01-1fd1a# set vlans staff-vlan vlan-id 1050

admin@sb01-1fd1a# edit interface interface-range staff-vlan
admin@sb01-1fd1a# set unit 0 family ethernet-switching interface-mode access vlan members staff-vlan
admin@sb01-1fd1a# set member ge-0/1/1
admin@sb01-1fd1a# set member ge-0/0/[10-20]

admin@sb01-1fd1a# commit and-quit



Set Vlan speed 100m/  no-auto-negotiation 
edit
edit interfaces interface-range Door-Access
{master:1}[edit interfaces interface-range Door-Access]
set speed 100m
set link-mode full-duplex
set ether-options no-auto-negotiation

{master:1}[edit]
admin@sb01-1-fd1a# commit and-quit

Junos Upgrade/Installation Firmware Steps - using USB to copy software package to EX switch


Junos Installation Steps - using USB to copy software package to EX switch

  1. Format the USB Drive to FAT-32.

  2. Copy Junos software package you downloaded from the Juniper support site in Stage 1 to the USB.  (It is recommended to use dedicated USB drive and copy only the Junos software package to it.)

  3. On the EX switch, login into shell mode:
  4. {master:0}
    root@EX-4200> start shell
    root@EX-4200:RE:0%
  5. Mount the USB:
  6. root@EX-4200:RE:0% mount_msdosfs /dev/da1s1 /mnt 
  7. Copy the Junos software package from the USB to the /var/tmp directory of the EX switch:  
  8. root@EX-4200:RE:0% cd /mnt
    root@EX-4200:RE:0% ls
    root@EX-4200:RE:0% jinstall-ex-10.0S10.1-domestic-signed.tgz
    root@EX-4200:RE:0% cp jinstall-ex-10.0S10.1-domestic-signed.tgz /var/tmp
    Check if the Junos software package is copied to /var/tmp directory of the EX switch:
    root@EX-4200:RE:0% cd /var/tmp 
    root@EX-4200:RE:0% ls 
    root@EX-4200:RE:0% jinstall-ex-10.0S10.1-domestic-signed.tgz 


  9. Install Junos on the EX switch via the CLI (Command Line Interface) prompt:  

  10. For Standalone devices:
    root@EX-4200:RE:0% cli 
    root@EX-4200> request system software add /var/tmp/jinstall-ex-10.0S10.1-domestic-signed.tgz
    For 8200 Series:
    % cli
    > request system software add /var/tmp/jinstall-ex-10.0S10.1-domestic-signed.tgz re0 
    > request system software add /var/tmp/jinstall-ex-10.0S10.1-domestic-signed.tgz re1
    For Virtual Chassis:
    & cli
    > request system software add /var/tmp/jinstall-ex-10.0S10.1-domestic-signed.tgz member 1     
  11. Reboot the EX switch:

  12. For Standalone devices:
    root@EX-4200> request system reboot
    For Virtual Chassis:
    root@EX-4200> request system reboot all member
    For 8200 series when rebooting/upgrading Backup:
    run request system reboot other-routing-engine - 
    Reboot the system? [yes, no] (no) YES 

  13. After the reboot has completed, log in and verify that the new version of the software is properly installed:
  14. user@switch> show version
    If you encounter a problem during the installation, go to Stage 4 for troubleshooting upgrade failures.

Back-up and restore config files



  • Insert SANDISK in the usb port available on the rear panel of EX-series Ethernet switch.


  • Enter the shell as root:
user@switch> start shell user root
Password:
root@switch%
  • Mount SANDISK to /mnt
root@switch% mount_msdosfs /dev/da1s1 /mnt

  • Copy the most recent 4 configuration files under /config  to the USB disk:
root@switch% cp /config/*.gz /mnt
root@switch% ls /mnt
juniper.conf.1.gz       juniper.conf.3.gz       rescue.conf.gz
juniper.conf.2.gz       juniper.conf.gz

Note: The other configuration files are located in /config/db/config. Copy  the configuration files to the USB as required.
  • Unmount usb disk and then pull it out:

    user@switch% umount /mnt