Sunday, 30 August 2015

DET
AILED STEPS
Purpose
Command or Action
Enters
the
configuration
mode
for
a
Gigabit
Ethernet
W
AN
interface
on
the
router
.
interface
type
number
Example:
Router(config)#
interface
gigabitethernet
1
Step 1
Sets
the
IP
address
and
subnet
mask
for
the
specified
Gigabit
Ethernet
interface.
ip
addr
ess
ip-addr
ess
mask
Example:
Router(config-if)#
ip
address
192.168.12.2
255.255.255.0
Step 2
Enables
the
Ethernet
interface,
changing
its
state
from
administratively
down
to
administratively
up.
no
shutdown
Example:
Router(config-if)#
no
shutdown
Step 3
Exits
configuration
mode
for
the
Gigabit
Ethernet
interface
and
returns
to
global
configuration
mode.
exit
Example:
Router(config-if)#
exit
Step 4
Example:
Router(config)#
Configuring a V
.92 Modem Interface
The
Cisco
891
ISR
has
a
V
.92
modem
backup
interface.
T
o
configure
this
interface,
perform
these
steps,
beginning
in
global
configuration
mode:
SUMMAR
Y STEPS
1.
interface
type
number
2.
ip
addr
ess
ip-addr
ess
mask
3.
encapsulation
ppp
4.
dialer
in-band
5.
dialer
string
dial-string
6.
dialer-gr
oup
gr
oup-number
7.
async
mode
dedicated
8.
exit
Cisco 800 Series Integrated Services Routers Software Configuration Guide
26
OL-31704-02
Basic Router Configuration
Configuring W
AN Interfaces
DET
AILED STEPS
Purpose
Command or Action
Enters
the
configuration
mode
for
a
V
.92
W
AN
interface
(serial
interface)
on
the
router
.
interface
type
number
Example:
Step 1
Example:
Router(config)#
interface
async
1
Sets
the
IP
address
and
subnet
mask
for
the
specified
V
.92
interface.
ip
addr
ess
ip-addr
ess
mask
Example:
Step 2
Example:
Router(config-if)#
ip
address
192.168.12.2
255.255.255.0
Sets
the
encapsulation
method
to
point-to-point
protocol
(PPP)
for
the
serial
interface.
encapsulation
ppp
Example:
Step 3
Example:
Router(config-if)#
encapsulation
ppp
Specifies
that
dial-on-demand
routing
(DDR)
is
supported.
dialer
in-band
Example:
Step 4
Example:
Router(config-if)#
dialer
in-band
Specifies
the
string
(telephone
number)
to
be
used
when
placing
a
call
from
the
interface.
dialer
string
dial-string
Example:
Step 5
Example:
Router(config-if)#
dialer
string
102
Configures
the
interface
to
belong
to
a
specific
dialing
access
group.
dialer-gr
oup
gr
oup-number
Example:
Step 6
Cisco 800 Series Integrated Services Routers Software Configuration Guide
OL-31704-02
27
Basic Router Configuration
Configuring W
AN Interfaces
Purpose
Command or Action
Example:
Router(config-if)#
dialer-group
1
Places
the
line
into
dedicated
asynchronous
mode
using
Serial
Line
Internet
Protocol
(SLIP)
or
PPP
encapsulation.
async
mode
dedicated
Example:
Step 7
Example:
Router(config-if)#
async
mode
dedicated
Exits
configuration
mode
for
the
V
.92
interface
and
returns
to
global
configuration
mode.
exit
Example:
Step 8
Example:
Router(config-if)#
exit
Example:
Router(config)#

V.92

RJ.11

Friday, 28 August 2015

Achievement:
1. Able to connect to database and create a database after setting the root's password.
<?php
$conn = mysqli_connect("localhost","root","admin");
mysqli_query($conn, "CREATE DATABASE aloha");
mysqli_close($conn);
?>

Thursday, 27 August 2015

Function messagebox_demo()
MsgBox ("Welcome")
a = MsgBox("Do you like blue color?", 4, "Choose options")
MsgBox ("The value of a is " & a)

'conversion from numbers to string
If a = 6 Then
answer = "Yes"
ElseIf a = 7 Then
answer = "No"
End If

'return the value of answer
messagebox_demo = answer
End Function
1. create database
2. create table
3. define type

Wednesday, 26 August 2015

<!DOCTYPE html>
<html>
    <head>
        <title>This is my own web page</title>
    </head>
    <body>
        <h1>Totardo</h1>
        <img src="https://s3.amazonaws.com/codecademy-blog/assets/ninja_zpsa5dbe37a.jpg" />
        <p>Hello, my name is Totardo. I am the eldest of three brothers and sisters. I have 1 sister and 1 brother. </p>
        <p>I learn about html daily. I use <a href="http://www.codecademy.com">codecademy</a> to learn about html. Sometimes I learn about <a href="http://www.cisco.com">cisco."</a></p>
        <p>I want to be a succesful developer.</p>
    </body>
</html>
Achievement:
1. Membuat kondisi dengan menggunakan if
2. Membuat operasi matematik ($biaya=$soto + $tehbotol
3. Membuat local variabel ($soto, $tehbotol)
4. Membuat html drop-down untuk jenis/variasi makanan dan jenis/variasi minuman

Tampilan sekrip .php nya:  

Hello,<?php echo $_POST['name']?>
<br>

Jenis makanan adalah: <?php echo $_POST['makanan']
?><br>
Jenis minuman adalah: <?php echo $_POST

['minuman'];?>
<br>
<?php
$soto=10000;
$tehbotol=5000;
if ($_POST['makanan'] == "Soto"){
if($_POST['minuman']=="Tehbotol"){
$biaya = $soto+$tehbotol;
print "Biaya = ".$biaya;
}}
?>

Tampilan sekrip .html nya:

<form method="POST" action="wechat.php">
Name: <input type="text" name="name"> <br>
Jenis makanan: <select name="makanan">
<option value="Nasigoreng">Nasi Goreng</option>
<option value="Bakmie">Bakmi</option>
<option value="Soto">Soto</option>
</select> <br>
Minuman: <tab> <tab><select name="minuman">
<option value="Tehbotol">Teh Botol</option>
<option value="Aqua">Aqua</option>
<option value="Tehmanis">Teh Manis</option>
</select><br>
<input type="submit">

Tampilan GUI dari sekrip diatas:


Name:

Jenis makanan:

Minuman: