Twitter LinkedIN RSS

Juniper EX Switch password recovery

A few weeks ago I’ve passed my JNCIA-EX exam, I’ve used a Juniper EX 4200 Switch  acquired as demonstration model from Juniper Networks which was very helpful for the exam preparation and eventually passing the exam. After unpacking the switch and booting up for the first time it was password protected because the switch wasn’t reset to it’s factory defaults..

This article describers the steps need to be taken to reset the Juniper EX Switch root password.

1. Power off the switch by unplugging the power cord.

2. First of all, make sure you’re physically connected to the console port of the switch. Start your terminal emulation application (eg. PuTTY) and configure the port settings as follows:
- Bits per second: 9600
- Data bits: 8
- Parity: None
- Stop bits: 8
- Flow control: None

3. Power on the switch by plugging the power cord, when the following prompt appears press the ‘Space bar’ to access the switch’s bootstrap loader command prompt:

Hit [Enter] to boot immediately, or space bar for command prompt.
Booting [kernel] in 1 second…

 

4. At the following prompt type ‘boot –s’ to start up the system in single-user mode:

loader> boot –s

 

5. At the following prompt type ‘recovery’ to start the root password recovery procedure:

Enter full path name of shell or ‘recovery’ for root password recovery or RETURN for /bin/sh: recovery

6. First a series of messages describe consistency checks, mounting of filesystems and initialization and checkout of management services. Then the CLI prompt appears, enter configuration mode at the following prompt:

user@switch> cli

7. At the following prompt set the new root password:

user@switch# set system root-authentication plain-text-password

New password: P@ssword
Retype new password: P@ssword

8. After configuring the new root password commit the configuration:

root@switch# commit

9. Exit the configuration and operational mode and enter ‘y’ to reboot the system:

root@switch# exit
root@switch> exit

Reboot the system? [y/n] y

That’s all what needs to be done, after the reboot you can use the new root password to gain access.


Posted on : Mar 07 2010
Tags: , ,
Posted under Switching |

3COM Auto Voice-VLAN

One of my customers told me today they were not able to make any calls on their Alcatel IP Phones from a remote office location. Their IP Phones were unable to retrieve an IP address from the DHCP server. After several minutes of troubleshooting I’ve pinpointed the problem to their 3Com SuperStack 4500 Switch which just got a software update a few days ago. Comparing the current configuration with the configuration before the update did the trick, the "Voice vlan mac-address" line which is needed to put the IP Phone in the correct VLAN was missing. I’m not an experienced 3Com professional so I had to dig into the technical details to find out why this command is so essential when using VoIP.

There are several ways to configure the correct Voice VLAN for your IP Phones, one of them is to define the VLAN locally on every IP Phone, but I’d prefer to use DHCP options to distribute the correct VLAN information to your IP Phones. 3Com also has a feature to automatically add the correct Voice VLAN when an IP Phone is connected to the switch, this feature is called "Auto Voice-VLAN". How does it actually work and what needs to be configured?

How does it work?

Every Ethernet network device has a MAC-address burned-in at the factory, a 48-bit address space for data-link layer (OSI Layer 2) identification. Every MAC-address is printed in a human-friendly format consisting of 6 groups of 2 hexadecimal digits. The first 12 hexadecimal digits represent the Organizationally Unique Identifier (OUI) which is uniquely assigned to a network device to identify the vendor, for example OUI 00-03-6b identifies a Cisco IP Phone.

3Com’s "Auto Voice-VLAN" feature uses these OUIs to identify IP Phones, it automatically adds or removes the dedicated Voice VLAN from an edge port when the IP phone is connected to a switch port.

What needs to be configured?

1. First of all, define the dedicated Voice VLAN.

[3Com-Switch] vlan 120

2. Enable the Voice VLAN on the switch.

[3Com-Switch] voice vlan 120 enable

3. Define the OUIs for every IP Phone that will be connected to the 3Com switch (Only if they are not already set in the switch’s default configuration).

[3Com-Switch] voice vlan mac-address 0080-9f00-0000 mask ffff-ff00-0000 description Alcatel

4. Enable the Voice feature on every edge port where IP Phones may be connected.

[3Com-Switch] interface Ethernet 1/0/1

[3Com-Switch-Ethernet1/0/1] port-link type hybrid

[3Com-Switch-Ethernet1/0/1] voice vlan enable

That’s all what needs to be done! When an Alcatel IP Phone is connected to Ethernet port 1/0/1, it’s recognized as a Voice enabled device and tagged with Vlan ID 120. Don’t forget to enable Power over Ethernet (PoE) on the interface if needed.

For more information about OUIs and assignments go to the IEEE Standards Association website.


Posted on : Mar 03 2010
Tags: , ,
Posted under Switching, VoiP |