How to write script put static on Ethernet Network Card


How to write script put static on Ethernet Network Card

It’s  a best way and take a minute to put static IP on your Ethernet Network card. If you go direct to put one-by-one you will take more time and lazy. So, this guide with bring you to save time and easy for put static on your network card.
Please follow theses step:
1. First: Go to check your network card’s name:
Scrypt for DHCP
2. After, you open notepad and write script as bellow and save a .bat file.
10-26-2013 10-33-28 AM
3. Run as Administrator
10-26-2013 10-26-53 AM
So, at the end you will see the the IP that you put on your network card. Thank.
Contact me if you cannot do it.

How to configure Cacti on CentOS

Cacti is an open-source, web-based network monitoring and graphing tool designed as a front-end application for the open-source, industry-standard data logging tool RRDTool. Cacti allows a user to poll services at predetermined intervals and graph the resulting data. It is generally used to graph time-series data of metrics such as CPU load and network bandwidth utilization. A common usage is to monitor network traffic by polling a network switch or router interface via simple network management protocol (SNMP). (Wikipidea)

I. Install services as bellow

1. 1 Install HTTP
1. Install Service HTTP
1.2  Install Mysql
2. Install Mysql
1. 3 Install php-mysql
3. Install PHP
1.4 Install snmp
4. Install PHP-SNMP
1.5 Install Net-SNMP
5. Install NET-SNMP
1.6 Install RRDTool
6. Install RRDTool
II. Start All services
7. Start All Services
III. Install EPEL
8. Install EPEL
IV. Install Cacti
9. Install Cacti
V. Create Database “cacti” On Mysql
10. Configure Mysql
VI. Import cacti table into cacti database
11. Import Cacti Table into Cacti Database
VII. Edit file on PHP
13. Create Named Cacti On PHP
14. Create Named Cacti on PHP 2
VIII. Edit file on cacti.conf
15. Edit Cacti.conf
16. Edit Cacti.conf
IX. Uncommand on /etc/cron.d/cacti
3-10-2014 8-12-09 PM
Stop firewall and restart all service again.
17. Disable Firewall every Reboot and start services every Reboot
X. Complete configure cacti by web interface
1
Click on Next
2
Click On Next
3
Click On Finish
4
Default Username and Password is admin, admin.
5
Change your password at first log in.
6
You have done now!
7
Reference 

How configure DHCP on MikroTik


Mikrotik is popular router once in the world. So, in this session I will show you how to configure DHCP on Mikrotik Router. There are two easy way how to configure DHCP.

==> First Method 

+ Go to New Terminal and type a follow command


- brige1 is interface that we apply DHCP
- 192.168.1.1/24 is address poll.
- 192.168.1.1 is a gateway.
- 192.168.1.2 192.168.1.254 is IP that use for client.
- 222.2222.222.222 is DNS

==> Second Method
+ Go to IP => DHCP Server and do by follow step



How to enable automatically boot on switch

Everyone really wonder why we need to enable automatically boot? We know that after we finish upload new IOS image on switch and then you type command Reload or restart your switch, the switch will not automatically boot. So, when this cause happen you may wast the time to connect to console port and enter boot command every time. Now, I can find solution. So, please join with me together.

I. Cause/Symptom

3-25-2014 7-44-06 AM
Semptom

II. Solutions

If you are ROMMON (switch:) prompt. Means that you are now connect to switch by console and stand on SWITCH: part.
Solution If youa are ROMmon prompt
If you are Switch# prompt.
Solution If you are SWITCH# prompt

Refference

How To Block Website on Cisco 1800 Serie

We were know that there are many website that can be spam and useless. So, we can block it in order to prevent our server on risk. In this session I will show you how to block website on Cisco router 1800 Series. Please follow me step by step below.

1. Create class-map

1. Create Class-map

2. Create policy-map and then Apply class-map into policy-map

2. Apply Class-map into Policy-Map

3. Apply policy-map into interface LAN

3. Apply Policy into interface

4. Test

Test

How to configure Mikrotik RB1100AHx2


I. Network Infrastructure

Description

In this session you will be able to:
- Configure IP address on interface
- Configure DHCP and apply to each interface (10 interface)
- Routes
- Create interface bridge
- Create NAT rule.
- Allow port camera (DVR Camera) can remote from outside.
Now, I have network infrastructure and I will configure it as my infrastructure. So, Please follow me step by step.
Infrastructure

II. Rename interface and add IP address to interface

+ Rename interface
- Ethernet13= WAN-eth13
- Ethernet1= LAN-ether1
1. Rename Interface

II. Create Port Bridge

What is port interface bridge? Interface Bridge is one method that we can combine two interface or more interface to be one interface and that interface we called interface bridge. However, interface that we had combine we called master interface or master port.
Example:
I take LAN-ether1 and ether6 to create interface bridge.
==> LAN-ether1 + ether6 = bridge1 (bridge1 is name of bridge)
How to do it:
4. Create port Bridge
+ Add LAN-ether1 into bridge1
5. Add Eth1 into Port Bridge1

+ Add ether6 into bridge1
6. Add Eth6 to Port bridge1
Result:
Resulf of create port Bridge1

III. Add IP Address to interface

- On WAN-eth13
2. Add IP to port WAN 2
- On LAN-ether1
3. Add IP to port LAN

IV. DHCP

Create DHCP server on port bridge (bridge1)
+ First method
7. DHCP
+ Second method
8. DHCP Second Option 9. DHCP Second Option 2

V. Apply all interface to get DHCP from Master port

*** Master port of ether2, 3, 4 and 5 is LAN-ether1
+ ether2
Port2
+ ether3
Port3
+ ether4
Port4
+ ether5
Port5
*** Master port of  ether7, 8, 9 and 10 is ether6
+ ether7
Port7
+ ether8
Port8
+ ether9
Port9
+ ether10
Port10

VI. Route and NAT

+ Route
- Default-Route
Default-Route
- Static Route
Static-Route2
+ NAT
1 2

VII. Open port for DVR Camera can remote from outside

+ Add port 9091
Port Camera Test Port Camera Test2
And for port 8080 and 37778 is do the same.
Note: You can add more port that you want.

Thank you for your attentions.