Thursday, 6 February 2020

IRF Step up (Stacking Technology) on HP 5130 Swtiches

IRF Step up (Stacking Technology) on HP 5130 Swtiches


IRF (Intelligent Resilient Framework) considers two HP swtiches as one. 
With this technology, you can build a stack using the Ethernet port without requiring dedicated stack port.
Advantages of IRF (Stacking) on HP switches

  • no additional stack port like other vendor switches
  • can use any port for stack configuration
I don't want to explain more about Stacking. I assume that you will have more experience in stacking technology. 
In this article, i gonna explain about how to stack (IRF) on HP FlexNetwork 5130 Switches.

Requirements for making IRF,
 -Two pairs of HP X240 SFP+ SFP+ DAC Cable
 -Both switches mush have the same firmware 






Check the firmware on both switches.
Checking switch-1 firmware.

Checking switch-2 firmware
both switches have the same firmware. So let go to IRF Port configuration.
 Check MemeberID, Role and Priority on switch 1. 
Also Switch 2.
Both switches are master role but we want to have one master in irf group. So we need to change switch-1 priority to be more higher than switch2. After that switch 1 will become Master and switch 2 will be Slave in this configuration.
Changing switch 1 's priority to 32.

After that rechecking again its priority value.

Changing switch 2's MemberID to "2".

  • system-view
  • irf member 1 renumber 2
  • save
  • quit
  • reboot
After that rechecking again on both switches' priority and MemberID value.
Plugin your SFP Cable into port 51 and 52 on both switches in order to check the cable(transceiver) is working well or not.


















On switch1,

It will show the result of port status, vendor name and transfer distance of this cable.
Make sure the same step on switch2,
By seeing these results, both cables connection and transceivers are working well.
So, we need to add irf port configuration on switch1,

On switch 2,
After that checking irf status on switch 1,
  

If your result show like that your configuration is true and you can deploy in your environment.
All of these configuration are used and tested in real HP switches and you can take reference from my blog for your requirement.

Hope for enjoy learning,
Phone Myint Myat Zaw
23/2/2020 12:07PM 

Tuesday, 4 February 2020

Way to backup Physical Linux Server with Nakivo Backup & Replication

Way to backup Physical Linux Server with Nakivo Backup & Replication

In this article, i want to show how to backup physical linux server wtih nakivo backup & replication software. i already shown how to backup vitual machines in the previous article.

Before you backup your physical linux machine, you need to do additional preparation on your phyiscal linux server.
Linux
  • Supported Linux operating systems:
    • Ubuntu v16.04-18.04 LTS, 64-bit
    • RHEL v6.3-7.5, 64-bit
    • SLES v12, 64-bit
    • CentOS v6.5-7.6, 64-bit
  • Supported Linux File Systems:
    • NTFS
    • Ext2
    • Ext3
    • Ext4
    • FAT32
    • XFS
    • Linux SWAP
    • ReiserFS


 (1) NAKIVO Backup & Replication requires the following TCP ports to be open for a successful operation. We need to open the following ports in my server's firewall.
4443
Used to access the Director web UI. Must be opened on the Director machine.
9446
Used by Director and Transporters to communicate with the Transporter. Must be opened on the Transporter machine.
9448-10000
Used by Transporters for cross-Transporter data transfer. Must be opened on the Transporter machine.


 Check the firewall again whether above ports are open or not.
 (2)Check the ssh service is running or not and then open ssh port (22) in your firewall.
(3)root login over ssh should be enabled if you use the root user. Check the /etc/ssh/sshd_config file to have a line: PermitRootLogin yes

 Edit in vim /etc/ssh/sshd_config


After changing the sshd configuration file, you must restart sshd.service to take effect the changes.

And then open port 22 in your firewall.
(4)Selinux should be disabled.
(5) For my server, selinux mode is "enforcing mode " so i change to disabled mode.
Edit vim /etc/selinux/config
 Change enforcing to disabled and reboot the server to take effect the changes.

(6) Please make sure that bhsvc service (may also be called nkv-bhsvc) is running on a physical host and try accessing physical host on 9446 port via telnet.


/etc/pam.d/bhsvc file with special permissions provided to the Transporter service is required. Refer to the Required Permissions for Linux Recovery Serve.
On Linux, NAKIVO recovery service needs special permissions to run. However, such permissions are not configured by the default NAKIVO installation due to security considerations.

We have to manually create bhsvc file under /etc/pam.d.
Add the following line into  /etc/pam.d/bhsvc

(7)Provide necessary permissions for the bhsvc file


All of the above steps should prepare before you backup your linux physical machine with nakivo.
(8) Create Inventory for "physical machine" in Nakivo. login into your nakivo server.
 (9) Got configuration tab.
 (10)Choose Inventory to create physical backup.
 (11) Select Inventory >Physical machines.
 (12) Fills up your server information such hostname, username, passwork and display name.
 Adding inventory time may take serveral minutes.
(13)After finished, go to home and create backup job. click create and choose physical machine backup job.

(14)Choose the Physical machine that you want to backup.

 (15) Select Destination , in this example i choose on board repository.
 (16) Create other options and click finish.
 (17) Check you job is working or not in Home.


All of the above steps show how to backup your linux physical machine.
Hope you enjoy studying
Phone Myint Myat Zaw
5/02/2020 12:14AM





Hyper-V VM Backup with Nakivo Backup & Replication

Ways to backup hyper-v virtual machine with nakivo backup & replication 

In the previous article, I already shown how to create hyper-v inventory setup on nakivos. Now, i will show you how to backup virtual machine in this hyper-v.

step(1) Click "Create" in Home Menu.


Step(2) choose "microsoft hyper-v backup job".
Step(3) Choose "virtual machine" which you want to backup. In this example, I choose server2.hlaing.com7



Step (4)Select Destination repository. In this example, I have only onboard repository so i choose "onboard repository". If you had other remote repository, choose it. After that, click "next" to continue.

Step(5)Create "Schedule" for your backup job.
Step (6)Determine Retention period.

Step(7)Choose another options which are match with your infrastructure and click finish.
Step(8) Verify your backup job is running or not.

Hope to enjoy studying.
Phone Myint Myat Zaw
4/02/2020 9:54PM
 

Sunday, 2 February 2020

Cisco 819 4G LTE Cellular Router Configuration

Cisco 819 4G LTE Cellular Router Configuration
In this article, i will use MPT sim card to access 4G internet for my LAN Users.


(1) Insert MPT sim card in slot 0 at the back of the router.

(3) Install 4G LTE Antenna as shown in figure and connect console cable to your laptop.
(4) Configure 819 4G LTE Cellular Router
login into the router and set hostname
Username: cisco
Password:
% Password expiration warning.
-----------------------------------------------------------------------

Cisco Configuration Professional (Cisco CP) is installed on this device
and it provides the default username "cisco" for  one-time use. If you have
already used the username "cisco" to login to the router and your IOS image
supports the "one-time" user option, then this username has already expired.
You will not be able to login to the router with this username after you exit
this session.

It is strongly suggested that you create a new username with a privilege level
of 15 using the following command.

username <myuser> privilege 15 secret 0 <mypassword>

Replace <myuser> and <mypassword> with the username and password you
want to use.

-----------------------------------------------------------------------

yourname#conf terminal
Enter configuration commands, one per line.  End with CNTL/Z.
yourname(config)#hostname
yourname(config)#hostname Cisco819
Configure Cellular Profile
Cisco819#cell 0 lte profile create 1 MPT
Warning: You are attempting to modify the attach profile.
Please consult the service provider before doing so.
Modem power cycle required for change to take effect.

PDP Type = IPv4
Access Point Name (APN) = mitt.local
Authentication = NONE

Profile 1 already exists with above parameters. Do you want to overwrite? [confirm]

Profile 1 will be overwritten with the following values:

PDP type = IPv4
APN = MPT
Authentication = NONE

Are you sure? [confirm]

Profile 1 written to modem

Cisco819(config)#interface cellular0
Cisco819(config-if)#ip address negotiated
Cisco819(config-if)#encapsulation slip
Cisco819(config-if)#dialer in-band
Cisco819(config-if)#dialer-group 1
Cisco819(config-if)#exit
Cisco819(config)#dialer-list 1 protocol ip permit
Cisco819(config)#ip route
Cisco819(config)#ip route 0.0.0.0 0.0.0.0 cell0
Cisco819(config)#do sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

S*    0.0.0.0/0 is directly connected, Cellular0
Cisco819(config)#exit
*Feb  5 14:08:43.927: %SYS-5-CONFIG_I: Configured from console by cisco on consolele
Check the cellular is working or not 
Cisco819#sh cellular 0 radio
Radio power mode = online
LTE Rx Channel Number =  1500
LTE Tx Channel Number =  19500
LTE Band =  3
LTE Bandwidth = 20 MHz
Current RSSI = -64 dBm
Current RSRP = -98 dBm
Current RSRQ = -14 dB
Current SNR = 1.0  dB
Physical Cell Id = 130
Number of nearby cells = 6
Idx      PCI (Physical Cell Id)
--------------------------------
1              130
2              239
3              274
4              129
5              102
6              289
Radio Access Technology(RAT) Preference = AUTO
Radio Access Technology(RAT) Selected = LTE
Cisco819#ping 8.8.8.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:

*Feb  5 14:09:02.143: %CELLWAN-2-BEARER_UP: Instance id=0, Default bearer (bearer_id=5) in Cellular0 is now UP..!!
*Feb  5 14:09:04.383: %LINK-3-UPDOWN: Interface Cellular0, changed state to up
*Feb  5 14:09:05.383: %LINEPROTO-5-UPDOWN: Line protocol on Interface Cellular0, changed state to up!
Success rate is 60 percent (3/5), round-trip min/avg/max = 72/124/224 ms
Check connection to internet
Cisco819#ping 8.8.8.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 68/72/80 ms

As my router can route to internet, so my LAN Users also want to route to internet. So, we need to setup up NAT on the router.
I also create DHCP Pool for LAN Users and set NAT for that.
Cisco819(config)#ip dhcp pool LAN-User
Cisco819(dhcp-config)#network 172.16.1.0 255.255.255.0
Cisco819(dhcp-config)#default-router 172.16.1.1
Cisco819(dhcp-config)#dns-server 8.8.8.8
Cisco819(dhcp-config)#exit
NAT
Cisco819(config)#interface vlan 10
*Feb  5 14:10:06.747: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to down
Cisco819(config-if)#ip nat inside
Cisco819(config-if)#ip address 172.16.1.1 255.255.255.0
Cisco819(config-if)#no shut
Cisco819(config-if)#exit
Cisco819(config)#access-list 1 permit 172.16.1.0 0.0.0.255
Cisco819(config)#ip nat inside source list 1 interface Cellular 0 overload
*Feb  5 14:15:23.319: %LINEPROTO-5-UPDOWN: Line protocol on Interface NVI0, changed state to up
Cisco819(config)#interface cellular 0
Cisco819(config-if)#ip nat outside
Cisco819(config-if)#exit

Cisco819(config)#do ping 8.8.8.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:

!!!!!

Assign access port to fast Ethernet ports f0 to f3

Cisco819(config)#interface range fastEthernet 0-3
Cisco819(config-if-range)#switchport mode access
Cisco819(config-if-range)#switchport access vlan 10
Connect your Laptop to router's fastEthernet Port and route to internet.

Hope you enjoy learning 
Phone Myint Myat Zaw
6/02/2020 12:28AM