Basic commands on Alcatel Omniswitch

Introduction

This page is based on the notes I took when managing Alcatel Omniswitchs 6600, 6800 in 2007 and later 6850. The full documentation can be found on Alcatel-Lucent website.

Managing the configuration files

Alcatel Omniswitchs can operate in two modes: working and certified (show running-directory to know in which mode the switch is). In working mode, the configuration can be modified, while it is no possible in certified mode (well, actually, it is). When booting, if working and certified configuration files are different, the switch will boot in certified mode. Configuration files are stored in certifed/boot.cfg and working/boot.cfg (they can be directly edited with “vi”).

Continue reading “Basic commands on Alcatel Omniswitch”

Policy Based Routing on Cisco Catalyst 3750

I want to share how I configured basic configuration Policy Based Routing (PBR) on Cisco.

To give you an idea here is a sample diagram how the PBR works.

This is a setup of network with 2 ISP, if you want to separate the users for using different ISP.

Config on cataly 3750

STEP 1. First set your Vlan SVI’s
!

interface Vlan2
ip address 10.2.0.1 255.255.0.0
!
interface Vlan4
ip address 10.4.0.1 255.255.0.0
!
interface Vlan3
ip address 10.5.0.1 255.255.0.0
!
interface Vlan5
ip address 10.5.0.1 255.255.0.0
!

STEP 2. Create Access-list, for filtering
access-list 10 permit 10.2.0.0 0.0.255.255
access-list 10 permit 10.4.0.0 0.0.255.255
access-list 20 permit 10.3.0.0 0.0.255.255
access-list 20 permit 10.5.0.0 0.0.255.255

STEP 3. Now create Route-map;

route-map routetoISP1 permit 10
match ip address 10
set ip next-hop 10.0.0.1
!
route-map routetoISP2 permit 20
match ip address 20
set ip next-hop 10.0.0.2
!

and now for here put the MAGIC!

!
interface Vlan2
ip address 10.2.0.1 255.255.0.0
 ip policy route-map routetoISP1
!
interface Vlan4
ip address 10.4.0.1 255.255.0.0
 ip policy route-map routetoISP1
!
interface Vlan3
ip address 10.5.0.1 255.255.0.0
ip helper-address 10.0.0.4
 ip policy route-map routetoISP2
!
interface Vlan5
ip address 10.5.0.1 255.255.0.0
 ip policy route-map routetoISP2
!

Here is the final config.

!
interface Vlan2
ip address 10.2.0.1 255.255.0.0
ip policy route-map routetoISP1
!
interface Vlan4
ip address 10.4.0.1 255.255.0.0
ip policy route-map routetoISP1
!
interface Vlan3
ip address 10.5.0.1 255.255.0.0
ip helper-address 10.0.0.4
ip policy route-map routetoISP2
!
interface Vlan5
ip address 10.5.0.1 255.255.0.0
ip policy route-map routetoISP2
!
ip route 0.0.0.0 0.0.0.0 10.0.0.1
!
access-list 10 permit 10.2.0.0 0.0.255.255
access-list 10 permit 10.4.0.0 0.0.255.255
access-list 20 permit 10.3.0.0 0.0.255.255
access-list 20 permit 10.5.0.0 0.0.255.255
route-map routetoISP1 permit 10
match ip address 10
set ip next-hop 10.0.0.1
!
route-map routetoISP2 permit 20
match ip address 20
set ip next-hop 10.0.0.2
!

Cấu hình DHCP trên Cisco

I : Cấu Hình DHCP Server

Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#service dhcp
Router1(config)#ip dhcp pool 192.168.6.128/25
Router1(dhcp-config)#network 192.168.6.128 255.255.255.128
Router1(dhcp-config)#default-router 192.168.6.200
Router1(dhcp-config)#dns-server 210.245.31.130
Router1(dhcp-config)#lease 2
Router1(dhcp-config)#exit
Router1(config)#ip dhcp excluded-address 192.168.6.129 192.168.6.140
Router1(config)#ip dhcp excluded-address 192.168.6.200 192.168.6.254
Router1(config)#end
Router1#

Continue reading “Cấu hình DHCP trên Cisco”

Upgrade Software Nortel ERS 8600

Here’s a question that I’ve been asked over and over again.

How can I upgrade the software of a Nortel ERS 8600 Switch?

It’s actually very easy and only takes a few minutes (along with a reboot). If you have dual CPUs (8690SF, 8691SF, 8692SF) your going to need to upgrade both CPUs. If your running in a HA (High Availability) configuration you probably shouldn’t be reading this. I’ll assume that anyone with dual CPUs is running them in a standby configuration. I generally like to upgrade the standby CPU first and then upgrade the primary CPU, the switch will fail over to the standby CPU once the primary CPU starts to reboot.

You’ll need a TFTP server to host the software files. I generally use the TFTP server that comes with Linux (CentOS), however, you can use TFTPD32 by Philippe Jounin on Windows XP/2003. Just drop the TFTPD32 files in the same directory with the Nortel ERS 8600 software release and run the executable.

Continue reading “Upgrade Software Nortel ERS 8600”

AP Conversion using MODE Button

If you already read one of my previous post (Lightweight to Autonomous (vice versa) Conversion…) you may konw one way of doing this AP conversion.

In this post we will see how to do the same task using Mode/Reset button of the Access point. Number 1 in the below diagram shows this Reset button of the given AP.

Continue reading “AP Conversion using MODE Button”

Cấu hình Virtual-Chassis & License Juniper Ex3300

I. Cài License trên switch Ex3300 Stand-alone

  • Bước 1: Đăng nhập vào mode Operational (CLI)
  • Bước 2: Sử dụng một trong 2 câu lệnh sau để cài license

user@host> request system license add filename | url
filename:
tên file license lưu trên thiết bị
url: địa chỉ nơi lưu trữ file license

user@host> request system license add terminal
Tại dấu nháy lệnh, nhập license key.
Nếu license key hợp lệ, không có thông báo lỗi xuất hiện. Ngược lại, sẽ có thông báo lỗi xuất hiện.
Nhấn tổ hợp phím “Ctrl + D” để thoát khỏi mode license.

  • Ví dụ: Cài license từ FTP
    user@host> request system license add ftp://username@password:192.168.1.1/license.config
  • Ví dụ: cài license từ file license đặt trên thư mục gốc / của thiết bị
    user@host> request system license add /license.configCài License trên switch Ex3300 Virtual-chassis

Để cài License trên các thiết bị Ex3300, ta có thể cài License cho từng thiết bị trước khi thiết lập Virtual chassis hoặc có thể cài License sau khi thiết lập Virtual chassis.

1.Thiết lập Virtual Chassis

1.1. Kiểm tra phiên bản JUNOS trên 2 thiết bị Ex3300

Các thiết bị Switch Ex3300 khi tham gia vào một Virtual-chassis phải được cài cùng một phiên bản JunOS.

Để kiểm tra phiên bản JunOS, tại mode Operational thực hiện câu lệnh sau:

VC_Juniper_3300

1.2. Chuyển cấu hình của 2 thiết bị Ex3300 về mặc định

Trước khi cấu hình các thiết bị Ex3300 tham gia Virtual chassis, nên chuyển cấu hình của các thiết bị về mặc định.

Tại mode Configuration, thực hiện lệnh:

user@host# load factory-default

user@host# commit

1.3. Lấy serial number của các switch Ex3300

VC_Juniper_3300_02

1.4 Cấu hình Virtual chassis trên thiết bị sẽ làm Master

VC_Juniper_3300_03

1.5. Gắn dây Virtual chassis

Mặc định, port 2 và 3 trên tất cả các module uplink khi gắn vào Ex3300 sẽ hoạt động ở cấu hình mặc định là Virtual chassis port (VCP).

ex3300-virtual-chassis

Tiến hành gắn dây nối port 2 và port 3 trên module uplink của 2 thiết bị Ex3300 với nhau.

1.6. Khởi động thiết bị thứ 2 và kiểm tra Virtual chassic

Kiểm tra trạng thái Virtual Chassis

VC_Juniper_3300_04

Nếu cấu hình Virtual chassis thành công, status của các member sẽ là “Prsnt”. Nếu chỉ có 2 thiết bị Ex3300 thì Role của một thiết bị sẽ có trạng thái “Master” và thiết bị còn lại sẽ là “Backup”. Nếu có trên 2 thiết bị Ex3300 thì tất cả các thiết bị còn lại (ngoại trừ “Master” và “Backup”) sẽ có Role là “Line-card

Kiểm tra trạng thái các cổng Uplink

VC_Juniper_3300_05

 

VMware Virtual SAN 6 – Setup and Configuration [Part 2]

In this post I will go through enabling and configuring VMware Virtual SAN (VSAN) 6 cluster within vSphere. Virtual SAN is embedded directly in the hypervisor and does not require any additional software to be installed.
Continue reading “VMware Virtual SAN 6 – Setup and Configuration [Part 2]”

VMware Virtual SAN 6 – Requirements [Part 1]

VMware Virtual SAN (VSAN) is a hypervisor-converged storage solution for your vSphere environment. It was built to be extremely easy to use and administrator, high performance and expandable. In this post I will go over the requirements and how to prepare your environment for VSAN.

Continue reading “VMware Virtual SAN 6 – Requirements [Part 1]”